-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
277 lines (233 loc) · 12.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<!DOCTYPE html>
<html lang="en">
<head prefix="og: http://ogp.me/ns#">
<meta charset="UTF-8">
<link rel="shortcut icon" href="http://www.erikpaluka.com/img/favicon.ico">
<meta name="keywords" content="human-computer interaction, computer science, erik paluka, technology, development">
<meta name="author" content="Erik Paluka">
<title>SpatialVis</title>
<meta name="description" content="InfoVis">
<link href='http://fonts.googleapis.com/css?family=Exo:900' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/fileDrop.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/vis.css" type="text/css" media="screen" />
</head>
<body>
<div id="logVisContainer" class="grnBack">
<div id="leftSideBar">
<div id="title">
Visualization of Logged Spatial Interaction Data
</div>
<div id="options">
<div id="timeCont">
<span id="timeTitle" class="optionTitle">Time</span>
<div id="vidTime">
<div id="vidTimeCurr">0.00s </div>
<div id="vidTimeDura">33.50s </div>
</div>
</div>
<div id="states">
<div id="stateTitle">Global Heatmap</div>
<div id="glbState"></div>
<div id="saveState" class="controlButtons">Save State</div>
<div id="localStates">
<div id="divLoad1">
<img id="imgState1" alt="Saved visualization state" src="img/savedVisState.png" width="256" height="160">
<div id="stateBut1">
<div id="loadState1" class="controlButtons stateB">Load State</div>
<a id="stateLink1" target="_blank" download>
<div id="saveImg1" class="controlButtons stateB right">
Save Image
</div>
</a>
</div>
<canvas id="state1"></canvas>
</div>
<div id="divLoad2">
<img id="imgState2" alt="Saved visualization state" src="img/savedVisState.png" width="256" height="160">
<div id="stateBut2">
<div id="loadState2" class="controlButtons stateB">Load State</div>
<a id="stateLink2" target="_blank" download>
<div id="saveImg2" class="controlButtons stateB right">
Save Image
</div>
</a>
</div>
<canvas id="state2"></canvas>
</div>
<div id="divLoad3">
<img id="imgState3" alt="Saved visualization state" src="img/savedVisState.png" width="256" height="160">
<div id="stateBut3">
<div id="loadState3" class="controlButtons stateB">Load State</div>
<a id="stateLink3" target="_blank" download>
<div id="saveImg3" class="controlButtons stateB right">
Save Image
</div>
</a>
</div>
<canvas id="state3"></canvas>
</div>
</div>
</div>
<div id="butOptions">
<div>
<span class="optionTitle">Visualization</span>
<div class="box">
<span class="btnName">Show</span>
<div class="toggle" id="shViz"></div>
</div>
<div class="box slideBox">
<div>
<span class="slideTitle">Opacity Level of Initial Detection Point</span>
</div>
<div>
<input class="slider" id="transDetect" type="range" min="0.0" max="1.0" value="0.6" step ="0.01">
</div>
</div>
</div>
<div>
<span class="optionTitle">Video</span>
<div class="box">
<span class="btnName">Show</span>
<div class="toggle" id="shVideo"></div>
</div>
<div class="box">
<span class="btnName">Play Entire Video</span>
<div class="toggle off" id="fullVidPlay"></div>
</div>
<div class="box">
<span class="btnName">Video Speed</span>
<input class="input" id="videoSpeedCont" value="1.0" type="number" min="0.01" max="100" step="0.1">
</div>
<div class="box slideBox">
<span class="slideTitle">Opacity</span>
<input class="slider" id="vidOSlider" type="range" min="0.0" max="1.0" value="0.75" step ="0.01">
</div>
</div>
<div>
<span class="optionTitle">Trail Visualization</span>
<div class="box">
<span class="btnName">Render Entire Trail</span>
<div class="toggle off" id="trailFlag"></div>
</div>
<div class="box">
<span class="btnName">Length of Trail in Frames</span>
<input class="input" id="trailLengthCont" value="125" type="number" min="1">
</div>
<div class="box slideBox">
<span class="slideTitle">Opacity</span>
<input class="slider" id="transTrail" type="range" min="0.0" max="1.0" value="0.5" step ="0.01">
</div>
</div>
<div>
<span class="optionTitle">Gesture Visualization</span>
<div class="box">
<span class="btnName">Show</span>
<div class="toggle" id="shGest"></div>
</div>
<div class="box slideBox">
<span class="slideTitle">Gesture Outer Opacity</span>
<input class="slider" id="gestOutSlider" type="range" min="0.0" max="1.0" value="0.1" step ="0.01">
</div>
<div class="box slideBox">
<span class="slideTitle">Gesture Inner Opacity</span>
<input class="slider" id="gestInSlider" type="range" min="0.0" max="1.0" value="0.3" step ="0.01">
</div>
</div>
<div>
<span class="optionTitle">Heatmap</span>
<div class="box">
<span class="btnName">Show</span>
<div class="toggle" id="renderHeat"></div>
</div>
<div class="box">
<span class="btnName">Use Total Data</span>
<div class="toggle off" id="totalDataHeat"></div>
</div>
<div class="box">
<span class="btnName">Animate Heatmap</span>
<div class="toggle off" id="animHeatFlag"></div>
</div>
<div class="box">
<span class="btnName">Length of Heatmap in Frames</span>
<input class="input" id="heatLengthCont" value="125" type="number" min="1">
</div>
</div>
<div>
<span class="optionTitle">Annotations</span>
<div class="box">
<span class="btnName">Show</span>
<div class="toggle" id="shAnn"></div>
</div>
<div class="box">
<span class="btnName">Colour</span>
<input class="input color" id="annoColour" value="FFFFFF" type="text">
</div>
<div class="box">
<div class="controlButtons" id="clear">Clear All</div>
</div>
</div>
<div class="mono" id="zDepthLegend">
<span id="zDepthTitle">Z-Depth Legend</span>
<span id="chgLengend">Change Colour</span>
<div id="zColours" class="mono"></div>
<div id="legendDepth">
<span class="zDLSpace"><-200</span>
<span class="zDLSpace">-150</span>
<span class="zDLSpace">-100</span>
<span class="zDLSpace">-50</span>
<span class="zDLSpace">0</span>
<span class="zDLSpace">+50</span>
<span class="zDLSpace">+100</span>
<span class="zDLSpace">+150</span>
+200>
</div>
</div>
</div>
</div>
</div>
<div id="middleContainer" class="grnBack">
<div id="dropMask"></div>
<div id="dropInfo">
<div id="logFileElements">
<p class="dropText">Drag 'n Drop a
<strong>Log File in JSON format</strong>
<br>or
<br>Use the File Upload Element
</p>
<br>
<input id="fileInput" type="file" multiple="false">
<p id="fileInfo"></p>
<div id="fileSubmit">Submit Logfile</div>
</div>
<div id="visualMediaFileElements">
<p class="dropText">Drag 'n Drop a
<strong>UI Video File</strong>,
<br>or
<br>Use the File Upload Element
</p>
<br>
<input id="videoInput" type="file" multiple="false">
<p id="videoInfo"></p>
<div id="videoSubmit">Submit Video File</div>
</div>
<div id="progressBar">
<span id="loadProgress">0% Loaded</span>
</div>
</div>
</div>
</div>
<script src="js/lib/d3.v3.min.js"></script>
<script src="js/transferFiles.js"></script>
<script src="js/main.js"></script>
<script src="js/trailVis.js"></script>
<script src="js/eventBinding.js"></script>
<script src="js/lib/heatmap.js"></script>
<script src="js/myHeatmap.js"></script>
<script src="js/graphData.js"></script>
<script src="js/video.js"></script>
<script src="js/visState.js"></script>
<script src="js/lib/jscolor/jscolor.js"></script>
</body>
</html>