mirror of
https://github.com/nestriness/nestri.git
synced 2026-11-06 23:47:08 +02:00
The emailed code and the device code are now typed into a row of boxes, with a dash drawn between the device code's two halves. Typing moves to the next box, backspace on an empty box goes back, the arrow keys move, and a pasted or autofilled code, dashes and all, is spread across them. It is an enhancement of the field and not a replacement for it. The server still sends the single plain input, which works on its own with script off; a short inline script draws the boxes over it and keeps it in step. The real input is still the one that submits and the one whose validity dims the button, so nothing else had to learn about boxes. Pressing the button early moves to the first empty box, since the browser's own message would point at a field nobody can see.