Last active
August 29, 2015 14:12
-
-
Save freundTech/93efc1ebddee719a6fc2 to your computer and use it in GitHub Desktop.
[Outdated] JesperTheEnd Number Bot
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
i = setInterval(function() { | |
$oldNumber=$("#number").html(); | |
$.ajax({ | |
url: 'action.php', | |
type: 'POST', | |
data: { | |
action: "increase", | |
}, | |
success: function(result) { | |
if($oldNumber<result){ | |
animate(1.1,"green"); | |
} | |
if($oldNumber>result) { | |
animate(0.9,"red"); | |
} | |
$("#number").html(result); | |
if($debug==true){ | |
console.log(result); | |
} | |
} | |
}); | |
}, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment