-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathharp.html
633 lines (588 loc) · 44.9 KB
/
harp.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
625
626
627
628
629
630
631
632
633
<head>
<title>Political Decision-Making on Mechanical Turk</title>
<!--###########################
Expand/Collapse JS and CSS code for use
in the HEAD section of your document.
Written by Dick Ervasti. Learn More at:
http://dickervasti.com/wiki-style-text-expand-collapse-no-jquery.htm
##################################-->
<script type="text/javascript">
<!--
function expand_collapse(id) {
var e = document.getElementById(id);
var f = document.getElementById(id+"_arrows");
if(e.style.display == 'none'){
e.style.display = 'block';
f.innerHTML = '▲';
}
else {
e.style.display = 'none';
f.innerHTML = '▼';
}
}
//-->
</script>
<style type="text/css">
.arrows{text-decoration:none;color:silver;}
</style>
</head>
<body>
</body>
<template name="experiment">
<header>
<div class="bg">
<div id="navigacija" class="jumbotron" style="font-size: 45px">
Political Decision-Making on Mechanical Turk
</div>
</div>
</header>
<div class="jumbotron" style="padding:25px">
{{#if initialized}}
{{else}}
{{>instructionsMain}}
<p class="center"><input type="button" value="BEGIN" name="begin_experiment" id="begin_experiment" class="btn btn-default"/></p>
{{/if}}
{{#if initialized}}
<div id="exp_start" class="well">
{{#if waiting}}
<div class="center"> Loading... </div>
<div class="progress">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
<span class="sr-only">Loading...</span>
</div>
</div>
{{else}}
{{#each questions}}
{{> question}}
{{/each}}
{{/if}}
</div>
{{/if}}
</div>
</template>
<template name="question0">
<header>
<div class="bg">
<div id="navigacija" class="jumbotron" style="font-size: 45px">
Political Decision-Making on Mechanical Turk
</div>
</div>
</header>
<div class="jumbotron" style="padding:25px">
{{>question0text}}
{{#if initialized}}
<div id="exp_start" class="well">
{{#if waiting}}
<div class="center"> Loading... </div>
<div class="progress">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
<span class="sr-only">Loading...</span>
</div>
</div>
{{else}}
{{#each questions}}
{{> question}}
{{/each}}
{{/if}}
</div>
{{/if}}
</div>
</template>
<template name="question">
{{>Template.dynamic template=current_answer}}
<p style="margin-bottom:100px;"></p>
</template>
<template name="L2_mechanism">
<h4>
{{> timer}}
<div>
<p> Set 1</p>
<p class="center">Current Credit Allocation</p>
<div>
<div id="budgetbar" class="progress">
<div id="slider00bar" class="progress-bar progress-bar-primary" style="width: 0%; color: rgb(245,245,245);"></div>
<div id="slider10bar" class="progress-bar progress-bar-success" style="width: 0%; color: rgb(245,245,245);"></div>
<div id="slider20bar" class="progress-bar progress-bar-warning" style="width: 0%; color: rgb(245,245,245);"></div>
<div id="slider30bar" class="progress-bar progress-bar-danger" style="width: 0%; color: rgb(245,245,245);"></div>
</div>
<div style="margin: auto;"><b id = "creditsleft0">Credits left: 100</b></div>
</div>
<br>
<button type="button" id="reset_sliders1" class="btn btn-default">Reset All Sliders</button>
<br>
<hr style="clear: both">
{{> deficit_template (deficit_names 0)}}
{{> mech0_slider (slider_names "slider00" "blue" "National Defense")}}
{{> mech0_slider (slider_names "slider10" "green" "Medicare & Health")}}
{{> mech0_slider (slider_names "slider20" "orange" "Education, Science, Environment, & Transportation")}}
{{> mech0_slider (slider_names "slider30" "red" "Individual Income Tax")}}
</div>
<div>
<p> Set 2</p>
<p class="center">Current Credit Allocation</p>
<div>
<div id="budgetbar" class="progress">
<div id="slider01bar" class="progress-bar progress-bar-primary" style="width: 0%; color: rgb(245,245,245);"></div>
<div id="slider11bar" class="progress-bar progress-bar-success" style="width: 0%; color: rgb(245,245,245);"></div>
<div id="slider21bar" class="progress-bar progress-bar-warning" style="width: 0%; color: rgb(245,245,245);"></div>
<div id="slider31bar" class="progress-bar progress-bar-danger" style="width: 0%; color: rgb(245,245,245);"></div>
</div>
<div style="margin: auto;"><b id = "creditsleft1">Credits left: 100</b></div>
</div>
<br>
<button type="button" id="reset_sliders2" class="btn btn-default">Reset All Sliders</button>
<br>
<hr style="clear: both">
{{> deficit_template (deficit_names 1)}}
{{> mech0_slider (slider_names "slider01" "blue" "National Defense")}}
{{> mech0_slider (slider_names "slider11" "green" "Medicare & Health")}}
{{> mech0_slider (slider_names "slider21" "orange" "Education, Science, Environment, & Transportation")}}
{{> mech0_slider (slider_names "slider31" "red" "Individual Income Tax")}}
</div>
</h4>
</template>
<template name="Linf_mechanism">
<h4>
{{> timer}}
<div>
<p> Set 1</p>
<br>
<button type="button" id="reset_sliders1" class="btn btn-default">Reset All Sliders</button>
<br>
<hr style="clear: both">
{{> deficit_template (deficit_names 0)}}
{{> mech0_slider (slider_names "slider00" "blue" "National Defense")}}
{{> mech0_slider (slider_names "slider10" "green" "Medicare & Health")}}
{{> mech0_slider (slider_names "slider20" "orange" "Education, Science, Environment, & Transportation")}}
{{> mech0_slider (slider_names "slider30" "red" "Individual Income Tax")}}
</div>
<div>
<p> Set 2</p>
<br>
<button type="button" id="reset_sliders2" class="btn btn-default">Reset All Sliders</button>
<br>
<hr style="clear: both">
{{> deficit_template (deficit_names 1)}}
{{> mech0_slider (slider_names "slider01" "blue" "National Defense")}}
{{> mech0_slider (slider_names "slider11" "green" "Medicare & Health")}}
{{> mech0_slider (slider_names "slider21" "orange" "Education, Science, Environment, & Transportation")}}
{{> mech0_slider (slider_names "slider31" "red" "Individual Income Tax")}}
</div>
</h4>
</template>
<template name="L1_mechanism">
<h4>
{{> timer}}
<div>
<p> Set 1</p>
<p class="center">Current Credit Allocation</p>
<div>
<div id="budgetbar" class="progress">
<div id="slider00bar" class="progress-bar progress-bar-primary" style="width: 0%; color: rgb(245,245,245);"></div>
<div id="slider10bar" class="progress-bar progress-bar-success" style="width: 0%; color: rgb(245,245,245);"></div>
<div id="slider20bar" class="progress-bar progress-bar-warning" style="width: 0%; color: rgb(245,245,245);"></div>
<div id="slider30bar" class="progress-bar progress-bar-danger" style="width: 0%; color: rgb(245,245,245);"></div>
</div>
<div style="margin: auto;"><b id = "creditsleft0">Credits left: 100</b></div>
</div>
<br>
<button type="button" id="reset_sliders1" class="btn btn-default">Reset All Sliders</button>
<br>
<hr style="clear: both">
{{> deficit_template (deficit_names 0)}}
{{> mech0_slider (slider_names "slider00" "blue" "National Defense")}}
{{> mech0_slider (slider_names "slider10" "green" "Medicare & Health")}}
{{> mech0_slider (slider_names "slider20" "orange" "Education, Science, Environment, & Transportation")}}
{{> mech0_slider (slider_names "slider30" "red" "Individual Income Tax")}}
</div>
<div>
<p> Set 2</p>
<p class="center">Current Credit Allocation</p>
<div>
<div id="budgetbar" class="progress">
<div id="slider01bar" class="progress-bar progress-bar-primary" style="width: 0%; color: rgb(245,245,245);"></div>
<div id="slider11bar" class="progress-bar progress-bar-success" style="width: 0%; color: rgb(245,245,245);"></div>
<div id="slider21bar" class="progress-bar progress-bar-warning" style="width: 0%; color: rgb(245,245,245);"></div>
<div id="slider31bar" class="progress-bar progress-bar-danger" style="width: 0%; color: rgb(245,245,245);"></div>
</div>
<div style="margin: auto;"><b id = "creditsleft1">Credits left: 100</b></div>
</div>
<br>
<button type="button" id="reset_sliders2" class="btn btn-default">Reset All Sliders</button>
<br>
<hr style="clear: both">
{{> deficit_template (deficit_names 1)}}
{{> mech0_slider (slider_names "slider01" "blue" "National Defense")}}
{{> mech0_slider (slider_names "slider11" "green" "Medicare & Health")}}
{{> mech0_slider (slider_names "slider21" "orange" "Education, Science, Environment, & Transportation")}}
{{> mech0_slider (slider_names "slider31" "red" "Individual Income Tax")}}
</div>
</h4>
</template>
<template name="mechanism1">
{{> timer}}
<div style="width: 1220px; margin: auto">
<div id="set0" class="well" style="border: 3px solid rgb(81,81,81); height: 500px;">
<p class="center"> <b>Set 1</b> </p>
<form name="optionset0">
<p style="float: left; width: 95px;margin-left: 0px;"></p>
<div style="float: left;"></div>
{{> slider_head_mech1}}
<label class="well" style="float: left; height: 80px; border: 2px solid rgb(130,130,130);">
<b style="height: 20px; float: left; margin-top: 10px;"> Option 1 </b>
<input type="radio" name="radio" value = "0" style="height: 20px; float: left; margin-top: 10px; margin-left: 3px; margin-right: 3px;" />
{{>mech1_slider (slider_names "set0slider00" "blue" "National Defense")}}
{{>mech1_slider (slider_names "set0slider10" "green" "Medicare & Health")}}
{{>mech1_slider (slider_names "set0slider20" "orange" "Education, Science, Environment, & Transportation")}}
{{>mech1_slider (slider_names "set0slider30" "red" "Individual Income Tax")}}
{{>mech1_slider (slider_names "set0slider40" "lightblue" "Deficit")}}
</label>
<label class="well" style="float: left; height: 80px; border: 2px solid rgb(130,130,130);">
<b style="height: 20px; float: left; margin-top: 10px;"> Option 2 </b>
<input type="radio" name="radio" value = "1" style="height: 20px; float: left; margin-top: 10px; margin-left: 3px; margin-right: 3px;" />
{{>mech1_slider (slider_names "set0slider01" "blue" "National Defense")}}
{{>mech1_slider (slider_names "set0slider11" "green" "Medicare & Health")}}
{{>mech1_slider (slider_names "set0slider21" "orange" "Education, Science, Environment, & Transportation")}}
{{>mech1_slider (slider_names "set0slider31" "red" "Individual Income Tax")}}
{{>mech1_slider (slider_names "set0slider41" "lightblue" "Deficit")}}
</label>
<label class="well" style="float: left; height: 80px; border: 2px solid rgb(130,130,130);">
<b style="height: 20px; float: left; margin-top: 10px;"> Option 3 </b>
<input type="radio" name="radio" value = "2" style="height: 20px; float: left; margin-top: 10px; margin-left: 3px; margin-right: 3px;" />
{{>mech1_slider (slider_names "set0slider02" "blue" "National Defense")}}
{{>mech1_slider (slider_names "set0slider12" "green" "Medicare & Health")}}
{{>mech1_slider (slider_names "set0slider22" "orange" "Education, Science, Environment, & Transportation")}}
{{>mech1_slider (slider_names "set0slider32" "red" "Individual Income Tax")}}
{{>mech1_slider (slider_names "set0slider42" "lightblue" "Deficit")}}
</label>
<label class="well" style="float: left; height: 80px; border: 2px solid rgb(130,130,130);">
<b style="height: 20px; float: left; margin-top: 10px;"> Option 4 </b>
<input type="radio" name="radio" value = "3" style="height: 20px; float: left; margin-top: 10px; margin-left: 3px; margin-right: 3px;" />
{{>mech1_slider (slider_names "set0slider03" "blue" "National Defense")}}
{{>mech1_slider (slider_names "set0slider13" "green" "Medicare & Health")}}
{{>mech1_slider (slider_names "set0slider23" "orange" "Education, Science, Environment, & Transportation")}}
{{>mech1_slider (slider_names "set0slider33" "red" "Individual Income Tax")}}
{{>mech1_slider (slider_names "set0slider43" "lightblue" "Deficit")}}
</label>
</form>
</div>
</div>
<br style="clear: both;">
<div style="width: 1220px; margin: auto">
<div id="set1" class="well" style="border: 3px solid rgb(81,81,81); height: 500px;">
<p class="center"> <b>Set 2</b> </p>
<form name="optionset1">
<p style="float: left; width: 95px;margin-left: 0px;"></p>
<div style="float: left;"></div>
{{> slider_head_mech1}}
<label class="well" style="float: left; height: 80px; border: 2px solid rgb(130,130,130);">
<b style="height: 20px; float: left; margin-top: 10px;"> Option 1 </b>
<input type="radio" name="radio" value = "0" style="height: 20px; float: left; margin-top: 10px; margin-left: 3px; margin-right: 3px;" />
{{>mech1_slider (slider_names "set1slider00" "blue" "National Defense")}}
{{>mech1_slider (slider_names "set1slider10" "green" "Medicare & Health")}}
{{>mech1_slider (slider_names "set1slider20" "orange" "Education, Science, Environment, & Transportation")}}
{{>mech1_slider (slider_names "set1slider30" "red" "Individual Income Tax")}}
{{>mech1_slider (slider_names "set1slider40" "lightblue" "Deficit")}}
</label>
<label class="well" style="float: left; height: 80px; border: 2px solid rgb(130,130,130);">
<b style="height: 20px; float: left; margin-top: 10px;"> Option 2 </b>
<input type="radio" name="radio" value = "1" style="height: 20px; float: left; margin-top: 10px; margin-left: 3px; margin-right: 3px;" />
{{>mech1_slider (slider_names "set1slider01" "blue" "National Defense")}}
{{>mech1_slider (slider_names "set1slider11" "green" "Medicare & Health")}}
{{>mech1_slider (slider_names "set1slider21" "orange" "Education, Science, Environment, & Transportation")}}
{{>mech1_slider (slider_names "set1slider31" "red" "Individual Income Tax")}}
{{>mech1_slider (slider_names "set1slider41" "lightblue" "Deficit")}}
</label>
<label class="well" style="float: left; height: 80px; border: 2px solid rgb(130,130,130);">
<b style="height: 20px; float: left; margin-top: 10px;"> Option 3 </b>
<input type="radio" name="radio" value = "2" style="height: 20px; float: left; margin-top: 10px; margin-left: 3px; margin-right: 3px;" />
{{>mech1_slider (slider_names "set1slider02" "blue" "National Defense")}}
{{>mech1_slider (slider_names "set1slider12" "green" "Medicare & Health")}}
{{>mech1_slider (slider_names "set1slider22" "orange" "Education, Science, Environment, & Transportation")}}
{{>mech1_slider (slider_names "set1slider32" "red" "Individual Income Tax")}}
{{>mech1_slider (slider_names "set1slider42" "lightblue" "Deficit")}}
</label>
<label class="well" style="float: left; height: 80px; border: 2px solid rgb(130,130,130);">
<b style="height: 20px; float: left; margin-top: 10px;"> Option 4 </b>
<input type="radio" name="radio" value = "3" style="height: 20px; float: left; margin-top: 10px; margin-left: 3px; margin-right: 3px;" />
{{>mech1_slider (slider_names "set1slider03" "blue" "National Defense")}}
{{>mech1_slider (slider_names "set1slider13" "green" "Medicare & Health")}}
{{>mech1_slider (slider_names "set1slider23" "orange" "Education, Science, Environment, & Transportation")}}
{{>mech1_slider (slider_names "set1slider33" "red" "Individual Income Tax")}}
{{>mech1_slider (slider_names "set1slider43" "lightblue" "Deficit")}}
</label>
</form>
</div>
</div>
</template>
<template name="deficit_template">
<div style="clear: both">
<h4>
<span>The</span> <span id="{{this.deficit_text}}">deficit</span><span> will be </span>
<span id="{{this.deficit_value}}" >X</span><span>. This is a </span><span id="{{this.deficit_percentage}}">Y</span><span> from the 2016 budget deficit.</span>
</h4>
</div>
</template>
<template name="mech0_slider">
<p id="{{this.label}}" style="float:left; margin-left: 9%; font-size: 19px;">{{this.title}}</p>
<span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" data-placement="top" title="{{this.tooltip}}" aria-hidden="true" style="float:left; margin-left: 10px;"></span>
<div style="clear: both;">
<p id="{{this.comp}}" data-toggle="tooltip" data-placement="top" title="Change from 2016 estimates." aria-hidden="true" style="float: left; width: 7%; font-size: 17px;"></p>
<div id="{{this.name}}" style="height: 20px; width: 83%; float: left; background: {{this.color}}"></div>
<form name="{{this.name}}">
$<textarea id="{{this.name}}" style="height:30px;width:7%;min-width: 80px">{{this.value}}</textarea>B<br>
</form>
</div>
<br style="clear: both;">
</template>
<template name="slider_head_mech1">
{{>mech1_slider_title (slider_names "" "" "National Defense")}}
{{>mech1_slider_title (slider_names "" "" "Medicare & Health")}}
{{>mech1_slider_title (slider_names "" "" "Education, Science, Environment, & Transportation")}}
{{>mech1_slider_title (slider_names "" "" "Individual Income Tax")}}
{{>mech1_slider_title (slider_names "" "" "Deficit")}}
</template>
<template name="mech1_slider_title">
<b style="float: left; width: 210px;">{{this.title}}<span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" data-placement="top" title="{{this.tooltip}}" aria-hidden="true" style="margin-left: 10px;"></span> </b>
</template>
<template name="mech1_slider">
<div class="well well-sm" style="float: left; height: 40px;">
<span id="{{this.comp}}" data-toggle="tooltip" data-placement="top" title="Change from 2016 estimates." aria-hidden="true" style="float: left; width: 55px; height: 40px;"></span>
<div class="progress" style="width: 130px; float: left; margin-left: 5px;">
<div id="{{this.id}}" class="progress-bar" role="progressbar" style="color: black; width: 60%; background: {{this.color}};">
</div>
</div>
</div>
</template>
<template name="mech2_slider">
<p id="{{this.label}}" style="float:left; margin-left: 7%;">{{this.title}}</p>
<span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" data-placement="top" title="{{this.tooltip}}" aria-hidden="true" style="float:left; margin-left: 10px;"></span>
<div style="clear: both;">
<p id="{{this.comp}}" data-toggle="tooltip" data-placement="top" title="Change from 2016 estimates." aria-hidden="true" style="float: left; width: 7%;"></p>
<div id="{{this.name}}" style="height: 20px; width: 83%; float: left; background: {{this.color}}"></div>
<form name="{{this.text}}">
<textarea id="{{this.name}}" style="height:30px;width:7%;min-width: 80px">{{this.value}}</textarea><br>
</form>
</div>
<br style="clear: both;">
</template>
<template name="mech2_weight_slider">
<p id="{{this.label}}" style="float:left; margin-left: 9%;">{{this.title}}</p>
<span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" data-placement="top" title="{{this.tooltip}}" aria-hidden="true" style="float:left; margin-left: 10px;"></span>
<div style="clear: both;">
<div id="{{this.name}}" style="height: 20px; width: 83%; margin-left: 7%; float: left; background: {{this.color}}"></div>
<form name="{{this.text}}">
<textarea id="{{this.name}}" style="height:30px;width:7%;min-width: 80px">{{this.value}}</textarea><br>
</form>
</div>
<br style="clear: both;">
</template>
<template name="mech3_slider">
<p id="{{this.label}}" style="float:left; margin-left: 9%; font-size: 19px;">{{this.title}}</p>
<span class="glyphicon glyphicon-question-sign" data-toggle="tooltip" data-placement="top" title="{{this.tooltip}}" aria-hidden="true" style="float:left; margin-left: 10px;"></span>
<div style="clear: both;">
<p id="{{this.comp}}" data-toggle="tooltip" data-placement="top" title="Change from 2016 estimates." aria-hidden="true" style="float: left; width: 7%; font-size: 17px;"></p>
<div id="{{this.name}}" style="height: 20px; width: 83%; float: left; background: {{this.color}}"></div>
<form name="{{this.name}}">
$<textarea id="{{this.name}}" style="height:30px;width:7%;min-width: 80px">{{this.value}}</textarea>B<br>
</form>
</div>
<br style="clear: both;">
</template>
<template name="full_elicitation_mechanism">
<h3>
{{> timer}}
{{> deficit_template (deficit_names)}}
<br>
<button type="button" id="reset_sliders" class="btn btn-default">Reset All Sliders</button>
<br>
<hr style="clear: both">
{{> mech2_slider (slider_names "slider0" "blue" "National Defense")}}
{{> mech2_slider (slider_names "slider1" "green" "Medicare & Health")}}
{{> mech2_slider (slider_names "slider2" "orange" "Education, Science, Environment, & Transportation")}}
{{> mech2_slider (slider_names "slider3" "red" "Individual Income Tax")}}
<br style="clear: both;">
<p align = "left"> On the following sliders, please indicate how strong your feelings are regarding the budget values you indicated above on a scale of 0 to 10 (“Indifferent” to “Care Very Much”). For example, if it's extremely important to you that we decrease spending on defense, you would put a high value on the slider below, along with a low spending figure above. If on the other hand you would prefer high spending on defense but do not feel strongly about it, you would put a high spending figure above but a low value below. </p>
{{> mech2_weight_slider (slider_names "slider0weight" "blue" "National Defense")}}
{{> mech2_weight_slider (slider_names "slider1weight" "green" "Medicare & Health")}}
{{> mech2_weight_slider (slider_names "slider2weight" "orange" "Education, Science, Environment, & Transportation")}}
{{> mech2_weight_slider (slider_names "slider3weight" "red" "Individual Income Tax")}}
{{> mech2_weight_slider (slider_names "slider4weight" "lightblue" "Deficit")}}
</h3>
</template>
<template name="full_elicitation_mechanism_as_extra">
<h3>
{{> timer}}
{{> deficit_template (deficit_names)}}
<br>
<button type="button" id="reset_sliders_full_as_extra" class="btn btn-default">Reset All Sliders</button>
<br>
<hr style="clear: both">
{{> mech2_slider (slider_names "fullslider0" "blue" "National Defense")}}
{{> mech2_slider (slider_names "fullslider1" "green" "Medicare & Health")}}
{{> mech2_slider (slider_names "fullslider2" "orange" "Education, Science, Environment, & Transportation")}}
{{> mech2_slider (slider_names "fullslider3" "red" "Individual Income Tax")}}
<br style="clear: both;">
<p align = "left"> On the following sliders, please indicate how strong your feelings are regarding the budget values you indicated above on a scale of 0 to 10 (“Indifferent” to “Care Very Much”). For example, if it's extremely important to you that we decrease spending on defense, you would put a high value on the slider below, along with a low spending figure above. If on the other hand you would prefer high spending on defense but do not feel strongly about it, you would put a high spending figure above but a low value below. </p>
{{> mech2_weight_slider (slider_names "fullslider0weight" "blue" "National Defense")}}
{{> mech2_weight_slider (slider_names "fullslider1weight" "green" "Medicare & Health")}}
{{> mech2_weight_slider (slider_names "fullslider2weight" "orange" "Education, Science, Environment, & Transportation")}}
{{> mech2_weight_slider (slider_names "fullslider3weight" "red" "Individual Income Tax")}}
{{> mech2_weight_slider (slider_names "fullslider4weight" "lightblue" "Deficit")}}
</h3>
</template>
<template name="timer">
<div>
{{#if waiting}}
{{else}}
<p class="center">{{time_remaining}}</p>
{{/if}}
</div>
</template>
<template name="answer0">
<div id="scroll_here" class="center">
{{> timer}}
{{>Template.dynamic template=current_question_text}}
<h4>
<br>
Please click 'NEXT' once you read these instructions.
<br>
</h4>
<input type="button" value="NEXT" id="answer_submission" class="btn btn-default">
</div>
</template>
<template name="answer1">
<div class="center">
{{>Template.dynamic template=current_question_text}}
<div id="scroll_here">
{{>Template.dynamic template=current_mechanism}}
</div>
<h4>
<br style="clear: both;">
Please explain your answers:
<br>
</h4>
<form name="text_explanation">
<textarea rows="8" cols="75"> </textarea> <br>
</form>
<input type="button" value="SUBMIT" id="answer_submission" class="btn btn-default">
</div>
</template>
<template name="answer2">
<div class="center">
{{> full_elicitation_as_extra_text}}
<div id="scroll_here">
{{> full_elicitation_mechanism_as_extra}}
</div>
<h4>
<br style="clear: both;">
Please explain your answers:
<br>
</h4>
<form name="text_explanation">
<textarea rows="8" cols="75"> </textarea> <br>
</form>
<input type="button" value="SUBMIT" id="answer_submission" class="btn btn-default">
</div>
</template>
<template name="answer3">
<div id="scroll_here" class="center">
<h3>
<p> How do you identify?</p>
<form name = "political_stance_report">
<label class="label label-primary">Very conservative <input type="radio" name="radio" value = "very conservative" /></label>
<label class="label label-success">Somewhat conservative <input type="radio" name="radio" value = "somewhat conservative" /></label>
<label class="label label-default">Neutral <input type="radio" name="radio" value = "neutral" /></label>
<label class="label label-success">Somewhat liberal <input type="radio" name="radio" value = "somewhat liberal" /></label>
<label class="label label-primary">Very liberal <input type="radio" name="radio" value = "very liberal" /></label>
<br style="margin-bottom: 20px;">
<br>
<label class="label label-warning">Prefer not to answer <input type="radio" name="radio" value = "prefer not to answer" /></label>
</form>
<br>
<p> Please provide feedback about the website, the HIT in general, and the user interface. We will reward a bonus for good explanations and/or good feedback.</p>
<form name="feedback">
<textarea rows="8" cols="45"> </textarea>
</form>
</h3>
<br>
<input type="button" value="SUBMIT" id="answer_submission" class="btn btn-default">
</div>
</template>
<template name="instructionsMain">
<h4>
<p align = "left">
Welcome to our survey and thank you for participating. We are testing out various mechanisms that would allow people to vote on a government budget and would like your feedback on how these mechanisms work.
<br><br>
We will ask you questions about how you would like the US federal government to allocate money across a few of its major budget items.
<br><br> </p>
<p><a href="#iqiuwy" id="4_arrows" class="arrows" onclick="expand_collapse('4');">▼</a><span style="font-size:105%;"><b>Consent Agreement (Click to expand)</b></span>
<div id="4" style="display:none;"><p align = "left">You are now being asked to perform a task that is part of a Stanford University research project. You can exit at any time. The expected time for this activity is 6-10 minutes. In this activity, you will be asked to help with the allocation of a budget across certain items for the US Federal Budget. This study poses no risk, and will help us improve digital democracy processes. Your payment will be $0.60 for performing the task, and an additional $0.40 for explaining your answers well and submitting a description of your experience with the task. A random 30 percent of people will take a slightly longer survey and will be paid a base rate of $1 with a possible bonus of $0.50. This study is funded partially by the US Department of Defense and the National Science Foundation. Please contact Professor Ashish Goel at [email protected] if you have any questions, suggestions, or concerns.
<br><br>
If you are not satisfied with how this study is being conducted, or if you have any concerns, complaints, or general questions about the research or your rights as a participant, please contact the Stanford Institutional Review Board (IRB) to speak to someone independent of the research team at (650)-723-2480 or toll free at 1-866-680-2906, or email at [email protected]. You can also write to the Stanford IRB, Stanford University, 3000 El Camino Real, Five Palo Alto Square, 4th Floor, Palo Alto, CA 94306.</p></div> </p> <br><br>
<p>Click 'begin' once you have read and if you agree to the above consent statement. </p>
</h4>
</template>
<template name="L2_text">
<h4>
<p align = "left">
Below, please indicate your preferences regarding the US Federal Budget. You will see 2 budget options that differ slightly. For each budget option, modify the budget value to better match your preferences. <br><br>
On the left-hand side of each slider we show you the percent change from how much the government is budgeted to spend in 2016.<b> Please keep in mind the changes that have already been made from the baseline budget before suggesting your own further changes.</b> For example, if others have already changed defense or healthcare spending from the 2016 budget to match your preference, you may want to focus on changing the other budget items. <br><br>
To increase/decrease the budget from the initial values, you’ll have to spend the given 'movement credits.' Notably, the amount of credits required to a given budget item will be proportional to the square of the change you make in that budget item, and so it is easier to move multiple budget items a small amount each than it is to move one item a large amount. Don’t worry about the exact calculations because we’ll show you how many credits you are using as you move the values. <br><br>
Of course, you may not have enough credits to make all the changes you wish to make, and so you’ll have to prioritize the changes you care about the most. The constraint mimics tradeoffs in a democratic society -- because not everyone can get exactly what they want, it benefits voters to voice their opinions most strongly on the budget items they care about the most. <br><br> <b> To successfully complete the experiment, you must advance before time is up. </b> You have 5 minutes to read these instructions and another 10 minutes to answer the questions (you will be able to see these instructions on the question page as well).
</p>
<p><a href="#iqiuwy" id="0_arrows" class="arrows" onclick="expand_collapse('0');">▼</a><span style="font-size:105%;">Detailed instructions (Click to expand)</span>
<div id="0" style="display:none;"><p align = "left"> You can move the sliders to adjust values, or you can enter the value you desire in the box on the right. We will automatically enforce the movement constraint and update the deficit term. Above the sliders you can see how many credits you are using to move each budget items, along with how many credits remain. The sliders are centered on the 2016 budget, and we mark both the 2016 budget and the initial numeric values. <br><br> The amount of credits you spend changing a given budget item will be proportional to the square of the change you make in that budget item. Note that the square of the number <b>a</b> is <b>a</b><sup>2</sup> or <b>a</b> multiplied by <b>a</b>. For example, let’s say that the initial value for defense expenditure is $500B, but you would prefer that defense spending be decreased by $5B to $495B. To move the defense spending to your ideal point, you would have to spend 25<b>C</b> credits, where <b>C</b> is some predetermined value (500 - 495 = 5, and 5<sup>2</sup> = 25). If additionally you want to increase tax spending by $3B, you would have to spend an additional 9<b>C</b> credits (3<sup>2</sup> = 9), for a total of 34<b>C</b> credits. <br><br> Note that the figures are in Billions of dollars. Note also that this survey only pertains to Federal spending -- each state also spends significantly on some of these budget categories.
</p></div> </p>
</h4>
</template>
<template name="L1_text">
<h4>
<p align = "left">
Below, please indicate your preferences regarding the US Federal Budget. You will see 2 budget options that differ slightly. For each budget option, modify the budget value to better match your preferences. <br><br>
On the left-hand side of each slider we show you the percent change from how much the government is budgeted to spend in 2016. <b>Please keep in mind the changes that have already been made from the baseline budget before suggesting your own further changes.</b> For example, if others have already changed defense or healthcare spending from the 2016 spending value to match your preference, you may want to focus on changing the other budget items. <br><br>
To increase/decrease the budget from the initial values, you’ll have to spend the given 'movement credits.' The amount of credits required to a given budget item will be proportional to the change you make in that budget item. Don’t worry about the exact calculations because we’ll show you how many credits you are using as you move the values. <br><br>
Of course, you may not have enough credits to make all the changes you wish to make, and so you’ll have to prioritize the changes you care about the most. The constraint mimics tradeoffs in a democratic society -- because not everyone can get exactly what they want, it benefits voters to voice their opinions most strongly on the budget items they care about the most. <br><br> <b> To successfully complete the experiment, you must advance before time is up. </b> You have 5 minutes to read these instructions and another 10 minutes to answer the questions (you will be able to see these instructions on the question page as well).
</p>
<p><a href="#iqiuwy" id="3_arrows" class="arrows" onclick="expand_collapse('3');">▼</a><span style="font-size:105%;">Detailed instructions (Click to expand)</span>
<div id="3" style="display:none;"><p align = "left">You can move the sliders to adjust values, or you can enter the value you desire in the box on the right. We will automatically enforce the movement constraint and update the deficit term. Above the sliders you can see how many credits you are using to move each budget items, along with how many credits remain. The sliders are centered on the 2016 budget, and we mark both the 2016 budget and the initial numeric values. <br><br> The amount of credits you spend changing a given budget item will be proportional to the change you make in that budget item. For example, let’s say that the initial value for defense expenditure is $500B, but you would prefer that defense spending be decreased by $5B to $495 B. To move the defense spending to your ideal point, you would have to spend 5<b>C</b> credits, where <b>C</b> is some predetermined value (500 - 495 = 5). If additionally you want to increase tax spending by $3B, you would have to spend an additional 3<b>C</b> credits, for a total of 8<b>C</b> credits. <br><br> Note that the figures are in Billions of dollars. Note also that this survey only pertains to Federal spending -- each state also spends significantly on some of these budget categories. </p></div></p>
</h4>
</template>
<template name="Linf_text">
<h4>
<p align = "left">
Below, please indicate your preferences regarding the US Federal Budget. You will see 2 budget options that differ slightly. For each budget option, modify the budget value to better match your preferences. <br><br>
On the left-hand side of each slider we show you the percent change from how much the government is budgeted to spend in 2016. <b>Please keep in mind the changes that have already been made from the baseline budget before suggesting your own further changes.</b> For example, if others have already changed defense or healthcare spending from the 2016 spending value to match your preference, you may want to focus on changing the other budget items. <br><br>
There is a strict limit to how much you can move each budget item, however, that you may think is small. The constraint mimics tradeoffs in a democratic society -- because the budget you see is based on others' responses, you are prevented from making large changes. <br><br> <b> To successfully complete the experiment, you must advance before time is up. </b> You have 5 minutes to read these instructions and another 10 minutes to answer the questions (you will be able to see these instructions on the question page as well).
</p>
<p><a href="#iqiuwy" id="3_arrows" class="arrows" onclick="expand_collapse('3');">▼</a><span style="font-size:105%;">Detailed instructions (Click to expand)</span>
<div id="3" style="display:none;"><p align = "left">You can move the sliders to adjust values, or you can enter the value you desire in the box on the right. We will automatically update the deficit term. The sliders are centered on the 2016 budget, and we mark both the 2016 budget and the initial numeric values. <br><br> Note that the figures are in Billions of dollars. Note also that this survey only pertains to Federal spending -- each state also spends significantly on some of these budget categories. </p></div></p>
</h4>
</template>
<template name="question1text">
<h4>
<p align = "left">
Below, please indicate your preferences regarding the US Federal Budget. Two sets of four proposed Federal Budgets each are shown on the page. For each set, select the budget you like the most. On the left-hand side of each bar we show you the percent change from how much the government is budgeted to spend in 2016. <b>The options are based on what people before you have answered -- and so keep in mind the changes from the 2016 budget that they have already made when choosing your favorite option.</b> <br><br> <b> To successfully complete the experiment, you must advance before time is up. </b> You have 5 minutes to read these instructions and another 10 minutes to answer the questions (you will be able to see these instructions on the next page as well).
</p>
<p><a href="#iqiuwy" id="1_arrows" class="arrows" onclick="expand_collapse('1');">▼</a><span style="font-size:105%;">Detailed instructions (Click to expand)</span>
<div id="1" style="display:none;"><p align = "left">On the left of each bar, we indicate the percent change of that budget item from the 2016 budget. Inside the bar we show you the value for that budget item in that option. <br><br> You may think that the budgets are very similar, but if you and others keep moving it in the direction you prefer, a large change can be made! <br><br> Note that the figures are in Billions of dollars. Note also that this survey only pertains to Federal spending -- each state also spends significantly on some of these budget categories. </p></div> </p>
</h4>
</template>
<template name="full_elicitation_text">
<h4>
<p align = "left">
Below, indicate your preferences regarding the US Federal Budget. For each of the given budget items, please move the sliders to indicate your ideal value for that budget item. <b> To successfully complete the experiment, you must advance before time is up. </b> You have 5 minutes to read these instructions and another 10 minutes to answer the questions (you will be able to see these instructions on the next page as well). </p>
<p><a href="#iqiuwy" id="2_arrows" class="arrows" onclick="expand_collapse('2');">▼</a><span style="font-size:105%;">Detailed instructions (Click to expand)</span>
<div id="2" style="display:none;"><p align = "left">Note that the figures are in Billions of dollars. Note also that this survey only pertains to Federal spending -- each state also spends significantly on some of these budget categories. On the left-hand side is the percent change from how much the government is budgeted to spend in 2016. This value, along with the deficit term, will be automatically calculated as you move the bars. You may also enter a value in the textbox on the right instead of moving the slider.
</p></div> </p>
</h4>
</template>
<template name="full_elicitation_as_extra_text">
<h4>
<p align = "left">
You have been randomly selected to complete the slightly longer survey. Your base rate for completion is now $1.00 with a possible bonus of $0.50. <br><br> For each of the following budget items, please move the sliders to indicate your ideal value for that budget item. There are no constraints to the movement. <b> To successfully complete the experiment, you must advance before time is up. </b> You have 10 minutes to answer the questions. </p>
<p><a href="#iqiuwy" id="2_arrows" class="arrows" onclick="expand_collapse('2');">▼</a><span style="font-size:105%;">Detailed instructions (Click to expand)</span>
<div id="2" style="display:none;"><p align = "left">Note that the figures are in Billions of dollars. Note also that this survey only pertains to Federal spending -- each state also spends significantly on some of these budget categories. On the left-hand side is the percent change from how much the government is budgeted to spend in 2016. This value, along with the deficit term, will be automatically calculated as you move the bars. You may also enter a value in the textbox on the right instead of moving the slider.
</p></div> </p>
</h4>
</template>