Skip to content
Discussion options

You must be logged in to vote

Answering my own question because I was thinking way too complicated. I have now opted for simply hiding the progress bar from view for those trials where I don't need it. It should be noted that this may not be an optimal solution for everyone as the centering of the other elements is still dependent on that element existing - even though it is not visible.

Replace the on_load code with the following:

on_load: function() {
    // Remove progress bar from screen
    document.getElementById("jspsych-progressbar-container").style.visibility = "hidden";
  }

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@MatthieuFra
Comment options

@jodeleeuw
Comment options

Answer selected by SHogenboom
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants