Last active
January 3, 2020 17:30
-
-
Save princerachit/d37584d2ba30280a26f62010da37d660 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curVal = localStorage.getItem("curVal"); | |
if(curVal==null){ | |
curVal = 0 | |
} | |
curVal++ | |
t = curVal+"" | |
if(t.length < 6){ | |
for(k=0;k<5;k++){ | |
t = "0"+t | |
} | |
} | |
console.log(curVal) | |
localStorage.setItem("curVal", curVal); | |
document.getElementById('recovery_code_entry').value = t | |
document.getElementById("u_0_9").submit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment