some changes

This commit is contained in:
KristinDiep 2017-07-10 14:41:43 -04:00
parent 670b691da2
commit cbb0643a95
3 changed files with 38 additions and 38 deletions

View File

@ -11,44 +11,44 @@
</body>
<script>
var welcome_block = {
type: 'text',
text: '<p>Welcome to the Age Task. In this study you will ' +
'complete an Implicit Association Test (IAT) in which you ' +
'will be asked to sort pictures and words into groups as ' +
'fast as you can.</p><p>Press any key to begin.</p>',
post_trial_gap: 1500
};
// var welcome_block = {
// type: 'text',
// text: '<p>Welcome to the Age Task. In this study you will ' +
// 'complete an Implicit Association Test (IAT) in which you ' +
// 'will be asked to sort pictures and words into groups as ' +
// 'fast as you can.</p><p>Press any key to begin.</p>',
// timing_post_trial: 1500
// };
var category_block = {
type: 'text',
text: '<p>Next, you will use the "E" and "I" computer keys ' + 'to categorize items into groups as fast as you can. ' +
'These are the four groups and the items that belong to each:<br><br>' +
'<strong>Good</strong>:<br>' + 'Fabulous, Excitement, Glorious, Cheerful, Cherish, ' +
'Enjoy, Delightful, Joyous<br><br>' + '<strong>Bad</strong>:<br>' + 'Humiliate, ' +
'Evil, Grief, Yucky, Detest, Poison, Abuse, Despise<br><br>' +
'<strong>Old</strong>:<br>' + "<img src='img/age/of1.jpg'></img> " +
"<img src='img/age/of2.jpg'></img> " + "<img src='img/age/of3.jpg'></img> " +
"<img src='img/age/om1.jpg'></img> " + "<img src='img/age/om2.jpg'></img> " +
"<img src='img/age/om3.jpg'></img><br><br>" + '<strong>Young</strong>:<br>' +
"<img src='img/age/yf1.jpg'></img> " + "<img src='img/age/yf4.jpg'></img> " +
"<img src='img/age/yf5.jpg'></img> " + "<img src='img/age/ym2.jpg'></img> " +
"<img src='img/age/ym3.jpg'></img> " + "<img src='img/age/ym5.jpg'></img><br><br>" +
"Press any key to continue.</p>",
post_trial_gap: 1500
};
// var category_block = {
// type: 'text',
// text: '<p>Next, you will use the "E" and "I" computer keys ' + 'to categorize items into groups as fast as you can. ' +
// 'These are the four groups and the items that belong to each:<br><br>' +
// '<strong>Good</strong>:<br>' + 'Fabulous, Excitement, Glorious, Cheerful, Cherish, ' +
// 'Enjoy, Delightful, Joyous<br><br>' + '<strong>Bad</strong>:<br>' + 'Humiliate, ' +
// 'Evil, Grief, Yucky, Detest, Poison, Abuse, Despise<br><br>' +
// '<strong>Old</strong>:<br>' + "<img src='img/age/of1.jpg'></img> " +
// "<img src='img/age/of2.jpg'></img> " + "<img src='img/age/of3.jpg'></img> " +
// "<img src='img/age/om1.jpg'></img> " + "<img src='img/age/om2.jpg'></img> " +
// "<img src='img/age/om3.jpg'></img><br><br>" + '<strong>Young</strong>:<br>' +
// "<img src='img/age/yf1.jpg'></img> " + "<img src='img/age/yf4.jpg'></img> " +
// "<img src='img/age/yf5.jpg'></img> " + "<img src='img/age/ym2.jpg'></img> " +
// "<img src='img/age/ym3.jpg'></img> " + "<img src='img/age/ym5.jpg'></img><br><br>" +
// "Press any key to continue.</p>",
// timing_post_trial: 1500
// };
var instructions_block = {
type: 'text',
text: "<div style='position: absolute; top: 18%; left: 20%'><p>Press E for:<br><strong>OLD</strong></p></div>" +
"<div style='position: absolute; top: 18%; right: 20%'><p>Press I for:<br><strong>YOUNG</strong></p></div>" +
"<div style='position: relative; top: 42%; margin-left: auto; margin-right: auto'>Put a left finger on the <strong>E</strong> key for items that belong to the Old People category. Put a right finger on the " +
"<strong>I</strong> key for items that belong to the Young People " +
"category. Items will appear one at a time.<br><br>" + "If you " +
"make a mistake, a red X will appear. Press the keys listed below " +
"to continue. Go as fast as you can while being accurate.<br><br> " +
"Press the any key when you are ready to start.</div>",
};
// var instructions_block = {
// type: 'text',
// text: "<div style='position: absolute; top: 18%; left: 20%'><p>Press E for:<br><strong>OLD</strong></p></div>" +
// "<div style='position: absolute; top: 18%; right: 20%'><p>Press I for:<br><strong>YOUNG</strong></p></div>" +
// "<div style='position: relative; top: 42%; margin-left: auto; margin-right: auto'>Put a left finger on the <strong>E</strong> key for items that belong to the Old People category. Put a right finger on the " +
// "<strong>I</strong> key for items that belong to the Young People " +
// "category. Items will appear one at a time.<br><br>" + "If you " +
// "make a mistake, a red X will appear. Press the keys listed below " +
// "to continue. Go as fast as you can while being accurate.<br><br> " +
// "Press the any key when you are ready to start.</div>",
// };
var trial_block = {

View File

@ -9,7 +9,7 @@
**/
jsPsych.plugins["iat-html"] = (function() {
jsPsych.plugins['iat-html'] = (function() {
var plugin = {};

View File

@ -9,7 +9,7 @@
**/
jsPsych.plugins["iat-image"] = (function() {
jsPsych.plugins['iat-image'] = (function() {
var plugin = {};