Created
June 15, 2019 10:05
-
-
Save lsoares/65300a9efeedcdc61417c22deded796a 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
function tryPin(pin) { | |
console.log("trying", pin); | |
if (pin == 9999) return alert("over"); | |
if ($('#oldPinErrorMessage').css('display') != 'block') return alert(pin); | |
$('#oldPinInput').val(pin.toString().padStart(4, '0')); | |
$("#newPinInput").val(1122); | |
$("#confirmPinInput").val(1122); | |
$('#changeCmdPinButton').click(); | |
setTimeout(() => tryPin(pin+1), Math.random()*5000+1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment