Lights off! Puzzle

For those who asked @Charles_Parkes, the keyboard-based input requires some *script magic. You’ll need to add an event listener to your document. Also, you must remove it immediately after the choice, to avoid phantom clicks if somebody uses the form (choice + next). This is a simplified code snippet.

 <ENTER ALL THIS FUNCTION IN ONE LINE BY REMOVING NEW LINES>
*script document.toggler =   
   function (e) {
     if (e.key > "0" && e.key <= "4"){
       document.getElementsByTagName("input")[e.key-1].checked = true;
       document.getElementsByTagName("form")[0].onsubmit()
    }
};  

*script document.addEventListener('keyup' ,document.toggler);

*choice
  #some choice
    *script document.removeEventListener('keyup', document.toggler);
    

Have fun with it, and let me know if you need help.

2 Likes