Skip to content
Discussion options

You must be logged in to vote

Hi @woodenchair,

The problem here is that when jsPsych starts running the experiment it removes all of the content from the <body> element in order to display the experiment content.

One option would be to use the canvas-button-response plugin, which renders a canvas on the screen for you and you can draw on it using code similar to what you have right now.

Another option is to use the display_target parameter in jsPsych.init to render your experiment in a different element than the body. This would let the canvas element stay on the screen after jsPsych begins.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by sophief10
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