You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm a beginner using jspsych and don't really know java script. I made an experiment where participants react to a large number of images pressing a key (html-keyboard-response plugin). The experiment has to be done in fullscreen mode. I used the enter fullscreen plugin, and added this function to the initialize jspsych variable to end the experiment when fullscreen mode is left:
var jsPsych = initJsPsych({
timeline: timeline,
on_interaction_data_update: function(data){
if(data.event == 'fullscreenexit'){
jsPsych.endExperiment('The experiment was ended because fullscreen was exited');
}
}
});
However, I'd like instead of ending the experiment to just pause the experiment when the participant leaves fullscreen, displaying a message thet they can take a break and resume the experiment by pressing a key (or button).
I tried a bunch of stuff and looked at similar questions on here, but i didn't manage to make it work. Could someone poitn me in the right direction on how i can implement this? Is it very complicated?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
i'm a beginner using jspsych and don't really know java script. I made an experiment where participants react to a large number of images pressing a key (html-keyboard-response plugin). The experiment has to be done in fullscreen mode. I used the enter fullscreen plugin, and added this function to the initialize jspsych variable to end the experiment when fullscreen mode is left:
However, I'd like instead of ending the experiment to just pause the experiment when the participant leaves fullscreen, displaying a message thet they can take a break and resume the experiment by pressing a key (or button).
I tried a bunch of stuff and looked at similar questions on here, but i didn't manage to make it work. Could someone poitn me in the right direction on how i can implement this? Is it very complicated?
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions