-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexampleQIATdisability.js
More file actions
100 lines (100 loc) · 3.51 KB
/
exampleQIATdisability.js
File metadata and controls
100 lines (100 loc) · 3.51 KB
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
define(['pipAPI', 'https://cdn.jsdelivr.net/gh/baranan/minno-tasks@0.*/IAT/qualtrics/quiat8.js'], function(APIConstructor, iatExtension){
var API = new APIConstructor();
var posWords = API.shuffle([
'Love', 'Cheer', 'Friend', 'Pleasure',
'Adore', 'Cheerful', 'Friendship', 'Joyful',
'Smiling','Cherish', 'Excellent', 'Glad',
'Joyous', 'Spectacular', 'Appealing', 'Delight',
'Excitement', 'Laughing', 'Attractive','Delightful',
'Fabulous', 'Glorious', 'Pleasing', 'Beautiful',
'Fantastic', 'Happy', 'Lovely', 'Terrific',
'Celebrate', 'Enjoy', 'Magnificent', 'Triumph']);
var negWords = API.shuffle([
'Abuse', 'Grief', 'Poison', 'Sadness',
'Pain', 'Despise', 'Failure', 'Nasty',
'Angry', 'Detest', 'Horrible', 'Negative',
'Ugly', 'Dirty', 'Gross', 'Evil',
'Rotten','Annoy', 'Disaster', 'Horrific',
'Scorn', 'Awful', 'Disgust', 'Hate',
'Humiliate', 'Selfish', 'Tragic', 'Bothersome',
'Hatred', 'Hurtful', 'Sickening', 'Yucky']);
return iatExtension({
category1 : {
name : 'Disabled Persons', //Will appear in the data.
title : {
media : {word : 'Disabled Persons'}, //Name of the category presented in the task.
css : {color:'#31940F','font-size':'2em'}, //Style of the category title.
height : 4 //Used to position the "Or" in the combined block.
},
stimulusMedia : [ //Stimuli content as PIP's media objects
{image: 'disabled1.jpg'},
{image: 'disabled2.jpg'},
{image: 'disabled3.jpg'},
{image: 'disabled4.jpg'}
],
//Stimulus css (style)
stimulusCss : {color:'#31940F','font-size':'1.8em'}
},
category2 : {
name : 'Abled Persons', //Will appear in the data.
title : {
media : {word : 'Abled Persons'}, //Name of the category presented in the task.
css : {color:'#31940F','font-size':'2em'}, //Style of the category title.
height : 4 //Used to position the "Or" in the combined block.
},
stimulusMedia : [ //Stimuli content as PIP's media objects
{image: 'abled1.jpg'},
{image: 'abled2.jpg'},
{image: 'abled3.jpg'},
{image: 'abled4.jpg'}
],
//Stimulus css
stimulusCss : {color:'#31940F','font-size':'1.8em'}
},
attribute1 :
{
name : 'Bad',
title : {
media : {word : 'Bad'},
css : {color:'#0000FF','font-size':'1.8em'},
height : 4 //Used to position the "Or" in the combined block.
},
stimulusMedia : [ //Stimuli content as PIP's media objects
{word: negWords[0]},
{word: negWords[1]},
{word: negWords[2]},
{word: negWords[3]},
{word: negWords[4]},
{word: negWords[5]},
{word: negWords[6]},
{word: negWords[7]}
],
//Stimulus css
stimulusCss : {color:'#0000FF','font-size':'2.3em'}
},
attribute2 :
{
name : 'Good',
title : {
media : {word : 'Good'},
css : {color:'#0000FF','font-size':'1.8em'},
height : 4 //Used to position the "Or" in the combined block.
},
stimulusMedia : [ //Stimuli content as PIP's media objects
{word: posWords[0]},
{word: posWords[1]},
{word: posWords[2]},
{word: posWords[3]},
{word: posWords[4]},
{word: posWords[5]},
{word: posWords[6]},
{word: posWords[7]}
],
//Stimulus css
stimulusCss : {color:'#0000FF','font-size':'2.3em'}
},
base_url : {//Where are your images at?
image : 'https://baranan.github.io/minno-tasks/images/'
}
});
});