Skip to content

Instantly share code, notes, and snippets.

@jarekb84
Last active April 1, 2016 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarekb84/c4e5cd6f3317f838de0a54998ece8c78 to your computer and use it in GitHub Desktop.
Save jarekb84/c4e5cd6f3317f838de0a54998ece8c78 to your computer and use it in GitHub Desktop.
Reddit Robin Room Stats
function stats() {
var participants = $('.robin-room-participant').length;
var increase = $('.robin-room-participant.robin--vote-class--increase').length;
var novote = $('.robin-room-participant.robin--vote-class--novote').length;
var abandon = $('.robin-room-participant.robin--vote-class--abandon').length;
var stay = $('.robin-room-participant.robin--vote-class--continue').length;
console.log(
"Total USERS: " +participants
+ " ::GROW: " + increase
+ ":: ::STAY " + stay
+ ":: ::ABANDON " + abandon
+ ":: ::NOT_VOTED " + novote
+ ":: " + Math.floor(increase/participants *100)+ "% chance to GROW!"
)
}
stats()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment