author | rougeronj |
Mon, 13 Apr 2015 17:11:47 +0200 | |
changeset 146 | 192d7d7f7bb4 |
parent 141 | e6892a30d454 |
permissions | -rw-r--r-- |
103 | 1 |
<!DOCTYPE html> |
2 |
<html lang="en"> |
|
3 |
<head> |
|
4 |
<meta charset="utf-8"> |
|
5 |
<meta name="viewport" content="width=device-width,initial-scale=1"> |
|
6 |
<meta name="description" content=""> |
|
7 |
<meta name="author" content="I.R.I"> |
|
8 |
<link rel="shortcut icon" href="/img/favicon.ico"> |
|
9 |
||
10 |
<title>AnnotsVizView</title> |
|
11 |
||
12 |
<!-- Custom styles for this template --> |
|
13 |
<link href="/css/annotviz.css" rel="stylesheet"> |
|
14 |
</head> |
|
15 |
||
16 |
<body> |
|
17 |
<h1>Piano Roll vertical</h1> |
|
18 |
<noscript>You must enable JavaScript</noscript> |
|
19 |
<div id="canvasContainer"></div> |
|
20 |
<!--pre id="log"></pre--> |
|
21 |
<script src="/js/libs-annotviz.js"></script> |
|
22 |
<script src="/js/annotviz.js"></script> |
|
23 |
<script> |
|
131 | 24 |
|
25 |
var pianorollChannel = 'PIANOROLL'; |
|
26 |
var annotationChannel = 'ANNOT'; |
|
141 | 27 |
var eventCode = 'atelier2_jour3'; |
28 |
var eventCodeSessionDay2 = 'atelier2_jour2'; |
|
137 | 29 |
var eventCodeSessionDay1 = 'atelier2'; |
135 | 30 |
var serverUrl = "http://172.16.0.20:8080"; |
131 | 31 |
var wsUri; |
108 | 32 |
|
135 | 33 |
wsUri = 'ws://172.16.0.20:8090/broadcast'; |
131 | 34 |
wsUriPianoroll = wsUri + '?channel=' + pianorollChannel + '&event_code=' + eventCode; |
35 |
wsUriAnnotation = wsUri + '?channel=' + annotationChannel + '&event_code=' + eventCode; |
|
108 | 36 |
|
131 | 37 |
var logger = new annotviz.ConsoleLogger(true); |
38 |
||
39 |
var stageView = new annotviz.StageView({ |
|
40 |
logger: logger |
|
41 |
}); |
|
103 | 42 |
|
43 |
var annotsvizview = new annotviz.AnnotsVizView({ |
|
137 | 44 |
urlCategories: serverUrl + "/p/api/v1/event/", |
131 | 45 |
logger: logger, |
46 |
stageView: stageView, |
|
135 | 47 |
serverUrl:serverUrl, |
131 | 48 |
wsPianoroll: new annotviz.WsWrapper(wsUriPianoroll, logger), |
49 |
wsAnnot: new annotviz.WsWrapper(wsUriAnnotation, logger), |
|
141 | 50 |
timeBegin: Date.parse("2015-01-24T09:30:00+01:00"), |
51 |
timeEnd: Date.parse("2015-01-24T18:30:00+01:00"), |
|
131 | 52 |
eventCode: eventCode, |
141 | 53 |
eventCodeSessionDay2: eventCodeSessionDay2, |
135 | 54 |
eventCodeSessionDay1: eventCodeSessionDay1, |
128
9f2334598088
add archive variable to desactivate the socket listening for the static timeLines
rougeronj
parents:
122
diff
changeset
|
55 |
channel: annotationChannel |
103 | 56 |
}); |
108 | 57 |
|
103 | 58 |
|
59 |
function stop() { |
|
131 | 60 |
stageView.stop(); |
103 | 61 |
} |
62 |
function start() { |
|
131 | 63 |
stageView.start(); |
103 | 64 |
} |
65 |
||
66 |
window.onload = function() { |
|
131 | 67 |
stageView.init(); |
103 | 68 |
start(); |
69 |
} |
|
70 |
</script> |
|
71 |
</body> |
|
72 |
</html> |