Skip to content
Discussion options

You must be logged in to vote

Hi @umutreldem,

One reason your plugin may not work right now is that the trial ends immediately after it begins because jsPsych.finishTrial() is called without waiting for any input from the user. I suspect if you comment out the jsPsych.finishTrial() line then you'll see the jscolor input appear on the page.

Another potential issue is that the jscolor library might expect the input to already be on the page when it loads. So you may need to tell jscolor that you've added a new input for it to modify. Based on a quick inspection of the docs, it looks like you'll need to call jscolor.install() (see here) after you modify the DOM.

You'll likely want to move the jsPsych.finishTrial() call i…

Replies: 1 comment 2 replies

Comment options

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

@becky-gilbert
Comment options

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