comparison www/martin/js/controlseq.js @ 79:e4db7d4d1d08

major UI fixes for martin version interface
author Rob Canning <rob@foo.net>
date Tue, 15 Jul 2014 23:49:44 +0100
parents b7f9ade92165
children 74367de56cbf
comparison
equal deleted inserted replaced
78:0bcba76683f2 79:e4db7d4d1d08
52 // countdown to change 52 // countdown to change
53 socket.on("countinFromServer", countinCtrl); 53 socket.on("countinFromServer", countinCtrl);
54 function countinCtrl(groupID, currentseconds,mm,text,colour,background,unit){ 54 function countinCtrl(groupID, currentseconds,mm,text,colour,background,unit){
55 //console.log("#count"+groupID) 55 //console.log("#count"+groupID)
56 // all counts to control page 56 // all counts to control page
57 $("#counttitle"+groupID).css('color','white'); 57 $("#counttitle"+groupID).css('color','black');
58 $("#counttitle"+groupID).text(text); 58 $("#counttitle"+groupID).text(text);
59 $("#count"+groupID).text(currentseconds).css('color','white'); 59 $("#count"+groupID).text(currentseconds).css('color','black');
60 document.getElementById("count"+groupID).style.color=colour; 60 document.getElementById("count"+groupID).style.color=colour;
61 } 61 }
62 62
63 socket.on("counterText", function(group,unit,counter,seq,unitlast,transect){ 63 socket.on("counterText", function(group,unit,counter,seq,unitlast,transect){
64 64