Update README.md

This commit is contained in:
Josh de Leeuw 2017-07-12 22:59:47 -04:00 committed by GitHub
parent 02e42d94da
commit dd46c7e017

View File

@ -28,23 +28,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>' + '<div>In this experiment, you will view a ' +
'Answer with the keys "y" or "n".', 'series of images and answer questions.<br>' +
'Here is an example:<br><br> ' + 'Answer with the keys "y" or "n".',
'<img src="img/age/of2.jpg"></img><br><br>' +
'Is this person OLD or YOUNG?' 'Here is an example:<br><br> ' +
], '<img src="img/age/of2.jpg"></img><br><br>' +
show_clickable_nav: true 'Is this person OLD or YOUNG?'
} ],
show_clickable_nav: true
}
jsPsych.init({ jsPsych.init({
timeline: [trial], timeline: [trial],
}); });