forked from yangshun/autocompaste-html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
questionnaire-pre.html
491 lines (479 loc) · 18.9 KB
/
questionnaire-pre.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
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>CS4249 Assignment 1</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<nav class="navbar navbar-default">
<div class="container">
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Welcome</a></li>
<li class="active">
<a href="questionnaire-pre.html">Pre Questionnaire</a>
</li>
<li><a href="instructions.html">Instructions</a></li>
<li><a href="experiment.html">Experiment</a></li>
<li><a href="questionnaire-post.html">Post Questionnaire</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h1>Pre-Experiment Questionnaire</h1>
<hr>
<p>
Before we proceed to the instructions and experiment, we hope to find out about your background.
</p>
<p>
Please tell us more about yourself: <span class="js-pid pid"></span>
</p>
<p><i>We will keep your information anonymised and confidential.</i></p>
<br/>
<form id="pre-expt-form">
<section>
<h3>Socio-behavioural Background</h3>
<hr>
<div class="form-group">
<label for="q1">Which age group do you belong to?</label>
<select class="form-control" name="q1" required>
<option value="under 18">under 18 yrs old</option>
<option value="18 to 25">18 to 25 yrs old</option>
<option value="25 to 30">25 to 30 yrs old</option>
<option value="30 to 35">30 to 35 yrs old</option>
<option value="above 35">above 35 yrs old</option>
</select>
</div>
<div class="form-group">
<label for="q2">What is your gender?</label>
<select class="form-control" name="q2">
<option value="Male">Male</option>
<option value="Female">Female</option>
<option value="Intersex">Other</option>
</select>
</div>
<div class="form-group">
<label for="q3">What is your handedness?</label>
<select class="form-control" name="q3">
<option value="Left">Left-handed</option>
<option value="Right">Right-handed</option>
<option value="Ambidextrous">Ambidextrous</option>
</select>
</div>
<div class="form-group">
<label for="q4">What is your education level?</label>
<select class="form-control" name="q4">
<option value="Primary School">Primary School</option>
<option value="GCE 'O' Levels">GCE 'O' Levels</option>
<option value="GCE 'A' Levels">GCE 'A' Levels</option>
<option value="Bachelor's Degree">Bachelor's Degree</option>
<option value="Master's Degree">Master's Degree</option>
<option value="PhD">PhD</option>
<option value="Other">Other</option>
<option value="None">None</option>
</select>
</div>
<div class="form-group">
<label for="q5">
Are you currently studying at National University of Singapore (NUS)?
</label>
<div>
<div class="radio-inline">
<label>
<input type="radio" name="q5" id="optionsRadios1" value="Yes">
Yes
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q5" id="optionsRadios2" value="No">
No
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="q6">If you are currently studying at NUS, which faculty do you belong to?</label>
<select class="form-control" name="q6">
<option value="N.A">
I AM NOT FROM NUS
</option>
<option value="ARTS & SOCIAL SCIENCES">
ARTS & SOCIAL SCIENCES
</option>
<option value="BUSINESS">BUSINESS</option>
<option value="COMPUTING">COMPUTING</option>
<option value="CONTINUING & LIFELONG EDN">
CONTINUING & LIFELONG EDN
</option>
<option value="DENTISTRY">DENTISTRY</option>
<option value="DESIGN AND ENVIRONMENT">
DESIGN AND ENVIRONMENT
</option>
<option value="DUKE-NUS MEDICAL SCHOOL">
DUKE-NUS MEDICAL SCHOOL
</option>
<option value="ENGINEERING">ENGINEERING</option>
<option value="JOINT MULTI-DISCIPLINARY PROGRAMMES">
JOINT MULTI-DISCIPLINARY PROGRAMMES
</option>
<option value="LAW">LAW</option>
<option value="LEE KUAN YEW PUBLIC POLICY">
LEE KUAN YEW PUBLIC POLICY
</option>
<option value="NUS ENTERPRISE">NUS ENTERPRISE</option>
<option value="NUS GRAD SCH FOR INTEGRATIVE SCI & ENGG SCIENCE">
NUS GRAD SCH FOR INTEGRATIVE SCI & ENGG SCIENCE
</option>
<option value="NUS SUBSIDIARIES">NUS SUBSIDIARIES</option>
<option value="SAW SWEE HOCK PUBLIC HEALTH">
SAW SWEE HOCK PUBLIC HEALTH
</option>
<option value="UNIVERSITY LEVEL RESEARCH INSTITUTES AND CENTRES">
UNIVERSITY LEVEL RESEARCH INSTITUTES AND CENTRES
</option>
<option value="UNIVERSITY SCHOLARS PROGRAMME">
UNIVERSITY SCHOLARS PROGRAMME
</option>
<option value="YALE-NUS COLLEGE">YALE-NUS COLLEGE</option>
<option value="YONG LOO LIN MEDICINE">
YONG LOO LIN MEDICINE
</option>
<option value="YONG SIEW TOH CONSERVATORY OF MUSIC">
YONG SIEW TOH CONSERVATORY OF MUSIC
</option>
<option value="OTHERS">OTHERS</option>
</select>
</div>
</section>
<br/>
<section>
<h3>Technical Background</h3>
<hr>
<div class="form-group">
<label for="q7">
From 1 (illiterate) to 5 (expert), rate your proficiency in using a computer:
</label>
<div>
<div class="radio-inline">
<label>
<input type="radio" name="q7" id="optionsRadios1" value="1">
1
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q7" id="optionsRadios2" value="2">
2
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q7" id="optionsRadios3" value="3">
3
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q7" id="optionsRadios4" value="4">
4
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q7" id="optionsRadios5" value="5">
5
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="q8">
From 1 (never) to 5 (very often), how often do you use the menu items to perform copy-pasting:
</label>
<div>
<div class="radio-inline">
<label>
<input type="radio" name="q8" id="optionsRadios1" value="1">
1
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q8" id="optionsRadios2" value="2">
2
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q8" id="optionsRadios3" value="3">
3
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q8" id="optionsRadios4" value="4">
4
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q8" id="optionsRadios5" value="5">
5
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="q9">
From 1 (never) to 5 (very often), how often do you use the keyboard shortcuts (Ctrl/Cmd + C, Ctrl/Cmd + V) to perform copy-pasting:
</label>
<div>
<div class="radio-inline">
<label>
<input type="radio" name="q9" id="optionsRadios1" value="1">
1
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q9" id="optionsRadios2" value="2">
2
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q9" id="optionsRadios3" value="3">
3
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q9" id="optionsRadios4" value="4">
4
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q9" id="optionsRadios5" value="5">
5
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="q10">
From 1 (I hate it) to 5 (I love it), indicate your preference for performing copy-pasting using menu items:
</label>
<div>
<div class="radio-inline">
<label>
<input type="radio" name="q10" id="optionsRadios1" value="1">
1
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q10" id="optionsRadios2" value="2">
2
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q10" id="optionsRadios3" value="3">
3
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q10" id="optionsRadios4" value="4">
4
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q10" id="optionsRadios5" value="5">
5
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="q11">
What is your biggest complaint on performing copy-pasting using menu items:
</label>
<textarea class="form-control" id="q11" name="q11" placeholder="Type your complaints here... (Type 'N.A' if you have no complaints)"></textarea>
</div>
<div class="form-group">
<label for="q12">
From 1 (I hate it) to 5 (I love it), indicate your preference for performing copy-pasting using keyboard shortcuts (Ctrl/Cmd + C, Ctrl/Cmd + V):
</label>
<div>
<div class="radio-inline">
<label>
<input type="radio" name="q12" id="optionsRadios1" value="1">
1
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q12" id="optionsRadios2" value="2">
2
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q12" id="optionsRadios3" value="3">
3
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q12" id="optionsRadios4" value="4">
4
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q12" id="optionsRadios5" value="5">
5
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="q13">
What is your biggest complaint on performing copy-pasting using keyboard shortcuts (Ctrl/Cmd + C, Ctrl/Cmd + V):
</label>
<textarea class="form-control" id="q13" name="q13" placeholder="Type your complaints here... (Type 'N.A' if you have no complaints)"></textarea>
</div>
<div class="form-group">
<label for="q14">
From 1 (not a chance) to 5 (definitely), rate how willing you are to learn and adapt to a new copy-pasting technique, if it exists:
</label>
<div>
<div class="radio-inline">
<label>
<input type="radio" name="q14" id="optionsRadios1" value="1">
1
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q14" id="optionsRadios2" value="2">
2
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q14" id="optionsRadios3" value="3">
3
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q14" id="optionsRadios4" value="4">
4
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q14" id="optionsRadios5" value="5">
5
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="q15">
Have you heard of AutoComPaste before?
</label>
<div>
<div class="radio-inline">
<label>
<input type="radio" name="q15" id="optionsRadios1" value="Yes">
Yes
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q15" id="optionsRadios2" value="No">
No
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="q16">
Have you used AutoComPaste before?
</label>
<div>
<div class="radio-inline">
<label>
<input type="radio" name="q16" id="optionsRadios1" value="Yes">
Yes
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q16" id="optionsRadios2" value="No">
No
</label>
</div>
</div>
</div>
</section>
<br/>
<br/>
<button type="submit" class="btn btn-primary btn-lg">Submit</button>
</form>
</div>
</div>
</div>
<script src="js/vendor/jquery-1.11.2.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/DataStorage.js"></script>
<script src="js/ACPToolKit.js"></script>
<script src="js/main.js"></script>
<script>
// Checks that all fields are filled
function hasEmptyField(response) {
for (var entry in response) {
var value = response[entry].value;
if (!value) {
return true;
}
}
return false;
}
$(function() {
$('#pre-expt-form').submit(function(event) {
event.preventDefault();
var formResponses = $(this).serializeArray();
// Fixed size validation
if (formResponses.length !== 16 || hasEmptyField(formResponses)) {
alert("Please ensure that all fields on the form are filled!");
} else {
ACPToolKit.downloadFormData(formResponses, 'pre');
window.location = 'instructions.html';
}
});
});
</script>
</body>
</html>