Skip to content

Instantly share code, notes, and snippets.

@freundTech
Last active August 29, 2015 14:12
Show Gist options
  • Save freundTech/93efc1ebddee719a6fc2 to your computer and use it in GitHub Desktop.
Save freundTech/93efc1ebddee719a6fc2 to your computer and use it in GitHub Desktop.
[Outdated] JesperTheEnd Number Bot
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