Mercurial > hg > nodescore
comparison www/m/js/nodescore-client.js @ 39:3ba24da53406
still trying to sort memory leak... js closures will kill me
addedb screenshot
author | tzara <rc-web@kiben.net> |
---|---|
date | Thu, 23 Aug 2012 08:40:55 +0000 |
parents | ea8d61c851c0 |
children | 49c94f63b8b0 |
comparison
equal
deleted
inserted
replaced
38:ea8d61c851c0 | 39:3ba24da53406 |
---|---|
75 ///////////////////////////////////////////////// | 75 ///////////////////////////////////////////////// |
76 | 76 |
77 ///////////////////////////////////////////////// | 77 ///////////////////////////////////////////////// |
78 // countdown to change | 78 // countdown to change |
79 | 79 |
80 socket.on("counterText", counterText); | 80 socket.on("counterText", cText); |
81 function counterText(groupID, currentseconds,text){ | 81 function cText(groupID, currentseconds,text){ |
82 var groupPage=document.getElementById('group').value | 82 var groupPage=document.getElementById('group').value |
83 if (groupID == groupPage) { | 83 if (groupID == groupPage) { |
84 console.log() | 84 console.log(text) |
85 $("#totalcountdown").text(text); | 85 $("#totalcountdown").text(text); |
86 }} | 86 }} |
87 | 87 |
88 /////////////////////////////////////// | 88 /////////////////////////////////////// |
89 | 89 |