Re:Show HN: Print a WiFi Login Card
by BugsJustFindMe on Sunday July 11, 2021 @05:33PM
(#27804663)
I'd say that a tiny amount of CSS would make that basically perfect for the task, except that it's honestly already perfect for the task now. Though it looks like you replace semicolon a second time instead of colon in clean.
Re:Show HN: Print a WiFi Login Card
by banana_giraffe on Sunday July 11, 2021 @05:49PM
(#27804750)
Ahh, right you are! All fixed.
Would be nice if the code was in an image I could save.
Re:Show HN: Print a WiFi Login Card
by banana_giraffe on Sunday July 11, 2021 @09:09PM
(#27805890)
Just pushed a small change to make it use images instead of a canvas so you can save the image (at least with the browsers I tested with)
Re:Show HN: Print a WiFi Login Card
by edflsafoiewq on Sunday July 11, 2021 @10:27PM
(#27806297)
What browsers don't let you save a canvas as an image?
I don't know VanillaJS that well, so I took a stab at the same concept:
https://q726kbxun.github.io/qrcodes/
Not nearly as pretty, since I know even less about making pages pretty, but still, a fun little stab at making such a site.