mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
update readme again
This commit is contained in:
parent
e743795a11
commit
f220e079e4
30
README.md
30
README.md
@ -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>' +
|
'<p>In this experiment, you will view a ' +
|
||||||
'Answer with the keys "y" or "n".',
|
'series of images and answer questions.</p>' +
|
||||||
'Here is an example:<br><br> ' +
|
'<p>Answer with the keys "y" or "n".</p>',
|
||||||
'<img src="img/age/of2.jpg"></img><br><br>' +
|
|
||||||
'Is this person OLD or YOUNG?'
|
'<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
|
show_clickable_nav: true
|
||||||
}
|
}
|
||||||
|
|
||||||
jsPsych.init({
|
jsPsych.init({
|
||||||
timeline: [trial],
|
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>'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user