Mercurial > hg > nodescore
view www/m.a/js/countin.js @ 53:a0ae699ac444
chronometer no long increments but now compares start time with current
time
author | root <root@beaglebone.(none)> |
---|---|
date | Sun, 14 Oct 2012 00:26:42 +0000 |
parents | 49c94f63b8b0 |
children |
line wrap: on
line source
///////////////////////////////////////////////// // countdown to change var socket = io.connect(); socket.on("countinFromServer", countinClient); function countinClient(groupID, currentseconds,mm,text,colour,background){ var groupPage=document.getElementById('group').value if (groupID == groupPage) { console.log(currentseconds); document.getElementById("countinnumber").style.visibility="visible"; document.getElementById("countinnumber").style.visibility="visible"; //$("#countin").text(text); $("#countinnumber").text(currentseconds); $("#countinnumber").css('background-color', background); document.getElementById("countinnumber").style.color=colour; if ( currentseconds == 0) { document.getElementById("countinnumber").style.visibility='hidden'; // document.getElementById("countin").style.visibility='hidden'; } }} /////////////////////////////////////////////////