Temporarily disable slider #3271
-
Dear community, I am currently struggling with the following problem: Is there a way to disallow the interaction with the slider during the first trial? So far I have not managed to find a solution and would really appreciate some help with it! Thanks in advance, This is my code: `var post_task_q1_pic = { "
+ ' How do you evaluate ' +" <img height='400' src='stimuli/pictures/" + jsPsych.timelineVariable('picture') +"'> " ); }, require_movement: true, // won't be able to proceed before adjusting the scale slider_width: 935, labels: ['very bad', 'neutral', 'very good'], button_label: 'Next', data: jsPsych.timelineVariable('log'), };
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Remove the let post_task_q1_label = {
type: jsPsychHtmlSliderResponse,
stimulus: function () {
return (
"<div style=''vertical-align: middle'>" +
'<p style="width: 1000px;text-align:center;font-size:16px;"><i>How do you evaluate ' +
jsPsych.timelineVariable('pronoun3', true) +
'?' +
'</i></p><span style="font-weight:bold;color:black;">' +
"<div style='padding-right:10px;'><img height='400' src='stimuli/pictures/" +
jsPsych.timelineVariable('picture', true) +
"'></img></div> <p style='visibility: hidden; margin:5px; min-height: 25px' id='additional-word'>" +
jsPsych.timelineVariable('label_word', true) +
'</span>' +
'<span style="color:black;">' +
'</p>'
);
},
require_movement: true, // won't be able to proceed before adjusting the scale
slider_width: 935,
labels: ['very bad', 'neutral', 'very good'],
button_label: 'Next',
data: jsPsych.timelineVariable('log'),
on_load: function () {
jsPsych.pluginAPI.setTimeout(function () {
document.querySelector('#additional-word').style.visibility = 'visible';
}, 2000);
}
}; First, use |
Beta Was this translation helpful? Give feedback.
Use this as the
on_load
instead: