-
Hi guys. I' m also wondering how can i present a trial including both image and audio at the same time in the same page ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I'm moving this over to discussions. |
Beta Was this translation helpful? Give feedback.
-
Hi @mary-9555, You can use timeline variables for this. You can have multiple trials on the timeline that the variables are applied to. Here's a quick example: var image_trial = {
type: 'image-button-response',
stimulus: jsPsych.timelineVariable('image'),
choices: ['Continue']
}
var likert_trial = {
type: 'survey-likert',
questions: [
{prompt: 'The image was large.', labels: ['Agree', 'Neutral', 'Disagree']},
{prompt: 'The image was colorful.', labels: ['Agree', 'Neutral', 'Disagree']}
]
}
var image_survey = {
timeline: [image_trial, likert_trial],
timeline_variables: [
{image: '01.png'},
{image: '02.png'},
{image: '03.png'}
]
}
jsPsych.init({
timeline: [image_survey]
}); |
Beta Was this translation helpful? Give feedback.
I'm moving this over to discussions.