/
index.html
422 lines (370 loc) · 23 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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Transparent Online Classes</title>
<script src="main.js"></script>
<!-- <script src="default.js"></script> -->
<script src="jquery/jquery-3.5.1.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<link href="bootstrap-colorpicker.css" rel="stylesheet">
<script src="bootstrap-colorpicker.js"></script>
<!-- <link href="bootstrap-5.0.2-dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="bootstrap-5.0.2-dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script> -->
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> -->
<script src="https://d3js.org/d3.v5.min.js"></script>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="ztc_added.css">
</head>
<body onresize="handleWindowResize()" onload="loadWindow()">
<div class="container-fluid m-20">
<h5>Dashboard</h5>
<!-- to default -->
<button type="button" class="btn btn-primary" onclick="ToDefaultView()">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-layout-sidebar-reverse" viewBox="0 0 16 16">
<path
d="M16 3a2 2 0 0 0-2-2H2a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3zm-5-1v12H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h9zm1 0h2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-2V2z" />
</svg>
In-class view
</button>
<!-- full size -->
<div class="btn-group" role="group">
<button type="button" class="btn btn-primary" onclick="ToFullView()">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-fullscreen" viewBox="0 0 16 16">
<path
d="M1.5 1a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4A1.5 1.5 0 0 1 1.5 0h4a.5.5 0 0 1 0 1h-4zM10 .5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 16 1.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5zM.5 10a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 0 14.5v-4a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v4a1.5 1.5 0 0 1-1.5 1.5h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5z" />
</svg>
Post-class view</button>
<button id="fullsize" type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split"
data-bs-toggle="dropdown" aria-expanded="false">
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" aria-labelledby="fullsize">
<li><a class="dropdown-item" onclick="ToFullView('0.25')"><img src="full_size_img/0.25_icon.png"
class="full_window_size">
25%</a></li>
<li><a class="dropdown-item" onclick="ToFullView('0.5')"><img src="full_size_img/0.5_icon.png"
class="full_window_size">
50%</a></li>
<li>
<a class="dropdown-item" onclick="ToFullView('1')"><img src="full_size_img/1.0_icon.png"
class="full_window_size">
100%</a>
</li>
</ul>
</div>
<button id="start_record" type="button" class="btn btn-primary" onclick="handleStartRecord()">Renew</button>
<button id="finish_record" type="button" class="btn btn-primary" onclick="handleFinishRecord()">Finish</button>
<br />
<br />
<div class="m-2 p-2 card" style="border-color: #e2eafc; border-width: 4px; border-radius: 1rem; width:1000px">
<h5>In-class View:</h5>
<!-- chart img -->
<div class="row" style="align-items: center;">
<div class="col-2">
</div>
<div class="col-2" style="align-self: center">
<img width=100 src="chart_img/radial.png" />
</div>
<div class="col-2" style="align-self: center">
<img width=100 class="m-2" src="chart_img/motor.png" />
</div>
<div class="col-2" style="align-self: center">
<img width=100 class="m-2" src="chart_img/bar.png" />
</div>
<div class="col-2" style="text-align: center;padding:0px;align-self: center;">
<button id="fullsize" type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split"
data-bs-toggle="dropdown" aria-expanded="false">
<span style="font-size: 14px;"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-bell" viewBox="0 0 16 16">
<path
d="M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zM8 1.918l-.797.161A4.002 4.002 0 0 0 4 6c0 .628-.134 2.197-.459 3.742-.16.767-.376 1.566-.663 2.258h10.244c-.287-.692-.502-1.49-.663-2.258C12.134 8.197 12 6.628 12 6a4.002 4.002 0 0 0-3.203-3.92L8 1.917zM14.22 12c.223.447.481.801.78 1H1c.299-.199.557-.553.78-1C2.68 10.2 3 6.88 3 6c0-2.42 1.72-4.44 4.005-4.901a1 1 0 1 1 1.99 0A5.002 5.002 0 0 1 13 6c0 .88.32 4.2 1.22 6z" />
</svg></span>
</button>
<ul class="dropdown-menu" aria-labelledby="fullsize">
<li><a class="dropdown-item">
<div role="group" onchange="handleAlertChange()">
<div class="form-check">
<input class="form-check-input" type="radio" name="alertType" id="alertType1"
value="no" checked>
<label class="form-check-label" for="alertType1">
no effect
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="alertType" value="once"
id="alertType2">
<label class="form-check-label" for="alertType2">
once
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="alertType" value="always"
id="alertType3">
<label class="form-check-label" for="alertType3">
always
</label>
</div>
</div>
</a></li>
<li><a class="dropdown-item">
<div class="form-check" onchange="handleAlertChange()">
<input class="form-check-input" type="checkbox" value="" id="alertSound">
<label class="form-check-label" for="alertSound">
sound
</label>
</div>
</a></li>
</ul>
<!-- <img width=20 class="m-2" src="icon_img/alert.png" /> -->
<!-- <span style="padding: 0;">triggered when >/< threshold</span> -->
</div>
<div class="col-2" style="text-align:center;">Choose your favorite color</div>
</div>
<div class='row m-2' style="align-items: center;">
<div class="col-2">
<p style="font-size: large;">Engagement:</p>
</div>
<div class="btn-group col-6" role="group" aria-label="Basic radio toggle button group"
onchange="handleRadioChange()">
<input type="radio" class="btn-check" name="engageradio" id="engageradio1" value="Radial"
autocomplete="off" checked>
<label class="btn btn-outline-primary" for="engageradio1">Radial</label>
<input type="radio" class="btn-check" name="engageradio" id="engageradio2" value="Motor"
autocomplete="off">
<label class="btn btn-outline-primary" for="engageradio2">Motor</label>
<input type="radio" class="btn-check" name="engageradio" id="engageradio3" value="Bar"
autocomplete="off">
<label class="btn btn-outline-primary" for="engageradio3">Bar</label>
</div>
<div class="col-3">
<input type="range" class="form-range" min="0" max="100" value="50" id="engthresh"
style="width:5rem" onchange="handleChartThresholdChange('engthresh')">
<label>when</label>
<label id="engthreshtext" for="engthresh" class="form-label">< 50%</label>
<label>will remind you</label>
</div>
<div class="col-1" style="margin-left:-30px;" id="eng-cp">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="eng-cp-radio"
onchange="handleColorpickerRadio()">
<div class="input-group">
<span class="input-group-text colorpicker-input-addon"><i></i></span>
</div>
</div>
</div>
</div>
<div class='row m-2' style="align-items: center;">
<div class="col-2">
<p style="font-size: large;">Confused:</p>
</div>
<div class="btn-group col-6" role="group" aria-label="Basic radio toggle button group"
onchange="handleRadioChange()">
<input type="radio" class="btn-check" name="confusedradio" id="confusedradio1" value="Radial"
autocomplete="off" checked>
<label class="btn btn-outline-primary" for="confusedradio1">Radial</label>
<input type="radio" class="btn-check" name="confusedradio" id="confusedradio2" value="Motor"
autocomplete="off">
<label class="btn btn-outline-primary" for="confusedradio2">Motor</label>
<input type="radio" class="btn-check" name="confusedradio" id="confusedradio3" value="Bar"
autocomplete="off">
<label class="btn btn-outline-primary" for="confusedradio3">Bar</label>
</div>
<div class="col-3">
<input type="range" class="form-range" min="0" max="100" value="50" id="conthresh"
style="width:5rem" onchange="handleChartThresholdChange('conthresh')">
<label>when</label>
<label id="conthreshtext" for="conthresh" class="form-label">> 50%</label>
<label>will remind you</label>
</div>
<div class="col-1" style="margin-left:-30px;" id="conf-cp">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="conf-cp-radio"
onchange="handleColorpickerRadio()">
<div class="input-group">
<span class="input-group-text colorpicker-input-addon"><i></i></span>
</div>
</div>
</div>
</div>
<div class='row m-2' style="align-items: center;">
<div class="col-2">
<p style="font-size: large;">Gaze:</p>
</div>
<div class="btn-group col-6" role="group" aria-label="Basic radio toggle button group"
onchange="handleRadioChange()">
<input type="radio" class="btn-check" name="gazeradio" id="gazeradio1" value="Radial"
autocomplete="off" checked>
<label class="btn btn-outline-primary" for="gazeradio1">Radial</label>
<input type="radio" class="btn-check" name="gazeradio" id="gazeradio2" value="Motor"
autocomplete="off">
<label class="btn btn-outline-primary" for="gazeradio2">Motor</label>
<input type="radio" class="btn-check" name="gazeradio" id="gazeradio3" value="Bar"
autocomplete="off">
<label class="btn btn-outline-primary" for="gazeradio3">Bar</label>
</div>
<div class="col-3">
<input type="range" class="form-range" min="0" max="100" value="50" id="gazethresh"
style="width:5rem" onchange="handleChartThresholdChange('gazethresh')">
<label>When</label>
<label id="gazethreshtext" for="gazethresh" class="form-label">< 50%</label>
<label>will remind you</label>
</div>
<div class="col-1" style="margin-left:-30px;" id="gaze-cp">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="gaze-cp-radio"
onchange="handleColorpickerRadio()">
<div class="input-group">
<span class="input-group-text colorpicker-input-addon"><i></i></span>
</div>
</div>
</div>
</div>
<hr class="solid">
<div class='row m-2'>
<div class="col-2">
<p style="font-size: large;">Emotion:</p>
</div>
<div class="btn-group col-6" role="group" aria-label="Basic radio toggle button group"
onchange="handleRadioChange()">
<input type="radio" class="btn-check" name="emotionradio" id="emotionradio1" value="3"
autocomplete="off" checked>
<label class="btn btn-outline-primary" style="vertical-align:middle" for="emotionradio1"><img width=100
src="chart_img/emotionchart.png" /></label>
<input type="radio" class="btn-check" name="emotionradio" id="emotionradio2" value="4"
autocomplete="off">
<label class="btn btn-outline-primary" for="emotionradio2"><img width=100
src="emotionwheel_background/emotionwheel_4.png" /></label>
<input type="radio" class="btn-check" name="emotionradio" id="emotionradio3" value="8"
autocomplete="off">
<label class="btn btn-outline-primary" for="emotionradio3"><img width=100
src="emotionwheel_background/emotionwheel.png" /></label>
</div>
<div class="col-3"></div>
<div class="col-1" style="margin-left:-30px;" id="emo-cp">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="emo-cp-radio"
onchange="handleColorpickerRadio()">
<div class="input-group">
<span class="input-group-text colorpicker-input-addon"><i></i></span>
</div>
</div>
</div>
</div>
</div>
<br />
<div class="m-2 p-2 card" style="border-color: #e2eafc; border-width: 4px; border-radius: 1rem; width:1000px">
<h5>Post-class View:</h5>
<div class='row m-2'>
<div class="col-2">
<p style="font-size: large;">Engagement:</p>
</div>
<div class="btn-group col-6" role="group" aria-label="Basic radio toggle button group"
onchange="handleRadioChange()">
<input type="radio" class="btn-check" name="full-eng" id="full-eng1" value="area" autocomplete="off"
checked>
<label class="btn btn-outline-primary" for="full-eng1"><img width=100
src="icon_img/area.png" /></label>
<input type="radio" class="btn-check" name="full-eng" id="full-eng2" value="thres"
autocomplete="off">
<label class="btn btn-outline-primary" for="full-eng2"><img width=100
src="icon_img/thresh.png" /></label>
<input type="radio" class="btn-check" name="full-eng" id="full-eng3" value="border"
autocomplete="off">
<label class="btn btn-outline-primary" for="full-eng3"><img width=100
src="icon_img/border.png" /></label>
</div>
</div>
<div class='row m-2'>
<div class="col-2">
<p style="font-size: large;">Confused:</p>
</div>
<div class="btn-group col-4" role="group" aria-label="Basic radio toggle button group"
onchange="handleRadioChange()">
<input type="radio" class="btn-check" name="full-confused" id="full-confused1" value="area"
autocomplete="off" checked>
<label class="btn btn-outline-primary" for="full-confused1"><img width=100
src="icon_img/area.png" /></label>
<input type="radio" class="btn-check" name="full-confused" id="full-confused2" value="thres"
autocomplete="off">
<label class="btn btn-outline-primary" for="full-confused2"><img width=100
src="icon_img/thresh.png" /></label>
</div>
</div>
<div class='row m-2'>
<div class="col-2">
<p style="font-size: large;">Gaze:</p>
</div>
<div class="btn-group col-4" role="group" aria-label="Basic radio toggle button group"
onchange="handleRadioChange()">
<input type="radio" class="btn-check" name="full-gaze" id="full-gaze1" value="area"
autocomplete="off" checked>
<label class="btn btn-outline-primary" for="full-gaze1"><img width=100
src="icon_img/area.png" /></label>
<input type="radio" class="btn-check" name="full-gaze" id="full-gaze2" value="thres"
autocomplete="off">
<label class="btn btn-outline-primary" for="full-gaze2"><img width=100
src="icon_img/thresh.png" /></label>
</div>
</div>
<div class='row m-2'>
<div class="col-2">
<p style="font-size: large;">Emotion:</p>
</div>
<div class="btn-group col-5" role="group" aria-label="Basic radio toggle button group"
onchange="handleRadioChange()">
<input type="radio" class="btn-check" name="full-emotion" id="full-emotion1" value="area"
autocomplete="off" style="height: 100;align-self: center;">
<label class="btn btn-outline-primary" for="full-emotion1"><img width=100
src="icon_img/area.png" /></label>
<input type="radio" class="btn-check" name="full-emotion" id="full-emotion2" value="line"
autocomplete="off">
<label class="btn btn-outline-primary" for="full-emotion2"><img width=100
src="icon_img/line.png" /></label>
<input type="radio" class="btn-check" name="full-emotion" id="full-emotion3" value="heat"
autocomplete="off" checked>
<label class="btn btn-outline-primary" for="full-emotion3"><img height=50
src="icon_img/heat.png" /></label>
</div>
</div>
</div>
<br />
<!-- theme -->
<div class="m-2 p-2 card" style="border-color: #e2eafc; border-width: 4px; border-radius: 1rem; width:1000px">
<div class="row">
<div class="col-2">
<p style="font-size: large;">Theme:</p>
</div>
<div class="btn-group col-6" role="group" aria-label="Basic radio toggle button group"
onchange="handleThemeChange()">
<input type="radio" class="btn-check" name="themeradio" id="themeradio2" value="theme_blue"
autocomplete="off" checked>
<label class="btn btn-outline-primary" for="themeradio2"><img width=100
src="theme_img/theme_blue.png" /></label>
<input type="radio" class="btn-check" name="themeradio" id="themeradio3" value="theme_green"
autocomplete="off">
<label class="btn btn-outline-primary" for="themeradio3"><img width=100
src="theme_img/theme_green.png" /></label>
<input type="radio" class="btn-check" name="themeradio" id="themeradio1" value="theme_orange"
autocomplete="off">
<label class="btn btn-outline-primary" for="themeradio1"><img width=100
src="theme_img/theme_orange.png" /></label>
</div>
</div>
</div>
</div>
</body>
</html>