client/annotviz/app/annotsvizview.html
changeset 131 0bb70072a56f
parent 129 7181e1f28eb0
child 135 d3066fa80a81
--- a/client/annotviz/app/annotsvizview.html	Fri Jan 23 01:08:34 2015 +0100
+++ b/client/annotviz/app/annotsvizview.html	Fri Jan 23 02:00:19 2015 +0100
@@ -21,50 +21,50 @@
     <script src="/js/libs-annotviz.js"></script>
     <script src="/js/annotviz.js"></script>
     <script>
-    
-	    var pianorollChannel  = 'PIANOROLL';
-	    var annotationChannel = 'ANNOT';
-	    var eventCode = 'test_1';
-	    var serverUrl = "http://localhost:8080";
-	    var wsUri;
-	    
-	    if (window.location.protocol === 'file:') {
-	        wsUri = 'ws://172.16.0.20:8090/broadcast';
-	    }
-	    else {
-	        wsUri = 'ws://' + window.location.hostname + ':8090/broadcast';
-	    }
-	    wsUriPianoroll = wsUri + '?channel=' + pianorollChannel + '&event_code=' + eventCode;
-	    wsUriAnnotation = wsUri + '?channel=' + annotationChannel + '&event_code=' + eventCode;
+
+        var pianorollChannel  = 'PIANOROLL';
+        var annotationChannel = 'ANNOT';
+        var eventCode = 'test_1';
+        var serverUrl = "http://localhost:8080";
+        var wsUri;
 
-	    var logger = new annotviz.ConsoleLogger(true);
+        if (window.location.protocol === 'file:') {
+            wsUri = 'ws://172.16.0.20:8090/broadcast';
+        }
+        else {
+            wsUri = 'ws://' + window.location.hostname + ':8090/broadcast';
+        }
+        wsUriPianoroll = wsUri + '?channel=' + pianorollChannel + '&event_code=' + eventCode;
+        wsUriAnnotation = wsUri + '?channel=' + annotationChannel + '&event_code=' + eventCode;
 
-	    var stageView = new annotviz.StageView({
-	    	logger: logger
-	    });
+        var logger = new annotviz.ConsoleLogger(true);
+
+        var stageView = new annotviz.StageView({
+            logger: logger
+        });
 
         var annotsvizview = new annotviz.AnnotsVizView({
-        	urlCategories: serverUrl + "/p/api/v1/event/" + eventCode,
-        	logger: logger,
-        	stageView: stageView,
-        	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"),
-        	eventCode: eventCode,
+            urlCategories: serverUrl + "/p/api/v1/event/" + eventCode,
+            logger: logger,
+            stageView: stageView,
+            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"),
+            eventCode: eventCode,
             channel: annotationChannel
         });
 
 
         function stop() {
-        	stageView.stop();
+            stageView.stop();
         }
         function start() {
-        	stageView.start();
+            stageView.start();
         }
 
         window.onload = function() {
-        	stageView.init();
+            stageView.init();
             start();
         }
     </script>