-
Hi everyone, I'm having some trouble with a plugin that I made in jsPsych 7.1.2. I modelled it after the html-button-response plugin because I would like each experimental trial to end once the user clicks a button. There are four buttons in my plugin. They are each coded like this:
When I run my plugin, the trial stimulus and buttons show up just as I would like them. However, nothing happens when I click on the buttons. I'm sure that means that there are bugs in the way I coded the end_trial() function of my plugin, but I cannot figure out what they are. I think the bug(s) lies somewhere in the following code:
As I said, this code is very similar to the one found in the html-button-response plugin because I used the latter as a model. Therefore, I am confused as to why my plugin will not work. Does anyone know what I have done wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi everyone! I figured out what was going wrong. I had deleted the response_ends_trial parameter from the plugin, but the function |
Beta Was this translation helpful? Give feedback.
Hi everyone! I figured out what was going wrong. I had deleted the response_ends_trial parameter from the plugin, but the function
if (trial.response_ends_trial) { end_trial(); }
was still there.