]> gitweb.michael.orlitzky.com - charm-bypass.git/commit
index.html.in: refactor the toggle_qr_focus() function
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 11 Sep 2025 03:40:52 +0000 (23:40 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 11 Sep 2025 03:40:52 +0000 (23:40 -0400)
commit7d35cf722bc24c1bc7d6f2b03c7cc83d5e332456
tree7d536886f502689519ee42f3a04a1100a027e55b
parent0523202e0e8a5fa80e674c430dda758f56ba0d47
index.html.in: refactor the toggle_qr_focus() function

1. Adjust to the recent conversion of resize_ticket() to CSS
   transforms.
2. Refine the ticket dimensions to match those of CharmPass.
   This is still pretty hacky and may not work in all cases,
   but on a fresh page load in a desktop browser, everything
   is where it should be.
3. Simplify / clean up the code a little bit (using forEach,
   classList, etc.)
index.html.in