-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·624 lines (594 loc) · 54.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
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
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
<!DOCTYPE html><html class=''>
<head>
<meta charset='UTF-8'>
<meta name="robots" content="noindex">
<title>The Experiment Factory: Survey</title>
<link rel='stylesheet' type='text/css' href='css/material.blue-red.min.css'>
<link rel='stylesheet' type='text/css' href='css/surveys.css'>
<link rel='stylesheet' type='text/css' href='css/jquery-ui-1.10.4.custom.min.css'>
<link rel='stylesheet' type='text/css' href='css/style.css'>
</head>
<body>
<script src='js/jquery-2.1.1.min.js'></script>
<script src='js/material.min.js'></script>
<script src='js/jquery-ui-1.10.4.custom.min.js'></script>
<script src='js/jquery.wizard.js'></script>
<script src='js/jquery.form-3.50.js'></script>
<script src='js/jquery.validate-1.12.0.min.js'></script>
<div class="experiment-layout mdl-layout mdl-layout--fixed-header mdl-js-layout mdl-color--grey-100">
<div class="experiment-ribbon"></div>
<main class="experiment-main mdl-layout__content">
<div class="experiment-container mdl-grid">
<div class="mdl-cell mdl-cell--2-col mdl-cell--hide-tablet mdl-cell--hide-phone">
</div>
<div class="experiment-content mdl-color--white mdl-shadow--4dp content mdl-color-text--grey-800 mdl-cell mdl-cell--8-col">
<div id="questions">
<form name="questions" action="#", method="POST">
<div class="step">
<h3>Welcome to this survey. Press <strong>Next</strong> to begin.</h3><br><br><br><br></div>
<div class="step">
<h3>For each of the following statements, please use the rating scale to indicate <strong>how well</strong> each statement describes your experiences <strong>in the past 15 minutes</strong>.</h3><br><br><br><br></div>
<div class="step">
<p id="state-mindfulness-survey_2_options">I was aware of different emotions that arose in me</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_2_0">
<input type="radio" id="option-state-mindfulness-survey_2_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_2_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I was aware of different emotions that arose in me">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_2_1">
<input type="radio" id="option-state-mindfulness-survey_2_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_2_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I was aware of different emotions that arose in me">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_2_2">
<input type="radio" id="option-state-mindfulness-survey_2_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_2_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I was aware of different emotions that arose in me">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_2_3">
<input type="radio" id="option-state-mindfulness-survey_2_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_2_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I was aware of different emotions that arose in me">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_2_4">
<input type="radio" id="option-state-mindfulness-survey_2_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_2_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I was aware of different emotions that arose in me">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_3_options">I tried to pay attention to pleasant and unpleasant sensations</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_3_0">
<input type="radio" id="option-state-mindfulness-survey_3_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_3_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I tried to pay attention to pleasant and unpleasant sensations">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_3_1">
<input type="radio" id="option-state-mindfulness-survey_3_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_3_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I tried to pay attention to pleasant and unpleasant sensations">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_3_2">
<input type="radio" id="option-state-mindfulness-survey_3_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_3_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I tried to pay attention to pleasant and unpleasant sensations">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_3_3">
<input type="radio" id="option-state-mindfulness-survey_3_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_3_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I tried to pay attention to pleasant and unpleasant sensations">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_3_4">
<input type="radio" id="option-state-mindfulness-survey_3_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_3_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I tried to pay attention to pleasant and unpleasant sensations">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_4_options">I found some of my experiences interesting</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_4_0">
<input type="radio" id="option-state-mindfulness-survey_4_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_4_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I found some of my experiences interesting">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_4_1">
<input type="radio" id="option-state-mindfulness-survey_4_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_4_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I found some of my experiences interesting">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_4_2">
<input type="radio" id="option-state-mindfulness-survey_4_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_4_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I found some of my experiences interesting">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_4_3">
<input type="radio" id="option-state-mindfulness-survey_4_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_4_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I found some of my experiences interesting">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_4_4">
<input type="radio" id="option-state-mindfulness-survey_4_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_4_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I found some of my experiences interesting">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_5_options">I noticed many small details of my experience</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_5_0">
<input type="radio" id="option-state-mindfulness-survey_5_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_5_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed many small details of my experience">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_5_1">
<input type="radio" id="option-state-mindfulness-survey_5_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_5_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed many small details of my experience">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_5_2">
<input type="radio" id="option-state-mindfulness-survey_5_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_5_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed many small details of my experience">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_5_3">
<input type="radio" id="option-state-mindfulness-survey_5_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_5_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed many small details of my experience">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_5_4">
<input type="radio" id="option-state-mindfulness-survey_5_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_5_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed many small details of my experience">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_6_options">I felt aware of what was happening inside of me</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_6_0">
<input type="radio" id="option-state-mindfulness-survey_6_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_6_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt aware of what was happening inside of me">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_6_1">
<input type="radio" id="option-state-mindfulness-survey_6_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_6_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt aware of what was happening inside of me">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_6_2">
<input type="radio" id="option-state-mindfulness-survey_6_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_6_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt aware of what was happening inside of me">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_6_3">
<input type="radio" id="option-state-mindfulness-survey_6_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_6_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt aware of what was happening inside of me">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_6_4">
<input type="radio" id="option-state-mindfulness-survey_6_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_6_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt aware of what was happening inside of me">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_7_options">I noticed pleasant and unpleasant emotions</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_7_0">
<input type="radio" id="option-state-mindfulness-survey_7_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_7_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed pleasant and unpleasant emotions">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_7_1">
<input type="radio" id="option-state-mindfulness-survey_7_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_7_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed pleasant and unpleasant emotions">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_7_2">
<input type="radio" id="option-state-mindfulness-survey_7_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_7_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed pleasant and unpleasant emotions">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_7_3">
<input type="radio" id="option-state-mindfulness-survey_7_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_7_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed pleasant and unpleasant emotions">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_7_4">
<input type="radio" id="option-state-mindfulness-survey_7_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_7_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed pleasant and unpleasant emotions">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_8_options">I actively explored my experience in the moment</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_8_0">
<input type="radio" id="option-state-mindfulness-survey_8_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_8_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I actively explored my experience in the moment">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_8_1">
<input type="radio" id="option-state-mindfulness-survey_8_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_8_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I actively explored my experience in the moment">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_8_2">
<input type="radio" id="option-state-mindfulness-survey_8_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_8_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I actively explored my experience in the moment">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_8_3">
<input type="radio" id="option-state-mindfulness-survey_8_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_8_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I actively explored my experience in the moment">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_8_4">
<input type="radio" id="option-state-mindfulness-survey_8_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_8_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I actively explored my experience in the moment">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_9_options">I clearly physically felt what was going on in my body</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_9_0">
<input type="radio" id="option-state-mindfulness-survey_9_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_9_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I clearly physically felt what was going on in my body">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_9_1">
<input type="radio" id="option-state-mindfulness-survey_9_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_9_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I clearly physically felt what was going on in my body">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_9_2">
<input type="radio" id="option-state-mindfulness-survey_9_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_9_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I clearly physically felt what was going on in my body">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_9_3">
<input type="radio" id="option-state-mindfulness-survey_9_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_9_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I clearly physically felt what was going on in my body">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_9_4">
<input type="radio" id="option-state-mindfulness-survey_9_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_9_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I clearly physically felt what was going on in my body">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_10_options">I changed my body posture and paid attention to the physical process of moving</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_10_0">
<input type="radio" id="option-state-mindfulness-survey_10_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_10_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I changed my body posture and paid attention to the physical process of moving">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_10_1">
<input type="radio" id="option-state-mindfulness-survey_10_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_10_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I changed my body posture and paid attention to the physical process of moving">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_10_2">
<input type="radio" id="option-state-mindfulness-survey_10_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_10_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I changed my body posture and paid attention to the physical process of moving">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_10_3">
<input type="radio" id="option-state-mindfulness-survey_10_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_10_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I changed my body posture and paid attention to the physical process of moving">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_10_4">
<input type="radio" id="option-state-mindfulness-survey_10_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_10_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I changed my body posture and paid attention to the physical process of moving">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_11_options">I felt that I was experiencing the present moment fully</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_11_0">
<input type="radio" id="option-state-mindfulness-survey_11_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_11_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt that I was experiencing the present moment fully">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_11_1">
<input type="radio" id="option-state-mindfulness-survey_11_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_11_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt that I was experiencing the present moment fully">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_11_2">
<input type="radio" id="option-state-mindfulness-survey_11_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_11_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt that I was experiencing the present moment fully">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_11_3">
<input type="radio" id="option-state-mindfulness-survey_11_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_11_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt that I was experiencing the present moment fully">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_11_4">
<input type="radio" id="option-state-mindfulness-survey_11_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_11_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt that I was experiencing the present moment fully">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_12_options">I noticed pleasant and unpleasant thoughts</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_12_0">
<input type="radio" id="option-state-mindfulness-survey_12_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_12_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed pleasant and unpleasant thoughts">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_12_1">
<input type="radio" id="option-state-mindfulness-survey_12_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_12_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed pleasant and unpleasant thoughts">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_12_2">
<input type="radio" id="option-state-mindfulness-survey_12_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_12_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed pleasant and unpleasant thoughts">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_12_3">
<input type="radio" id="option-state-mindfulness-survey_12_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_12_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed pleasant and unpleasant thoughts">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_12_4">
<input type="radio" id="option-state-mindfulness-survey_12_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_12_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed pleasant and unpleasant thoughts">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_13_options">I noticed emotions come and go</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_13_0">
<input type="radio" id="option-state-mindfulness-survey_13_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_13_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed emotions come and go">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_13_1">
<input type="radio" id="option-state-mindfulness-survey_13_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_13_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed emotions come and go">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_13_2">
<input type="radio" id="option-state-mindfulness-survey_13_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_13_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed emotions come and go">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_13_3">
<input type="radio" id="option-state-mindfulness-survey_13_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_13_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed emotions come and go">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_13_4">
<input type="radio" id="option-state-mindfulness-survey_13_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_13_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed emotions come and go">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_14_options">I noticed various sensations caused by my surroundings (e.g., heat, coolness, the wind on my face)</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_14_0">
<input type="radio" id="option-state-mindfulness-survey_14_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_14_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed various sensations caused by my surroundings (e.g., heat, coolness, the wind on my face)">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_14_1">
<input type="radio" id="option-state-mindfulness-survey_14_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_14_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed various sensations caused by my surroundings (e.g., heat, coolness, the wind on my face)">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_14_2">
<input type="radio" id="option-state-mindfulness-survey_14_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_14_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed various sensations caused by my surroundings (e.g., heat, coolness, the wind on my face)">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_14_3">
<input type="radio" id="option-state-mindfulness-survey_14_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_14_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed various sensations caused by my surroundings (e.g., heat, coolness, the wind on my face)">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_14_4">
<input type="radio" id="option-state-mindfulness-survey_14_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_14_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed various sensations caused by my surroundings (e.g., heat, coolness, the wind on my face)">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_15_options">I noticed physical sensations come and go</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_15_0">
<input type="radio" id="option-state-mindfulness-survey_15_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_15_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed physical sensations come and go">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_15_1">
<input type="radio" id="option-state-mindfulness-survey_15_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_15_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed physical sensations come and go">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_15_2">
<input type="radio" id="option-state-mindfulness-survey_15_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_15_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed physical sensations come and go">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_15_3">
<input type="radio" id="option-state-mindfulness-survey_15_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_15_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed physical sensations come and go">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_15_4">
<input type="radio" id="option-state-mindfulness-survey_15_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_15_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed physical sensations come and go">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_16_options">I had moments when I felt alert and aware</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_16_0">
<input type="radio" id="option-state-mindfulness-survey_16_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_16_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I had moments when I felt alert and aware">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_16_1">
<input type="radio" id="option-state-mindfulness-survey_16_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_16_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I had moments when I felt alert and aware">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_16_2">
<input type="radio" id="option-state-mindfulness-survey_16_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_16_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I had moments when I felt alert and aware">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_16_3">
<input type="radio" id="option-state-mindfulness-survey_16_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_16_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I had moments when I felt alert and aware">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_16_4">
<input type="radio" id="option-state-mindfulness-survey_16_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_16_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I had moments when I felt alert and aware">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_17_options">I felt closely connected to the present moment</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_17_0">
<input type="radio" id="option-state-mindfulness-survey_17_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_17_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt closely connected to the present moment">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_17_1">
<input type="radio" id="option-state-mindfulness-survey_17_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_17_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt closely connected to the present moment">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_17_2">
<input type="radio" id="option-state-mindfulness-survey_17_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_17_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt closely connected to the present moment">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_17_3">
<input type="radio" id="option-state-mindfulness-survey_17_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_17_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt closely connected to the present moment">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_17_4">
<input type="radio" id="option-state-mindfulness-survey_17_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_17_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt closely connected to the present moment">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_18_options">I noticed thoughts come and go</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_18_0">
<input type="radio" id="option-state-mindfulness-survey_18_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_18_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed thoughts come and go">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_18_1">
<input type="radio" id="option-state-mindfulness-survey_18_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_18_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed thoughts come and go">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_18_2">
<input type="radio" id="option-state-mindfulness-survey_18_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_18_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed thoughts come and go">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_18_3">
<input type="radio" id="option-state-mindfulness-survey_18_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_18_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed thoughts come and go">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_18_4">
<input type="radio" id="option-state-mindfulness-survey_18_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_18_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed thoughts come and go">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_19_options">I felt in contact with my body</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_19_0">
<input type="radio" id="option-state-mindfulness-survey_19_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_19_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt in contact with my body">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_19_1">
<input type="radio" id="option-state-mindfulness-survey_19_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_19_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt in contact with my body">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_19_2">
<input type="radio" id="option-state-mindfulness-survey_19_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_19_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt in contact with my body">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_19_3">
<input type="radio" id="option-state-mindfulness-survey_19_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_19_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt in contact with my body">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_19_4">
<input type="radio" id="option-state-mindfulness-survey_19_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_19_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I felt in contact with my body">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_20_options">I was aware of what was going on in my mind</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_20_0">
<input type="radio" id="option-state-mindfulness-survey_20_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_20_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I was aware of what was going on in my mind">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_20_1">
<input type="radio" id="option-state-mindfulness-survey_20_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_20_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I was aware of what was going on in my mind">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_20_2">
<input type="radio" id="option-state-mindfulness-survey_20_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_20_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I was aware of what was going on in my mind">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_20_3">
<input type="radio" id="option-state-mindfulness-survey_20_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_20_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I was aware of what was going on in my mind">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_20_4">
<input type="radio" id="option-state-mindfulness-survey_20_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_20_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I was aware of what was going on in my mind">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_21_options">It was interesting to see the patterns of my thinking</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_21_0">
<input type="radio" id="option-state-mindfulness-survey_21_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_21_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="It was interesting to see the patterns of my thinking">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_21_1">
<input type="radio" id="option-state-mindfulness-survey_21_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_21_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="It was interesting to see the patterns of my thinking">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_21_2">
<input type="radio" id="option-state-mindfulness-survey_21_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_21_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="It was interesting to see the patterns of my thinking">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_21_3">
<input type="radio" id="option-state-mindfulness-survey_21_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_21_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="It was interesting to see the patterns of my thinking">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_21_4">
<input type="radio" id="option-state-mindfulness-survey_21_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_21_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="It was interesting to see the patterns of my thinking">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br>
<p id="state-mindfulness-survey_22_options">I noticed some pleasant and unpleasant physical sensations</p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_22_0">
<input type="radio" id="option-state-mindfulness-survey_22_0" class="mdl-radio__button required page3" name="state-mindfulness-survey_22_options" value="1" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed some pleasant and unpleasant physical sensations">
<span class="mdl-radio__label">Not at all</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_22_1">
<input type="radio" id="option-state-mindfulness-survey_22_1" class="mdl-radio__button required page3" name="state-mindfulness-survey_22_options" value="2" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed some pleasant and unpleasant physical sensations">
<span class="mdl-radio__label"> A little</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_22_2">
<input type="radio" id="option-state-mindfulness-survey_22_2" class="mdl-radio__button required page3" name="state-mindfulness-survey_22_options" value="3" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed some pleasant and unpleasant physical sensations">
<span class="mdl-radio__label"> Somewhat</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_22_3">
<input type="radio" id="option-state-mindfulness-survey_22_3" class="mdl-radio__button required page3" name="state-mindfulness-survey_22_options" value="4" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed some pleasant and unpleasant physical sensations">
<span class="mdl-radio__label"> Well</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-state-mindfulness-survey_22_4">
<input type="radio" id="option-state-mindfulness-survey_22_4" class="mdl-radio__button required page3" name="state-mindfulness-survey_22_options" value="5" meta-options="Not at all| A little| Somewhat| Well| Very well" meta-text="I noticed some pleasant and unpleasant physical sensations">
<span class="mdl-radio__label"> Very well</span>
</label><br><br><br><br></div>
<div class="step">
<h3>Congratulations for completing this survey! Press <strong>finish</strong> to continue.</h3><br><br><br><br></div>
<div class="navigation">
<ul class="clearfix">
<li><button type="button"
name="backward"
class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent backward">Previous</button></li>
<li><button type="button"
name="forward"
class="forward mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">Next</button></li>
<li><button type="submit"
name="process"
class="submit mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">Finish</button></li>
</ul>
</div>
<div class="pad">
<div id="progressbar"></div>
</div>
</form>
</div>
<script>
$( document ).ready(function() {
expfactory_finished = false;
// Basic wizard with progress bar
$( "#progressbar" ).progressbar();
$( "#questions" ).wizard({
stepsWrapper: "#wrapped",
submit: ".submit",
beforeForward: function( event, state ) {
// Function to add message that answer is required
function is_required(elements){
var missing = false;
elements.each(function(index,element){
var pid = "#" + $(element).attr("name")
$(pid).css("color","red")
missing = true;
});
if (missing == true){
alert("Please answer all required questions in red.");
}
}
if ( state.stepIndex === 3 ) {
if (($.unique($(`.page3.required[type=number],.page3.required:text`).map(function(){return $(this).attr(`meta-text`)})).map(function() {return $(`[meta-text*="` + this + `"].required[type=number], [meta-text*="` + this + `"].required:text`).filter(function() { return $(this).val();}).length > 0}).get().indexOf(false) != -1) || ($.unique($(`.page3.required:not([type=number]):not(:text)`).map(function(){return $(this).attr(`meta-text`)})).map(function() {return $(`[meta-text*="` + this + `"].required:checked`).length > 0}).get().indexOf(false) != -1)){
is_required($(`.page3.required:not(checked)`));
return false;
} else {
expfactory_finished=true;
}}
return !!$( this ).wizard( "form" ).valid();
},
afterSelect: function( event, state ) {
$( "#progressbar" ).progressbar( "value", state.percentComplete );
if (expfactory_finished == true){
$(".submit").enable();
}
}
// Form submission
}).wizard( "form" ).submit(function( event ) {
event.preventDefault();
var $inputs = $("input:checked");
var $text = $("input:text")
var $number = $("input[type = number]")
var $elements = $inputs.add($text).add($number)
// Prepare data results
var results = []
$elements.each(function(index, element) {
var result = {}
if ($.inArray( $(element).attr("name"), [ "forward", "backward", "process"] ) == -1) {
result.name = $(element).attr("name");
if ($(element).attr("value") == undefined) {
result.value = $(element).val();
} else {
result.value = $(element).attr("value");
}
result.options = $(element).attr("meta-options");
result.text = $(element).attr("meta-text");
results.push(result);
}
})
$.ajax({
type: 'POST',
url: '/save',
data: {'data': results},
success: function() {
console.log('success');
document.location = '/next'
},
// Endpoint not running, local save
error: function(err) {
if (err.status == 200) {
document.location = '/next'
}
console.log("Error with POST" + err.status + ", downloading to local file.")
// Save data to browser
var data = "text/json;charset=utf-8," + JSON.stringify(results);
var a = document.createElement('a');
a.title = "Download"
a.id = "download"
a.type = "button"
a.download = 'state-mindfulness-survey_result.json';
a.href = 'data:' + data;
$(".submit").html("Download")
$(".submit").click(function(){
$("body").append(a)
a.click()
})
}
});
// Validation
}).validate({
errorPlacement: function( error, element ) {
if ( element.is( ":radio" ) || element.is( ":checkbox" ) ) {
error.insertBefore( element.next() );
} else {
error.insertAfter( element );
}
}
});
});
</script>
</body>
</html>