TanchoToplineCargo/public/assets/js/pages/two-step-verification.init.js
2024-05-05 10:32:49 +05:45

1 line
297 B
JavaScript

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()}