annot-server/webapp/templates/annotviz.html
changeset 142 e424eed32f72
parent 138 30dc3baf1ab9
child 143 95104e98d78d
--- a/annot-server/webapp/templates/annotviz.html	Fri Jan 23 18:18:33 2015 +0100
+++ b/annot-server/webapp/templates/annotviz.html	Fri Jan 23 23:19:45 2015 +0100
@@ -8,11 +8,6 @@
     <h1>Piano Roll {{event.label}}</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="{{ config['STATIC_URL'] }}/js/libs-annotviz.min.js"></script>
     <script src="{{ config['STATIC_URL'] }}/js/annotviz.min.js"></script>
@@ -21,6 +16,9 @@
     var pianorollChannel  = 'PIANOROLL';
     var annotationChannel = 'ANNOT';
     var eventCode = '{{event.code}}';
+    var eventCodeSessionDay2 = 'atelier2_jour2';
+    var eventCodeSessionDay1 = 'atelier2';
+    
     var wsUri = 'ws://' + window.location.hostname + ':8090/broadcast';
 
     wsUriPianoroll = wsUri + '?channel=' + pianorollChannel + '&event_code=' + eventCode;
@@ -31,19 +29,21 @@
     var stageView = new annotviz.StageView({
         logger: logger
     });
+    console.log("COUCOU");
 
     var serverUrl = "http://" + window.location.hostname + ":8080";
     var annotsvizview = new annotviz.AnnotsVizView({
         urlCategories: serverUrl + "/p/api/v1/event/",
-        serverUrl: serverUrl,
         logger: logger,
         stageView: stageView,
+        serverUrl: serverUrl,
         wsPianoroll: new annotviz.WsWrapper(wsUriPianoroll, logger),
         wsAnnot: new annotviz.WsWrapper(wsUriAnnotation, logger),
-        timeBegin: Date.parse("2015-01-23T09:30:00+01:00"),
-        timeEnd: Date.parse("2015-01-23T18:30:00+01:00"),
+        timeBegin: Date.parse("2015-01-24T09:30:00+01:00"),
+        timeEnd: Date.parse("2015-01-24T18:30:00+01:00"),
         eventCode: eventCode,
-        eventCodeSessionDay1: "atelier2",
+        eventCodeSessionDay2: eventCodeSessionDay2,
+        eventCodeSessionDay1: eventCodeSessionDay1,
         channel: annotationChannel
     });