Skip to content
Discussion options

You must be logged in to vote

Hi Kelly, I think what I would do is set the "I don't know" button's visibility to "hidden" to start with, like this:

// add the skip button HTML
html += '<div class="jspsych-image-button-response-button" style="display: block; margin:'+trial.margin_vertical+' '+trial.margin_horizontal+'" id="skip-button" data-choice="skip"><button class="jspsych-btn" style="visibility:hidden;">Skip</button></div>';

And then you can use the jsPsych.pluginAPI.setTimeout function to get the button element (using the ID of the div that it's inside of) and change its visibilty after a certain duration, like this:

jsPsych.pluginAPI.setTimeout(function(){
    // get the skip-button div, then get all of the butt…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kburkin
Comment options

Answer selected by kburkin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants