Skip to content

Instantly share code, notes, and snippets.

@jhubert
Created January 25, 2011 01:56
Show Gist options
  • Save jhubert/794378 to your computer and use it in GitHub Desktop.
Save jhubert/794378 to your computer and use it in GitHub Desktop.
function updateCount() {
num--;
$('#status-count').html(num);
if (units == (1000 - num)) {
clearTimeout(countdown);
}
}
$(document).ready(function() {
$.getJSON('http://www.tweetfolk.com/markers/stats.js?callback=?', function(d) {
if (d.count) {
units = d.count;
num = 1000;
countdown = setInterval(updateCount,10);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment