author | rougeronj |
Fri, 17 Apr 2015 11:48:03 +0200 | |
changeset 161 | 0b01cbd8ed9e |
parent 160 | fd3482903412 |
child 167 | 2b99fed0285e |
permissions | -rw-r--r-- |
108 | 1 |
<html> |
2 |
<head> |
|
3 |
<meta charset="UTF-8"> |
|
4 |
<title>Piano Roll {{event.label}}</title> |
|
5 |
<link href="{{ config['STATIC_URL'] }}/css/annotviz.min.css" rel="stylesheet"> |
|
6 |
</head> |
|
7 |
<body> |
|
8 |
<h1>Piano Roll {{event.label}}</h1> |
|
9 |
<noscript>You must enable JavaScript</noscript> |
|
10 |
<div id="canvasContainer"></div> |
|
11 |
<pre id="log"></pre> |
|
12 |
<script src="{{ config['STATIC_URL'] }}/js/libs-annotviz.min.js"></script> |
|
13 |
<script src="{{ config['STATIC_URL'] }}/js/annotviz.min.js"></script> |
|
14 |
<script> |
|
15 |
||
16 |
var pianorollChannel = 'PIANOROLL'; |
|
17 |
var annotationChannel = 'ANNOT'; |
|
18 |
var eventCode = '{{event.code}}'; |
|
161 | 19 |
var eventCodeSessionDay2 = 'atelier3_jour1'; |
20 |
// var eventCodeSessionDay1 = 'atelier3_jour1'; |
|
142
e424eed32f72
Add correct options to annotviz.html fo 3rd day and gulp dist server
rougeronj
parents:
138
diff
changeset
|
21 |
|
108 | 22 |
var wsUri = 'ws://' + window.location.hostname + ':8090/broadcast'; |
23 |
||
24 |
wsUriPianoroll = wsUri + '?channel=' + pianorollChannel + '&event_code=' + eventCode; |
|
25 |
wsUriAnnotation = wsUri + '?channel=' + annotationChannel + '&event_code=' + eventCode; |
|
26 |
||
27 |
var logger = new annotviz.ConsoleLogger(true); |
|
28 |
||
29 |
var stageView = new annotviz.StageView({ |
|
30 |
logger: logger |
|
31 |
}); |
|
32 |
||
132 | 33 |
var serverUrl = "http://" + window.location.hostname + ":8080"; |
108 | 34 |
var annotsvizview = new annotviz.AnnotsVizView({ |
138
30dc3baf1ab9
correct timeline archive loading again
ymh <ymh.work@gmail.com>
parents:
132
diff
changeset
|
35 |
urlCategories: serverUrl + "/p/api/v1/event/", |
108 | 36 |
logger: logger, |
37 |
stageView: stageView, |
|
142
e424eed32f72
Add correct options to annotviz.html fo 3rd day and gulp dist server
rougeronj
parents:
138
diff
changeset
|
38 |
serverUrl: serverUrl, |
108 | 39 |
wsPianoroll: new annotviz.WsWrapper(wsUriPianoroll, logger), |
40 |
wsAnnot: new annotviz.WsWrapper(wsUriAnnotation, logger), |
|
160 | 41 |
timeBegin: Date.parse("2015-04-17T14:00:00+02:00"), |
42 |
timeEnd: Date.parse("2015-04-17T21:00:00+02:00"), |
|
131 | 43 |
eventCode: eventCode, |
161 | 44 |
eventCodeSessionDay2: eventCodeSessionDay2, |
45 |
// eventCodeSessionDay1: eventCodeSessionDay1, |
|
132 | 46 |
channel: annotationChannel |
108 | 47 |
}); |
48 |
||
49 |
||
50 |
function stop() { |
|
51 |
stageView.stop(); |
|
52 |
} |
|
53 |
function start() { |
|
54 |
stageView.start(); |
|
55 |
} |
|
56 |
||
57 |
window.onload = function() { |
|
58 |
stageView.init(); |
|
59 |
start(); |
|
60 |
} |
|
61 |
</script> |
|
62 |
</body> |
|
63 |
</html> |