Heera/public/assets/js/pages/two-step-verification.init.js

1 line
297 B
JavaScript
Raw Normal View History

2024-05-16 03:46:08 +00:00
function getInputElement(e){return document.getElementById("digit"+e+"-input")}function moveToNext(e,t){t=t.which||t.keyCode;1===getInputElement(e).value.length&&(4!==e?getInputElement(e+1).focus():(getInputElement(e).blur(),console.log("submit code"))),8===t&&1!==e&&getInputElement(e-1).focus()}