# HG changeset patch # User tzara # Date 1341437076 0 # Node ID 33e6dc370ef750cc1911c273fc6330219be0ba97 # Parent 9070b2a7ca653eccc8a4199a4424c52827576eda fixed css diff -r 9070b2a7ca65 -r 33e6dc370ef7 INSTALL --- a/INSTALL Wed Jul 04 13:10:04 2012 +0000 +++ b/INSTALL Wed Jul 04 21:24:36 2012 +0000 @@ -47,6 +47,5 @@ ////////////////////////////////// //start server - cd nodescore node nodescore.js diff -r 9070b2a7ca65 -r 33e6dc370ef7 www/m/.#1.html --- a/www/m/.#1.html Wed Jul 04 13:10:04 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -rob@tzara.26044:1340918990 \ No newline at end of file diff -r 9070b2a7ca65 -r 33e6dc370ef7 www/m/1.html --- a/www/m/1.html Wed Jul 04 13:10:04 2012 +0000 +++ b/www/m/1.html Wed Jul 04 21:24:36 2012 +0000 @@ -11,7 +11,10 @@ + + + diff -r 9070b2a7ca65 -r 33e6dc370ef7 www/m/2.html --- a/www/m/2.html Wed Jul 04 13:10:04 2012 +0000 +++ b/www/m/2.html Wed Jul 04 21:24:36 2012 +0000 @@ -1,7 +1,7 @@ - + diff -r 9070b2a7ca65 -r 33e6dc370ef7 www/m/3.html --- a/www/m/3.html Wed Jul 04 13:10:04 2012 +0000 +++ b/www/m/3.html Wed Jul 04 21:24:36 2012 +0000 @@ -1,7 +1,7 @@ - + diff -r 9070b2a7ca65 -r 33e6dc370ef7 www/m/4.html --- a/www/m/4.html Wed Jul 04 13:10:04 2012 +0000 +++ b/www/m/4.html Wed Jul 04 21:24:36 2012 +0000 @@ -1,7 +1,7 @@ - + diff -r 9070b2a7ca65 -r 33e6dc370ef7 www/m/controls.html --- a/www/m/controls.html Wed Jul 04 13:10:04 2012 +0000 +++ b/www/m/controls.html Wed Jul 04 21:24:36 2012 +0000 @@ -1,10 +1,9 @@ - + - - + diff -r 9070b2a7ca65 -r 33e6dc370ef7 www/m/js/.#metronome.js --- a/www/m/js/.#metronome.js Wed Jul 04 13:10:04 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -rob@tzara.20578:1340918990 \ No newline at end of file diff -r 9070b2a7ca65 -r 33e6dc370ef7 www/m/js/client.js --- a/www/m/js/client.js Wed Jul 04 13:10:04 2012 +0000 +++ b/www/m/js/client.js Wed Jul 04 21:24:36 2012 +0000 @@ -3,22 +3,6 @@ var socket = io.connect(); -// receive metronome tick from server and execute -// css animation locally - -///////////////////////////////////////////////// - -socket.on("metroPulse", pulseInClient); -function pulseInClient(pulse,groupID,metrobeat){ - - var groupPage=document.getElementById('group').value -// console.log(pulse+"........"+ groupID+ "==" +groupPage+".........."+metrobeat) - if (groupID == groupPage) { -// var metrobeat=metrobeat -// console.log(pulse+" .................. "+metrobeat) - metronomeTick(1000, groupID, metrobeat); - } -} ///////////////////////////////////////////////// // update the stopwatch value on the client page in line with server @@ -42,31 +26,6 @@ function pad2(number) { return (number < 10 ? '0' : '') + number } ///////////////////////////////////////////////// -// countdown to change - -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'; - } - }} - -///////////////////////////////////////////////// - - -///////////////////////////////////////////////// socket.on("pageFlipfromserver", pageTurn); function pageTurn (group,unit,time,mm) { diff -r 9070b2a7ca65 -r 33e6dc370ef7 www/m/js/metronome.js --- a/www/m/js/metronome.js Wed Jul 04 13:10:04 2012 +0000 +++ b/www/m/js/metronome.js Wed Jul 04 21:24:36 2012 +0000 @@ -1,7 +1,15 @@ -//var socket = io.connect(); +var socket = io.connect(); //socket.on("metroPulse", metronomeTick); - +///////////////////////////////////////////////// +socket.on("metroPulse", pulseInClient); +function pulseInClient(pulse,groupID,metrobeat){ + var groupPage=document.getElementById('group').value + if (groupID == groupPage) { + metronomeTick(1000, groupID, metrobeat); + } +} +///////////////////////////////////////////////// function metroCss(beat, beatcolor,text){ var color = beatcolor;