-
Notifications
You must be signed in to change notification settings - Fork 1
/
mturk_system_template.html
executable file
·84 lines (61 loc) · 2.98 KB
/
mturk_system_template.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
<!--
This file includes the code that needs to be copied and pasted
into the box on the Mechanical Turk Requester site.
-->
<script src="//code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<p><script>
function getParam( name ) { // This function gets URL parameters
name = name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");
var regexS = "[\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
else
return results[1];
}
function getCurrentTime() {
a=new Date();
formatted = a.getFullYear()+" "+(a.getMonth()+1)+"/"+a.getDate()+" "+a.getHours() + ":" + a.getMinutes() + ":" + a.getSeconds() + ":" + a.getMilliseconds();
return formatted;
}
hitId = getParam('hitId');
workerId = getParam('workerId');
link = 'http://www.melodiesfor.us/consent.php?hitId='+hitId+"&workerId="+workerId;
if(workerId != '') {
data = { 'param_workerId': workerId, 'param_hitId': hitId, 'time': getCurrentTime() };
url = "http://www.melodiesfor.us/createLook.php";
document.write("<h1><a target='_blank' href='"+link+"'>Link to task</a></h1>");
}
else {
data = { 'param_hitId': hitId, 'time': getCurrentTime() };
url = "http://www.melodiesfor.us/createLook.php";
}
if(hitId == '') {
}
else { //dont log when creating the HIT
$.ajax({
'url': url,
'data': data,
dataType: 'json',
async: false,
});
}
</script></p>
<p>
Thank you for visiting the HIT page for this study. Through your participation, you will receive a participation reward of $0.50 and may qualify for a considerable bonus payment. You must have Javascript enabled to participate in this task.
</p><p>
In the study, you will be visiting an online shopping environment for music. Please take the opportunity to sample the different songs and interact with the website.
</p><p>
For this study, we have given to you (in addition to the participation reward) a starting budget of $1.50. Using this budget, you have to purchase exactly one song in the music store. Any transaction in the shopping environment reduces your starting budget as described in the shopping environment. At the end of the study, you will receive any remaining money as a bonus payment.
</p><p>
After completing your shopping, you will be redirected to a clearly marked survey. The careful completion of the survey and the submission of the HIT marks the end of the study. There is no completion code. Additionally, you can provide feedback in the box below.
</p><p>
Please accept the task. Then start the study by clicking on the link that will appear above to access the consent form.
</p>
<br />
<form>
Please enter any comments that you have about the task.<br/><br/>
<textarea id="comments" name='comments' type="text" cols=50 rows=10></textarea>
<p><input id="submitButton" type="submit" value="Click to finish" /></p>
</form>