New-OMIS/public/assets/js/pages/two-step-verification.init.js

1 line
297 B
JavaScript
Raw Permalink Normal View History

2024-04-04 07:23:00 +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()}