mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
Update README.md
This commit is contained in:
parent
77c3031369
commit
7de768bfea
13
README.md
13
README.md
@ -70,28 +70,27 @@ This is an example of the image-keyboard-response plugin:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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: [89, 78],
|
||||||
prompt: '<p class="center-content">' +
|
prompt: '<p>Is this face happy? Y or N.</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: [89, 78], // Y or N
|
||||||
prompt: '<p class="center-content">' +
|
prompt: '<p>Is this face happy? Y or N.</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: [89, 78], // Y or N
|
||||||
prompt: '<p class="center-content">' +
|
prompt: '<p>Is this face happy? Y or N.</p>',
|
||||||
'Is this face happy? Y or N.</p>',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -102,6 +101,8 @@ This is an example of the image-keyboard-response plugin:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
</sub>
|
</sub>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user