-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmturk-layout.html
68 lines (52 loc) · 1.69 KB
/
mturk-layout.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
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'></script>
<style>
body{
font-size: 12pt;
font-family: Helvetica;
text-align: left;
}
#instructions {
width: 600px;
margin-left: 50px;
}
#startExperiment{
color: rgb(0,0,200);
}
#startExperiment:hover{
color: rgb(0,0,255);
}
#submitButton{ /* id='submitButton' is added by MTurk */
display: none;
}
</style>
<!-- Create an instructions div -->
<div id='instructions'>
<p>Before accepting this HIT, please note:<br><br>
1. This HIT requires<br>
— A laptop or desktop computer with a mouse or trackpad.<br>
— Full-screen mode<br>
2. Touch-screen devices are NOT supported (phones, tablets, etc.)<br>
— You will be unable to complete the task on these devices.</p>
<p>Click the link below to open the experiment in a new tab.<br>
Before starting, you will be prompted to enter your Worker ID (copy it now).</p>
<div id='startExperimentLink'>
<p><a href="#" id="startExperiment">Open experiment</a></p>
</div>
<p>When you finish the experiment, you will receive a completion code.<br>
Enter that code and click the confirm button to reveal the submit button.</p>
<div id='codeForm'>
<p>Completion code: <input type='text' name='validation_code' value='' id='validation_code'> <button type='button' form='validation_code'>Confirm</button></p>
</div>
</div>
<script>
// Check that the validation code exists in our database
$('#confirmCode').
if (validCode){
$('#submitButton').show(); // if yes, show the submit button
}else{
// Handle a bad validation code...
}
</script>