X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=index.html.in;h=61578bd3ddb5aebef95767ae34ec8d49ebc097b6;hb=daa695e8bd114cd6a323cb4ae2499d26e9abb349;hp=f073f69bb8a9bbf78ecc976e0a57a9d5ece7c333;hpb=843eb1acff1589e1a3861f3bcb0dc5b41c95dc09;p=charm-bypass.git diff --git a/index.html.in b/index.html.in index f073f69..61578bd 100644 --- a/index.html.in +++ b/index.html.in @@ -291,9 +291,9 @@ function center_code() { + /* Center the security code inside its red box */ const ct = document.getElementById("codetext"); - /* Now center the security code inside its red box */ /* First, find the center of the red box */ const r1 = document.getElementById("codebg").getBoundingClientRect(); const c1 = r1.left + (r1.width / 2); @@ -383,7 +383,7 @@ /* Set the security code text when the page has loaded */ window.addEventListener("load", set_code); - /* Center the security code text when the page has loaded; + /* Center the security code text when the page has loaded; in particular, after we set it */ window.addEventListener("load", center_code);