diff www/8/js/nodescore-slides.js @ 64:20758a107447

major fix of lots of bugs
author tzara <rc-web@kiben.net>
date Thu, 23 May 2013 22:41:23 +0000
parents 9bf133b91890
children
line wrap: on
line diff
--- a/www/8/js/nodescore-slides.js	Tue May 21 00:35:33 2013 +0000
+++ b/www/8/js/nodescore-slides.js	Thu May 23 22:41:23 2013 +0000
@@ -77,10 +77,10 @@
 /////////////////////////////////////////////////
 //var testSound = new buzz.sound( 'audio/testfile', { formats: [ 'ogg', 'mp3' ] } );
 socket.on("pageFlipfromserver", pageTurn);
-function pageTurn (group,unit,time,mm) {
+function pageTurn (group,unit,time,mm,seqcounter,nextunit) {
     var groupPage=document.getElementById('group').value;
     if (group == groupPage) {
-	unit = (unit+1)
+	console.log(unit + " ---> " + nextunit)
 	var g= pad2(group); 
 	var p= pad2(unit);
 	var units=8;
@@ -89,7 +89,7 @@
 	$("#live").load("music.html #"+unit); 
 	
 	//$("#live").html("<img src='thumbs/"+ (unit) + ".png" + "' width='715'>")
-	$("#preview").html("<h3 style='background:transparent; position: relative; font-size:1.5em;top:14px; left:10px;';> n e x t : </h3><img src='thumbs/"+ (unit) + ".png" + "' width='315'>")
+	$("#preview").html("<h3 style='background:transparent; position: relative; font-size:1.5em;top:14px; left:10px;';> n e x t : </h3><img src='thumbs/"+ (nextunit) + ".png" + "' width='305'>")
     }
     else { 
 	//console.log("not for this group... ignoring... for group:" + group );