-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinguist-in-the-loop_pretest.html
230 lines (184 loc) · 8.21 KB
/
linguist-in-the-loop_pretest.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
<style type="text/css">
label, input[type=radio], input[type=button] { cursor: pointer; }
.blue { color: blue; }
.red { color: red; }
.trial { padding: 15px 10px; }
.trial p, .trial table { padding-left: 20px; margin: 3px; }
.trial table { width: 400px; }
.trial tr td { width: 14%; text-align: center; }
.trial_number { font-size:1.2em; font-weight: bold; }
.tab { margin-left: 40px; }
#unanswered { font-weight: bold; font-size: 2em; color: black; background-color: red; margin: 0 auto; width: 500px; border: black 1px solid; padding: 10px; display:none; }
#answered { margin: 0 auto; width: 500px; border: black 1px solid; padding: 10px; display:none; }
.collapsible {
background-color: #777;
color: white;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.active, .collapsible:hover {
background-color: #555;
}
.content {
padding: 0 18px;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
background-color: #f1f1f1;
}
</style>
<h2>Instructions:</h2>
<p>This task will involve reading a line from an unfamiliar text and writing three sentences that relate to it.
Using only this text and what you know about the world:</p>
<ul>
<li>Write one sentence that is definitely correct about the situation or event in the line.</li>
<li>Write one sentence that might be correct about the situation or event in the line.</li>
<li>Write one sentence that is definitely incorrect about the situation or event in the line.</li>
</ul>
<button class="collapsible">⇓ Example </button>
<div class="content">
<p>
<span class="trial_number">Text:</span>
Dave Hanson, to whom nothing was impossible. Well, we have a nearly impossible task: a task of engineering and building.</p>
<ul>
<li><strong>Definitely correct statement:</strong> This building job will be very difficult to complete.</li>
<li><strong>Maybe correct statement:</strong> Dave Hanson worked with an especially large engineering team.</li>
<li><strong>Definitely incorrect statement:</strong> This engineering task will be quite easy for everyone.</li>
</ul>
</div>
<br>
<hr noshade="noshade" />
<h2> Part 1</h2>
<p><span class="trial_number">Text:</span>
Now, as children tend their gardens, they have a new appreciation of their relationship to the land, their cultural heritage, and their community.</p>
<div class="trial count">
<p><label for="entailment_1"><span class="trial_number">Definitely true statement:</span></label>
<span class="score count"><input type="text" id="entailment_1" name="entailment_1" size="100" /></span>
</p>
</div>
<div class="trial count">
<p><label for="neutral_1"><span class="trial_number">Maybe true statement:</span></label>
<span class="score count"><input type="text" id="neutral_1" name="neutral_1" size="100" /></span>
</p>
</div>
<div class="trial count">
<p><label for="contradiction_1"><span class="trial_number">Definitely false statement:</span></label>
<span class="score count"><input type="text" id="contradiction_1" name="contradiction_1" size="100" /></span>
</p>
</div>
<hr noshade="noshade" />
<h2>Part 2 (instructions change)</h2>
<p><span class="trial_number">Updated instructions:</span> Now provide a statement that is definitely true, but you must make sure your statement contains a conjunction word: ‘and’, ‘but’, or ‘or’.</p>
<button class="collapsible">⇓ Example</button>
<div class="content">
<p>
<span class="trial_number">Text:</span>
Dave Hanson, to whom nothing was impossible. Well, we have a nearly impossible task: a task of engineering and building.</p>
<ul>
<li><strong>Definitely correct statement:</strong> This building job will be very difficult to complete, but someone is willing to try.</li>
</ul>
</div>
<p><span class="trial_number">Text (same as above):</span>
Now, as children tend their gardens, they have a new appreciation of their relationship to the land, their cultural heritage, and their community.</p>
<div class="trial count">
<p><label for="entailment_2"><span class="trial_number">Definitely true statement:</span></label>
<span class="score count"><input type="text" id="entailment_2" name="entailment_2" size="100" /></span>
</p>
</div>
<hr noshade="noshade" />
<h2>Part 3 (instructions change)</h2>
<p><span class="trial_number">Updated instructions:</span> Now provide a statement that might be true, but your statements must not contain any content words repeated from the context (it’s okay to repeat words like ‘the’ and ‘that’, but you must avoid repeating words like ‘impossible’ and ‘building’).</p>
<button class="collapsible">⇓ Example</button>
<div class="content">
<p>
<span class="trial_number">Text (same as above):</span>
Dave Hanson, to whom nothing was impossible. Well, we have a nearly impossible task: a task of engineering and building.</p>
<ul>
<li><strong>Maybe correct statement:</strong> The man worked with an especially large construction team.</li>
</ul>
</div>
<p><span class="trial_number">Text (same as above):</span>
Now, as children tend their gardens, they have a new appreciation of their relationship to the land, their cultural heritage, and their community.</p>
<div class="trial count">
<p><span class="trial_number">Maybe true statement:</span>
<span class="score count"><input type="text" id="neutral_2" name="neutral_2" size="100" /></span>
</p>
</div>
<hr noshade="noshade" />
<div class="trial count">
<span class="trial_number">Future HITs:</span>
<p>This task is being used as a pre-test for entry into a selective group of workers for an ongoing data collection effort.
Would you like your responses to be considered for a series of future, well-paid HITs over the coming months?</p>
<p><label for='Choice_no_contact'><input type='radio' name='Contact' id='Contact_no' value='No_contact'></input> No, I do not want to be contacted after this HIT.</label></p>
<p><label for='Choice_yes_contact'><input type='radio' name='Contact' id='Contact_yes' value='Yes_contact'></input> Yes, please contact me to participate in more HITs like this one.</label></p>
</div>
<div>
<p>Do you have any comments for us about this HIT? (optional)</p>
<input type="text" id="comments" name="comments" size="100" /></span>
</div>
<br />
<div id="unanswered">
<span> </span> questions (out of 5 total) have been answered. If you submit now, you will not be paid.<br />
<input type="button" value="HIGHLIGHT UNANSWERED QUESTIONS" id="highlight-button" />
</div>
<div id="answered">
<span> </span> questions (out of 5 total) have been answered. You are ready to submit.
</div>
<p><input type="hidden" name="numanswered" id="numanswered" /> <input type="hidden" name="useragent" id="useragent" /></p>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type='text/javascript'>
// counter code:
total_number = parseInt("5") || Infinity;
function answered() {
var value = $(this).val();
return value.length;
}
function count() {
if ($(this).is('input') && $(this).is(answered))
$(this).closest('.trial').css('background','transparent');
var num = $('.count input[type="text"]').filter(answered).length;
$('#unanswered span, #answered span').text(num);
$('#numanswered').val(num);
if ( num < total_number ) {
$('#unanswered').show();
$('#answered').hide();
} else {
$('#unanswered').hide();
$('#answered').show();
}
}
$(count);
$('input').bind('change', count);
$(function() {
$('#useragent').val(navigator.userAgent);
});
function highlight() {
$('.trial.count').each(function() {
if (!$(this).find('input').is(answered))
$(this).css('background', 'yellow');
else
$(this).css('background', 'transparent');
});
}
$('#highlight-button').click(highlight);
</script>
<script>
var coll = document.getElementsByClassName("collapsible");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.maxHeight){
content.style.maxHeight = null;
} else {
content.style.maxHeight = content.scrollHeight + "px";
}
});
}
</script>