Skip to content

Temporarily disable slider #3271

Answered by Shaobin-Jiang
petrenca asked this question in Q&A
Discussion options

You must be logged in to vote

Use this as the on_load instead:

on_load: function () {
    document.querySelector('input[type=range]').disabled = true;
    jsPsych.pluginAPI.setTimeout(function () {
        document.querySelector('#additional-word').style.visibility = 'visible';
        document.querySelector('input[type=range]').disabled = false;
    }, 2000);
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@petrenca
Comment options

@Shaobin-Jiang
Comment options

Answer selected by petrenca
@petrenca
Comment options

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