-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
355 lines (328 loc) · 15.3 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
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Expérience sur l'audition</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<div class="ui middle aligned aligned padded grid">
<div class="ui column raised very text container">
<div id="introduction-section" class="hide">
<h2 class="ui header">{{homepage_title}}</h2>
{{homepage_description}}
<div class="ui basic segment center aligned">
<button id="start-experiment" class="ui right labeled large icon primary button">
<i class="right arrow icon"></i>
{{homepage_startExperiment}}
</button>
</div>
</div>
<div id="user-info-form-section" class="hide">
<p>{{userInfo_description}}</p>
<form id="user-info-form" class="ui form">
<div class="field">
<label for="user-info_age">{{userInfo_ageLabel}}</label>
<input type="number" id="user-info_age" name="user-info_age" min="18" max="100" pattern="[0-9]*" inputmode="numeric" required>
</div>
<div class="field">
<label for="user-info_nationality">{{userInfo_nationalityLabel}}</label>
<select id="user-info_nationality" name="user-info_nationality" required>
<!-- populated in userInfoForm.ts -->
</select>
</div>
<div class="grouped fields">
<label>{{userInfoListening_deviceLabel}}</label>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_device-headset" value="headset" name="user-info_device" checked="" tabindex="0" class="hidden">
<label for="user-info_device-headset">{{userInfoListening_deviceHeadset}}</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_device-earphones" value="earphones" name="user-info_device" tabindex="0" class="hidden">
<label for="user-info_device-earphones">{{userInfoListening_deviceEarphones}}</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_device-speakers" value="speakers" name="user-info_device" tabindex="0" class="hidden">
<label for="user-info_device-speakers">{{userInfoListening_deviceSpeakers}}</label>
</div>
</div>
</div>
<div class="grouped fields">
<label>{{userInfoListening_hearingIssuesLabel}}</label>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_hearing-issues-yes" value="yes" name="user-info_hearing-issues" tabindex="0" class="hidden">
<label for="user-info_hearing-issues-yes">{{common_yes}}</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_hearing-issues-no" value="no" name="user-info_hearing-issues" tabindex="0" class="hidden">
<label for="user-info_hearing-issues-no">{{common_no}}</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_hearing-issues-unknown" value="unknown" name="user-info_hearing-issues" checked="" tabindex="0" class="hidden">
<label for="user-info_hearing-issues-unknown">{{common_dontKnow}}</label>
</div>
</div>
</div>
<div class="grouped fields">
<label>{{userInfoListening_tinnitusLabel}}</label>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_tinnitus-yes" value="yes" name="user-info_tinnitus" tabindex="0" class="hidden">
<label for="user-info_tinnitus-yes">{{common_yes}}</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_tinnitus-no" value="no" name="user-info_tinnitus" tabindex="0" class="hidden">
<label for="user-info_tinnitus-no">{{common_no}}</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_tinnitus-unknown" value="unknown" name="user-info_tinnitus" checked="" tabindex="0" class="hidden">
<label for="user-info_tinnitus-unknown">{{common_dontKnow}}</label>
</div>
</div>
</div>
<div class="grouped fields">
<label>{{userInfo_hypersensitivityLabel}}</label>
<div class="ui ignored info message">
<p>{{userInfo_hypersensitivityDescription}}</p>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_hypersensitivity-yes" value="yes" name="user-info_hypersensitivity" tabindex="0" class="hidden">
<label for="user-info_hypersensitivity-yes">{{common_yes}}</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_hypersensitivity-no" value="no" name="user-info_hypersensitivity" tabindex="0" class="hidden">
<label for="user-info_hypersensitivity-no">{{common_no}}</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_hypersensitivity-unknown" value="unknown" name="user-info_hypersensitivity" checked="" tabindex="0" class="hidden">
<label for="user-info_hypersensitivity-unknown">{{common_dontKnow}}</label>
</div>
</div>
</div>
<div class="grouped fields">
<label>{{userInfo_soundsReactionsLabel}}</label>
<div class="ui ignored info message">
<p>{{userInfo_soundsReactionsDescription}}</p>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_sounds-reactions-yes" value="yes" name="user-info_sounds-reactions" tabindex="0" class="hidden">
<label for="user-info_sounds-reactions-yes">{{common_yes}}</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_sounds-reactions-no" value="no" name="user-info_sounds-reactions" tabindex="0" class="hidden">
<label for="user-info_sounds-reactions-no">{{common_no}}</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" id="user-info_sounds-reactions-unknown" value="unknown" name="user-info_sounds-reactions" checked="" tabindex="0" class="hidden">
<label for="user-info_sounds-reactions-unknown">{{common_dontKnow}}</label>
</div>
</div>
<div id="user-info_sounds-reactions-list-field" class="field hide">
<label for="user-info_sounds-reactions-list">{{userInfo_soundsReactionsListLabel}}</label>
<textarea id="user-info_sounds-reactions-list" name="user-info_sounds-reactions-list" placeholder="{{userInfo_soundsReactionsListPlaceholder}}" rows="2" ></textarea>
</div>
</div>
<div class="ui basic segment center aligned">
<button class="ui right labeled large icon primary button">
<i class="right arrow icon"></i>
{{userInfo_nextForm}}
</button>
</div>
</form>
</div>
<div id="noise-tolerance-form-section" class="hide">
<h3>{{noiseTolerance_title}}</h3>
{{noiseTolerance_description}}
<div class="ui divider"></div>
<form id="noise-tolerance-form" class="ui form">
<div class="ui padded centered grid">
<!-- This part is filled by the views/noiseToleranceForm module -->
</div>
<div class="ui basic segment center aligned">
<button class="ui right labeled large icon primary button">
<i class="right arrow icon"></i>
{{noiseTolerance_configureSound}}
</button>
</div>
</form>
</div>
<div id="sound-config-section" class="hide">
{{soundConfig_description}}
<div class="ui padded grid center aligned">
<div class="ui row">
<div class="sixteen wide column">
<button id="play-ref-sound" class="ui labeled icon large button">
<i class="play icon"></i>
<span>{{common_playSound}}</span>
</button>
</div>
</div>
<div class="ui column centered row">
<div class="one wide column">
<i class="volume down icon grey"></i>
</div>
<div class="twelve wide column">
<input class="full-width" id="ref-sound-slider" name="ref-sound-slider" type="range" min="1" max="30" step="1" value="3">
</div>
<div class="one wide column">
<i class="volume up icon grey"></i>
</div>
</div>
</div>
<div class="ui basic segment center aligned">
<button id="start-training" class="ui right labeled large icon primary button">
<i class="right arrow icon"></i>
{{soundConfig_startTraining}}
</button>
</div>
</div>
<div id="sound-training-section" class="hide">
{{soundTraining_description}}
<div class="ui padded grid center aligned">
<div class="ui row">
<div class="sixteen wide column">
<button id="play-training-sound" class="ui labeled icon large button">
<i class="play icon"></i>
<span>{{common_playSound}}</span>
</button>
</div>
</div>
<div class="ui row" style="padding-bottom: 0;">
<div class="six wide mobile six wide tablet four wide computer left aligned column">
<span class="sound-test-slider-label green">{{common_veryPleasant}}</span>
</div>
<div class="four wide mobile four wide tablet eight wide computer center aligned column">
<span class="sound-test-slider-label">{{common_neutral}}</span>
</div>
<div class="six wide mobile six wide tablet four wide computer right aligned column">
<span class="sound-test-slider-label red">{{common_veryUnpleasant}}</span>
</div>
</div>
<div class="ui row" style="padding-top: 0;">
<div class="fourteen wide column">
<input class="full-width" id="training-sound-slider" name="training-sound-slider" type="range" min="0" max="100" step="1" value="50">
</div>
</div>
</div>
<div class="ui basic segment center aligned">
<button id="next-training" class="ui right labeled large icon disabled primary button">
<i class="right arrow icon"></i>
{{soundTraining_nextSound}}
</button>
<button id="start-tests" class="ui right labeled large icon disabled primary button hide">
<i class="right arrow icon"></i>
{{soundTraining_startTests}}
</button>
</div>
<div class="ui basic segment center aligned" style="padding-top: 0;">
<button id="reconfigure-sound" class=" compact ui left labeled icon button">
<i class="left arrow icon"></i>
{{soundTraining_reconfigureSound}}
</button>
</div>
</div>
<div id="sound-tests-section" class="hide">
{{soundTests_description}}
<div class="ui padded grid center aligned">
<div class="ui row">
<div class="fourteen wide column">
<div id="experiment-progress-bar" class="ui progress small">
<div class="bar">
<div class="progress"></div>
</div>
<div class="label">{{soundTests_experimentInProgress}}</div>
</div>
</div>
</div>
<div class="ui row">
<div class="sixteen wide column">
<button id="play-test-sound" class="ui labeled icon large button">
<i class="play icon"></i>
<span>{{common_playSound}}</span>
</button>
</div>
</div>
<div class="ui row" style="padding-bottom: 0;">
<div class="six wide mobile six wide tablet four wide computer left aligned column">
<span id="sound-test-slider-pleasant" class="sound-test-slider-label green">{{common_veryPleasant}}</span>
</div>
<div class="four wide mobile four wide tablet eight wide computer center aligned column">
<span id="sound-test-slider-neutral" class="sound-test-slider-label">{{common_neutral}}</span>
</div>
<div class="six wide mobile six wide tablet four wide computer right aligned column">
<span id="sound-test-slider-unpleasant" class="sound-test-slider-label red">{{common_veryUnpleasant}}</span>
</div>
</div>
<div class="ui row" style="padding-top: 0;">
<div class="fourteen wide column">
<input class="full-width" id="test-sound-slider" name="test-sound-slider" type="range" min="0" max="100" step="1" value="50">
</div>
</div>
</div>
<div class="ui basic segment center aligned">
<button id="next-test" class="ui right labeled large icon disabled primary button">
<i class="right arrow icon"></i>
{{soundTests_nextSound}}
</button>
<button id="end-experiment" class="ui right labeled large icon disabled primary button hide">
<i class="right arrow icon"></i>
{{soundTests_finishExperiment}}
</button>
</div>
</div>
<div id="part-5" class="hide">
<div class="ui padded grid center aligned">
<div class="ui row">
<div class="fourteen wide column">
<div id="end-experiment-progress-bar" class="ui success progress small">
<div class="bar" style="transition-duration: 0s">
<div class="progress"></div>
</div>
<div class="label">{{soundTests_experimentOver}}</div>
</div>
</div>
</div>
</div>
<div id="data-auto-sent-message" class="ui blue message small">
<p><i class="info circle blue icon"></i>{{end_description}}</p>
</div>
<div id="data-auto-sent-message-error" class="ui yellow message small hide">
<p><i class="exclamation triangle yellow icon"></i>{{end_warningMessage}}</p>
<pre id="data-auto-sent-message-error-data" class="wrap-text-overflow"></pre>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<script type="text/javascript" src="./index.ts"></script>
</body>
</html>