Mercurial > hg > nodescore
comparison www/m/js/nodescore-client.js @ 42:49c94f63b8b0
css for nexus 7 and associated files- archive m.a added - remove later
author | tzara <rc-web@kiben.net> |
---|---|
date | Tue, 04 Sep 2012 07:25:49 +0000 |
parents | 3ba24da53406 |
children | 66bf613fb818 |
comparison
equal
deleted
inserted
replaced
41:56767c69b7c4 | 42:49c94f63b8b0 |
---|---|
57 function countinClient(groupID, currentseconds,mm,text,colour,background){ | 57 function countinClient(groupID, currentseconds,mm,text,colour,background){ |
58 var groupPage=document.getElementById('group').value | 58 var groupPage=document.getElementById('group').value |
59 if (groupID == groupPage) { | 59 if (groupID == groupPage) { |
60 document.getElementById("count").style.visibility="visible"; | 60 document.getElementById("count").style.visibility="visible"; |
61 document.getElementById("count").style.visibility="visible"; | 61 document.getElementById("count").style.visibility="visible"; |
62 | |
63 $("#counttitle").text(text); | 62 $("#counttitle").text(text); |
64 $("#count").text(currentseconds); | 63 $("#count").text(currentseconds); |
65 //$("#cnt").text(currentseconds); | 64 //$("#cnt").text(currentseconds); |
66 | 65 $("#count").css('background-color', background); |
67 $("#count").css('background-color', background); | |
68 | |
69 document.getElementById("count").style.color=colour; | 66 document.getElementById("count").style.color=colour; |
70 | |
71 // if ( currentseconds == 0) { | 67 // if ( currentseconds == 0) { |
72 //document.getElementById("midcomms").style.visibility='hidden'; | 68 //document.getElementById("midcomms").style.visibility='hidden'; |
73 // } | 69 // } |
74 }} | 70 }} |
75 ///////////////////////////////////////////////// | 71 ///////////////////////////////////////////////// |
79 | 75 |
80 socket.on("counterText", cText); | 76 socket.on("counterText", cText); |
81 function cText(groupID, currentseconds,text){ | 77 function cText(groupID, currentseconds,text){ |
82 var groupPage=document.getElementById('group').value | 78 var groupPage=document.getElementById('group').value |
83 if (groupID == groupPage) { | 79 if (groupID == groupPage) { |
84 console.log(text) | 80 // console.log(text) |
85 $("#totalcountdown").text(text); | 81 $("#totalcountdown").text(text); |
86 }} | 82 }} |
87 | 83 |
88 /////////////////////////////////////// | 84 /////////////////////////////////////// |
89 | 85 |