forked from yangshun/autocompaste-html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
questionnaire-post.html
332 lines (318 loc) · 11.9 KB
/
questionnaire-post.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
<!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><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 class="active">
<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>Post-Experiment Questionnaire</h1>
<hr>
<p>
We're almost done! Thanks for staying with us so far! Having experienced the AutoComPaste copy-pasting technique, we would like you to share with us your insights.
</p>
<p>
Current participant: <span class="js-pid pid"></span>
</p>
<p><i>We will keep your information anonymised and confidential.</i></p>
<br/>
<form id="post-expt-form">
<section>
<h3>Technical Insights</h3>
<hr>
<div class="form-group">
<label for="q1">
From 1 (poor) to 5 (excellent), rate the ease of performing copy-pasting using keyboard shortcuts:
</label>
<div>
<div class="radio-inline">
<label>
<input type="radio" name="q1" id="optionsRadios1" value="1">
1
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q1" id="optionsRadios2" value="2">
2
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q1" id="optionsRadios3" value="3">
3
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q1" id="optionsRadios4" value="4">
4
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q1" id="optionsRadios5" value="5">
5
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="q2">
From 1 (poor) to 5 (excellent), rate the ease of performing copy-pasting using AutoComPaste:
</label>
<div>
<div class="radio-inline">
<label>
<input type="radio" name="q2" id="optionsRadios1" value="1">
1
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q2" id="optionsRadios2" value="2">
2
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q2" id="optionsRadios3" value="3">
3
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q2" id="optionsRadios4" value="4">
4
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q2" id="optionsRadios5" value="5">
5
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="q3">
From 1 (not a chance) to 5 (definitely), rate how willing you are to use AutoComPaste in place of your current preferred technique:
</label>
<div>
<div class="radio-inline">
<label>
<input type="radio" name="q3" id="optionsRadios1" value="1">
1
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q3" id="optionsRadios2" value="2">
2
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q3" id="optionsRadios3" value="3">
3
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q3" id="optionsRadios4" value="4">
4
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q3" id="optionsRadios5" value="5">
5
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="q4">
From 1 (difficult) to 5 (easy), rate the learnability of AutoComPaste:
</label>
<div>
<div class="radio-inline">
<label>
<input type="radio" name="q4" id="optionsRadios1" value="1">
1
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q4" id="optionsRadios2" value="2">
2
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q4" id="optionsRadios3" value="3">
3
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q4" id="optionsRadios4" value="4">
4
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="q4" id="optionsRadios5" value="5">
5
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="q5">
If you have decided to stick with keyboard shortcuts, please state your reason:
</label>
<textarea class="form-control" id="q5" name="q5" placeholder="Why keyboard shortcuts? (Type N.A if you decided to go for AutoComPaste)"></textarea>
</div>
<div class="form-group">
<label for="q6">
If you have decided to change to AutoComPaste, please state your reason:
</label>
<textarea class="form-control" id="q6" name="q6" placeholder="Why AutoComPaste? (Type N.A if you decided to stick with keyboard shortcuts)"></textarea>
</div>
<div class="form-group">
<label for="q7">
How do you think the new AutoComPaste technique can be improved?
</label>
<textarea class="form-control" id="q7" name="q7" placeholder="Improvements for AutoComPaste..."></textarea>
</div>
</section>
<br/>
<section>
<h3>Administrative Insights</h3>
<hr>
<div class="form-group">
<label for="q8">
From 1 (poor) to 5 (excellent), rate the conduct of the experiment:
</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">
Did you face any difficulties during the experiment?
</label>
<textarea class="form-control" id="q9" name="q9" placeholder="Problems you've encountered..."></textarea>
</div>
<div class="form-group">
<label for="q10">
How may the experiment or the investigator improve?
</label>
<textarea class="form-control" id="q10" name="q10" placeholder="Improvements..."></textarea>
</div>
<div class="form-group">
<label for="q11">
Any other feedback(s)?
</label>
<textarea class="form-control" id="q11" name="q11" placeholder="Feedbacks... (Type N.A if no other feedbacks)"></textarea>
</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() {
$('#post-expt-form').submit(function(event) {
event.preventDefault();
var formResponses = $(this).serializeArray();
// Fixed size validation
if (formResponses.length !== 11 || hasEmptyField(formResponses)) {
alert("Please ensure that all fields on the form are filled!");
} else {
alert('Thank you for your participation!');
ACPToolKit.downloadFormData(formResponses, 'post');
ACPToolKit.clearAllData();
}
});
});
</script>
</body>
</html>