Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var lowestNum = 70;
- setInterval(function() {
- currNum = (parseInt($('#thebutton-s-10s').text() + $('#thebutton-s-1s').text()));
- if(currNum <= 2){ //if timer is less than or equal to 2, click
- $('#thebutton')[0].click();
- console.log("Wooooo!");
- }
- if(currNum < lowestNum){ //if timer is lower than recorded number, print to console
- lowestNum = currNum;
- console.log("New record: " + lowestNum);
- }
- }, 200);
Advertisement
Add Comment
Please, Sign In to add comment