author | ymh <ymh.work@gmail.com> |
Fri, 23 Jan 2015 11:28:25 +0100 | |
changeset 137 | 750d9076a4a8 |
parent 135 | d3066fa80a81 |
child 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'; |
|
137 | 27 |
var eventCode = 'atelier2_jour2'; |
28 |
var eventCodeSessionDay1 = 'atelier2'; |
|
135 | 29 |
var serverUrl = "http://172.16.0.20:8080"; |
131 | 30 |
var wsUri; |
108 | 31 |
|
135 | 32 |
wsUri = 'ws://172.16.0.20:8090/broadcast'; |
131 | 33 |
wsUriPianoroll = wsUri + '?channel=' + pianorollChannel + '&event_code=' + eventCode; |
34 |
wsUriAnnotation = wsUri + '?channel=' + annotationChannel + '&event_code=' + eventCode; |
|
108 | 35 |
|
131 | 36 |
var logger = new annotviz.ConsoleLogger(true); |
37 |
||
38 |
var stageView = new annotviz.StageView({ |
|
39 |
logger: logger |
|
40 |
}); |
|
103 | 41 |
|
42 |
var annotsvizview = new annotviz.AnnotsVizView({ |
|
137 | 43 |
urlCategories: serverUrl + "/p/api/v1/event/", |
131 | 44 |
logger: logger, |
45 |
stageView: stageView, |
|
135 | 46 |
serverUrl:serverUrl, |
131 | 47 |
wsPianoroll: new annotviz.WsWrapper(wsUriPianoroll, logger), |
48 |
wsAnnot: new annotviz.WsWrapper(wsUriAnnotation, logger), |
|
49 |
timeBegin: Date.parse("2015-01-23T09:30:00+01:00"), |
|
50 |
timeEnd: Date.parse("2015-01-23T18:30:00+01:00"), |
|
51 |
eventCode: eventCode, |
|
135 | 52 |
eventCodeSessionDay1: eventCodeSessionDay1, |
128
9f2334598088
add archive variable to desactivate the socket listening for the static timeLines
rougeronj
parents:
122
diff
changeset
|
53 |
channel: annotationChannel |
103 | 54 |
}); |
108 | 55 |
|
103 | 56 |
|
57 |
function stop() { |
|
131 | 58 |
stageView.stop(); |
103 | 59 |
} |
60 |
function start() { |
|
131 | 61 |
stageView.start(); |
103 | 62 |
} |
63 |
||
64 |
window.onload = function() { |
|
131 | 65 |
stageView.init(); |
103 | 66 |
start(); |
67 |
} |
|
68 |
</script> |
|
69 |
</body> |
|
70 |
</html> |