]> gitweb.michael.orlitzky.com - charm-bypass.git/commit
index.html.in: javascript cleanup
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 24 Oct 2023 15:36:40 +0000 (11:36 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 24 Oct 2023 16:03:44 +0000 (12:03 -0400)
commit5986a05b37f3559ca7a548c99774fbab6bdcf24e
treed332c481d417aa8daa22d51ef63381be7ca18a1a
parent7d7bc2b602001340f22b4d0e400b82b232f9b4fb
index.html.in: javascript cleanup

Encapsulate everything into functions and kick them off with event
listeners. This _mostly_ fixes the centering of the security code.

There is however a slight centering glitch visible upon page load when
the code is (for example) "WW". Resizing the page correctly re-centers
it; leaving only the mystery of why it was not centered to begin with;
we supposedly center it once when the page loads.
index.html.in