-
Notifications
You must be signed in to change notification settings - Fork 12
/
debriefing.js
executable file
·94 lines (86 loc) · 4.39 KB
/
debriefing.js
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
define(['questAPI'], function(Quest){
var API = new Quest();
var isTouch = API.getGlobal().isTouch;
API.addQuestionsSet('iatEval',{
type: 'selectOne',
numericValues:true,
style:'multiButtons',
answers: ['Not at all', 'Slightly', 'Moderately', 'Very', 'Extremely']
});
var onFB = {
type:'grid',
name: 'iatevaluations',
description: '<p>2. What do you think of the IAT?</p>',
columns: ['Not at all', 'Slightly', 'Moderately', 'Very', 'Extremely'],
rows:[
'To what extent did you enjoy trying the IAT?',
'To what extent did the IAT score you received change your view of yourself?',
'To what extent are you skeptical of the IAT score that you received?'
],
rowStemCss: {width:'280px'}
};
var onFBtouch = {
mixer : 'wrapper',
data : [
{
inherit : 'iatEval',
name: 'iatevaluations1',
description: '<p>2. What do you think of the IAT?<br/><br/>To what extent did you enjoy trying the IAT?</p>'
},
{
inherit : 'iatEval',
name: 'iatevaluations2',
description: '<p>To what extent did the IAT score you received change your view of yourself?</p>'
},
{
inherit : 'iatEval',
name: 'iatevaluations3',
description: '<p>To what extent are you skeptical of the IAT score that you received?</p>'
}
]
};
API.addSequence([
{
header: 'Debriefing',
questions:[
{
type:'info',
name: 'iatresults',
description: [
'<p>The sorting test you just took is called the Implicit Association Test (IAT). You categorized good and bad words with images of <%= global.blackLabels %> and <%= global.whiteLabels %>.</p>' ,
'<div class="jumbotron jumbotron-dark">' ,
'<h2>Here is your result:</h2>' ,
'<p><%= global.raceiat.feedback %></p>' ,
'</div>' ,
'<p>Your result is described as an "Automatic preference for <%= global.blackLabels %> over <%= global.whiteLabels %>" if you were faster responding when <i><%= global.blackLabels %></i> and <i>Good</i> are assigned to the same response key than when <i><%= global.whiteLabels %></i> and <i>Good</i> were classified with the same key. Your score is described as an "Automatic preference for <%= global.whiteLabels %> over <%= global.blackLabels %>" if the opposite occurred.</p>' ,
'<p>Your automatic preference may be described as "slight", "moderate", "strong", or "no preference". This indicates the <i>strength</i> of your automatic preference.</p>' ,
'<p>The IAT requires a certain number of correct responses in order to get results. If you made too many errors while completing the test you will get the feedback that there were too many errors to determine a result.</p>' ,
'<p><b>Note that your IAT result is based only on the categorization task and not on the questions that you answered.</b></p>',
'<hr>' ,
'<h4>Please answer the following questions about your results:</h4>'
].join('\n')
},
{
type:'dropdown',
name: 'broughtwebsite',
description:'<p>1. What brought you to this website?</p>',
answers: [
'Assignment for school',
'Assignment for work',
'Mention in a news story (any medium)',
'Mention or link at a non-news Internet site',
'My Internet search for this topic or a related topic',
'Recommendation of a friend or co-worker',
'Other'
]
},
isTouch ? onFB : onFBtouch,
{
type:'info',
description:'<h4>Click "Submit" to submit your answers and receive more information.</h4></p>'
}
]
}
]);
return API.script;
});