client/annotviz/app/annotsvizview.html
changeset 105 25ac8802c189
parent 104 685c5ebc59d0
child 108 082b64a5c699
--- a/client/annotviz/app/annotsvizview.html	Wed Jan 21 20:43:05 2015 +0100
+++ b/client/annotviz/app/annotsvizview.html	Thu Jan 22 02:21:15 2015 +0100
@@ -17,25 +17,20 @@
     <h1>Piano Roll vertical</h1>
     <noscript>You must enable JavaScript</noscript>
     <div id="canvasContainer"></div>
-    <p>
-        <a href="#" onclick="stop(); return false;">stop intervals</a> -
-        <a href="#" onclick="start(); return false;">start intervals</a> -
-        temps écoulé : <span id="timeStarted"></span>
-    </p>
     <!--pre id="log"></pre-->
     <script src="/js/libs-annotviz.js"></script>
     <script src="/js/annotviz.js"></script>
     <script>
 	    var pianorollChannel  = 'PIANOROLL';
 	    var annotationChannel = 'ANNOT';
-	    var eventCode = 'atelier2_test';
+	    var eventCode = 'test_1';
 	    var wsUri;
-// 	    if (window.location.protocol === 'file:') {
+	    if (window.location.protocol === 'file:') {
 	        wsUri = 'ws://172.16.0.20:8090/broadcast';
-// 	    }
-// 	    else {
-// 	        wsUri = 'ws://' + window.location.hostname + ':8090/broadcast';
-// 	    }
+	    }
+	    else {
+	        wsUri = 'ws://' + window.location.hostname + ':8090/broadcast';
+	    }
 	    wsUriPianoroll = wsUri + '?channel=' + pianorollChannel + '&event_code=' + eventCode;
 	    wsUriAnnotation = wsUri + '?channel=' + annotationChannel + '&event_code=' + eventCode;