Last active
April 1, 2016 20:23
-
-
Save jarekb84/c4e5cd6f3317f838de0a54998ece8c78 to your computer and use it in GitHub Desktop.
Reddit Robin Room Stats
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
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