Created
July 17, 2012 15:49
-
-
Save programatt/3130222 to your computer and use it in GitHub Desktop.
Jabbr Users 10 Seconds
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
setInterval(function(){ | |
var totalPop = 0 | |
, roomPops = $('#userlist-lobby .room .count').text().match(/\d+/g); | |
for (var i = 0, l = roomPops.length; i < l; i++) { | |
totalPop += parseInt(roomPops[i]); | |
} | |
console.log(totalPop); | |
},10000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment