update readme again

This commit is contained in:
Josh de Leeuw 2017-07-12 23:06:11 -04:00
parent e743795a11
commit f220e079e4

View File

@ -27,23 +27,25 @@ These examples are intended to illustrate what jsPsych code and experiments look
var trial = { var trial = {
type: 'instructions', type: 'instructions',
pages: [ pages: [
'Welcome to the experiment. Click next to begin.', 'Welcome to the experiment. Click next to begin.',
'<div>In this experiment, you will view a ' +
'series of images and answer questions.<br>' +
'Answer with the keys "y" or "n".',
'Here is an example:<br><br> ' +
'<img src="img/age/of2.jpg"></img><br><br>' +
'Is this person OLD or YOUNG?'
],
show_clickable_nav: true
}
jsPsych.init({ '<p>In this experiment, you will view a ' +
timeline: [trial], 'series of images and answer questions.</p>' +
}); '<p>Answer with the keys "y" or "n".</p>',
'<p>Here is an example:</p>' +
'<img src="img/age/of2.jpg"></img>' +
'<p>Is this person OLD or YOUNG?</p>'
],
show_clickable_nav: true
}
jsPsych.init({
timeline: [trial],
});
@ -79,22 +81,22 @@ These examples are intended to illustrate what jsPsych code and experiments look
var trial_1 = { var trial_1 = {
type: "image-keyboard-response", type: "image-keyboard-response",
stimulus: 'img/happy_face_1.jpg', stimulus: 'img/happy_face_1.jpg',
choices: [89, 78], choices: ['y', 'n'],
prompt: '<p>Is this face happy? Y or N.</p>' prompt: '<p>Is this face happy? Y or N.</p>'
} }
var trial_2 = { var trial_2 = {
type: 'image-keyboard-response', type: 'image-keyboard-response',
stimulus: 'img/sad_face_2.jpg', stimulus: 'img/sad_face_2.jpg',
choices: [89, 78], // Y or N choices: ['y', 'n'],
prompt: '<p>Is this face happy? Y or N.</p>' prompt: '<p>Is this face happy? Y or N.</p>'
} }
var trial_3 = { var trial_3 = {
type: 'image-keyboard-response', type: 'image-keyboard-response',
stimulus: 'img/happy_face_2.jpg', stimulus: 'img/happy_face_2.jpg',
choices: [89, 78], // Y or N choices: ['y', 'n'],
prompt: '<p>Is this face happy? Y or N.</p>', prompt: '<p>Is this face happy? Y or N.</p>'
} }