-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGuiExtention.js
More file actions
120 lines (110 loc) · 7.14 KB
/
GuiExtention.js
File metadata and controls
120 lines (110 loc) · 7.14 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
define(['pipAPI', 'https://cdn.jsdelivr.net/gh/baranan/minno-tasks@0.*/IAT/qualtrics/quiat9.js'], function(APIConstructor, iatExtension){
var API = new APIConstructor();
return iatExtension({
///////////////////////////////////////Categories Features//////////////////////////////////////////
category1 : {
name : 'Black people',
title : {
media : { word : 'Black people'},
css : {color:'#336600', 'font-size':'1.8em'},
height : 4
},
stimulusMedia : [
{word : 'Tyron'},
{word : 'Malik'},
{word : 'Terrell'},
{word : 'Jazmin'},
{word : 'Tiara'},
{word : 'Shanice'}
],
stimulusCss : {color:'#336600', 'font-size':'1.8em'},
},
category2 : {
name : 'White people',
title : {
media : { word : 'White people'},
css : {color:'#336600', 'font-size':'1.8em'},
height : 4
},
stimulusMedia : [
{word : 'Jake'},
{word : 'Connor'},
{word : 'Bradley'},
{word : 'Allison'},
{word : 'Emma'},
{word : 'Emily'}
],
stimulusCss : {color:'#336600', 'font-size':'1.8em'},
},
///////////////////////////////////////Attributes Features//////////////////////////////////////////
attribute1 : {
name : 'Bad words',
title : {
media : { word : 'Bad words'},
css : {color:'#336600', 'font-size':'1.8em'},
height : 4
},
stimulusMedia : [
{word : 'Awful'},
{word : 'Failure'},
{word : 'Agony'},
{word : 'Hurt'},
{word : 'Horrible'},
{word : 'Terrible'},
{word : 'Nasty'},
{word : 'Evil'}
],
stimulusCss : {color:'#336600', 'font-size':'2.3em'},
},
attribute2 : {
name : 'Good Words',
title : {
media : { word : 'Good Words'},
css : {color:'#336600', 'font-size':'1.8em'},
height : 4
},
stimulusMedia : [
{word : 'Laughter'},
{word : 'Happy'},
{word : 'Glorious'},
{word : 'Joy'},
{word : 'Wonderful'},
{word : 'Peace'},
{word : 'Pleasure'},
{word : 'Love'}
],
stimulusCss : {color:'#336600', 'font-size':'2.3em'},
},
///////////////////////////////////////Task Features//////////////////////////////////////////
showDebriefing: true,
fullscreen: true,
isTouch: false,
remindError : true,
errorCorrection : false,
///////////////////////////////////////Block Parameter//////////////////////////////////////////
blockAttributes_nTrials : 20,
blockAttributes_nMiniBlocks : 5,
blockCategories_nTrials : 20,
blockCategories_nMiniBlocks : 5,
blockFirstCombined_nTrials : 20,
blockFirstCombined_nMiniBlocks : 5,
blockSecondCombined_nTrials : 40,
blockSecondCombined_nMiniBlocks : 10,
blockSwitch_nTrials : 28,
blockSwitch_nMiniBlocks : 7,
randomAttSide : false,
randomBlockOrder : true,
///////////////////////////////////////Text Features//////////////////////////////////////////
remindErrorText : '<p align="center" style="font-size:0.6em"; font-family:arial">' +'If you make a mistake, a red <font color="#ff0000"><b>X</b></font> will appear. '+'Press the other key to continue.<p/>',
leftKeyText : 'Press "E" for ',
rightKeyText : 'Press "I" for',
orText : 'or',
finalText : 'Press space to continue to the next task',
instAttributePractice : '<div><p align="center" style="font-size:20px; font-family:arial">' +'<font color="#000000"><u>Part blockNum of nBlocks </u><br/><br/></p>' +'<p style="font-size:20px; text-align:left; vertical-align:bottom; margin-left:10px; font-family:arial">' +'Put a left finger on the <b>E</b> key for items that belong to the category <font color="#0000ff">leftAttribute.</font>' +'<br/>Put a right finger on the <b>I</b> key for items that belong to the category <font color="#0000ff">rightAttribute</font>.<br/><br/>' +'If you make a mistake, a red <font color="#ff0000"><b>X</b></font> will appear. ' +'Press the other key to continue.<br/>' +'<u>Go as fast as you can</u> while being accurate.<br/><br/></p>'+'<p align="center">Press the <b>space bar</b> when you are ready to start.</font></p></div>',
instCategoriesPractice : '<div><p align="center" style="font-size:20px; font-family:arial">' +'<font color="#000000"><u>Part blockNum of nBlocks </u><br/><br/></p>' +'<p style="font-size:20px; text-align:left; vertical-align:bottom; margin-left:10px; font-family:arial">' +'Put a left finger on the <b>E</b> key for items that belong to the category <font color="#336600">leftCategory</font>. ' +'<br/>Put a right finger on the <b>I</b> key for items that belong to the category <font color="#336600">rightCategory</font>.<br/>' +'Items will appear one at a time.<br/><br/>' +'If you make a mistake, a red <font color="#ff0000"><b>X</b></font> will appear. ' +'Press the other key to continue.<br/>' +'<u>Go as fast as you can</u> while being accurate.<br/><br/></p>'+'<p align="center">Press the <b>space bar</b> when you are ready to start.</font></p></div>',
instFirstCombined : '<div><p align="center" style="font-size:20px; font-family:arial">' +'<font color="#000000"><u>Part blockNum of nBlocks </u><br/><br/></p>' +'<p style="font-size:20px; text-align:left; vertical-align:bottom; margin-left:10px; font-family:arial">' +'Use the <b>E</b> key for <font color="#336600">leftCategory</font> and for <font color="#0000ff">leftAttribute</font>.<br/>' +'Use the <b>I</b> key for <font color="#336600">rightCategory</font> and for <font color="#0000ff">rightAttribute</font>.<br/>' +'Each item belongs to only one category.<br/><br/>' +'If you make a mistake, a red <font color="#ff0000"><b>X</b></font> will appear. ' +'Press the other key to continue.<br/>' + '<u>Go as fast as you can</u> while being accurate.<br/><br/></p>' +'<p align="center">Press the <b>space bar</b> when you are ready to start.</font></p></div>',
instSecondCombined : '<div><p align="center" style="font-size:20px; font-family:arial">' +'<font color="#000000"><u>Part blockNum of nBlocks </u><br/><br/></p>' +'<p style="font-size:20px; text-align:left; vertical-align:bottom; margin-left:10px; font-family:arial">' +'This is the same as the previous part.<br/>' +'Use the <b>E</b> key for <font color="#336600">leftCategory</font> and for <font color="#0000ff">leftAttribute</font>.<br/>' +'Use the <b>I</b> key for <font color="#336600">rightCategory</font> and for <font color="#0000ff">rightAttribute</font>.<br/>' +'Each item belongs to only one category.<br/><br/>' +'<u>Go as fast as you can</u> while being accurate.<br/><br/></p>' +'<p align="center">Press the <b>space bar</b> when you are ready to start.</font></p></div>',
instSwitchCategories : '<div><p align="center" style="font-size:20px; font-family:arial">'+'<font color="#000000"><u>Part blockNum of nBlocks </u><br/><br/></p>' +'<p style="font-size:20px; text-align:left; vertical-align:bottom; margin-left:10px; font-family:arial">' +'<b>Watch out, the labels have changed position!</b><br/>' +'Put the left finger on the <b>E</b> key for <font color="#336600">leftCategory</font>.<br/>' +'Put the right finger on the <b>I</b> key for <font color="#336600">rightCategory</font>.<br/><br/>' +'<u>Go as fast as you can</u> while being accurate.<br/><br/></p>' +'<p align="center">Press the <b>space bar</b> when you are ready to start.</font></p></div>',
preDebriefingText : 'Press space to continue to your feedback '
});
});