diff --git a/README.md b/README.md index b8c775e0..6be8c844 100644 --- a/README.md +++ b/README.md @@ -27,23 +27,25 @@ These examples are intended to illustrate what jsPsych code and experiments look - var trial = { - type: 'instructions', - pages: [ - 'Welcome to the experiment. Click next to begin.', - '
In this experiment, you will view a ' + - 'series of images and answer questions.
' + - 'Answer with the keys "y" or "n".', - 'Here is an example:

' + - '

' + - 'Is this person OLD or YOUNG?' - ], - show_clickable_nav: true - } +var trial = { + type: 'instructions', + pages: [ + 'Welcome to the experiment. Click next to begin.', - jsPsych.init({ - timeline: [trial], - }); + '

In this experiment, you will view a ' + + 'series of images and answer questions.

' + + '

Answer with the keys "y" or "n".

', + + '

Here is an example:

' + + '' + + '

Is this person OLD or YOUNG?

' + ], + 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 = { type: "image-keyboard-response", stimulus: 'img/happy_face_1.jpg', - choices: [89, 78], + choices: ['y', 'n'], prompt: '

Is this face happy? Y or N.

' } var trial_2 = { type: 'image-keyboard-response', stimulus: 'img/sad_face_2.jpg', - choices: [89, 78], // Y or N + choices: ['y', 'n'], prompt: '

Is this face happy? Y or N.

' } var trial_3 = { type: 'image-keyboard-response', stimulus: 'img/happy_face_2.jpg', - choices: [89, 78], // Y or N - prompt: '

Is this face happy? Y or N.

', + choices: ['y', 'n'], + prompt: '

Is this face happy? Y or N.

' }