Skip to content

Instantly share code, notes, and snippets.

@davsket
Created May 5, 2013 07:50
Show Gist options
  • Save davsket/5520060 to your computer and use it in GitHub Desktop.
Save davsket/5520060 to your computer and use it in GitHub Desktop.
Meetup fake counter of RSVPs ¬¬
var start_count=102125650;
var velocity=1
var $counter=$("#hit-counter-number");
var incrementCount = function(){
start_count += velocity;
$counter.html( addCommas( start_count ) );
setTimeout( incrementCount, ( Math.random() * 1000 ) + 1000 )
};
setTimeout( incrementCount, ( Math.random() * 1000 ) + 1000 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment