Mercurial > hg > nodescore
view www/m/js/countin.js @ 35:5775286673c1
Merge branch 'master' of gitorious.org:nodescore/nodescore
Conflicts:
www/m/thumbs/1.png
www/m/thumbs/2.png
www/m/thumbs/3.png
www/m/thumbs/4.png
www/m/thumbs/5.png
www/m/thumbs/6.png
author | tzara <rc-web@kiben.net> |
---|---|
date | Sun, 19 Aug 2012 22:23:11 +0000 |
parents | 40253bcfce03 |
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'; } }} /////////////////////////////////////////////////