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);