Displaying text along with RDK field #763
-
Hello everyone, I am wondering if there is a way to include text above a dot motion field created by the jsPsych-rdk plugin. I am trying to show a sample dot motion field with text above it that says something along the lines of "This is an example of leftward motion" to describe the coherent direction. Is this possible by manipulating the rdk plugin, or is it only able to display the dot motion field? Thanks so much for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
jsPsych/plugins/jspsych-rdk.js Line 355 in 8398008 This is where you would need to modify the plugin. Before that part add var text = document.createElement('div')
text.innerHTML = trial.text
display_element.appendChild(text) Then you can pass in a text parameter for the plugin and it should display above the canvas I think. |
Beta Was this translation helpful? Give feedback.
-
This worked perfectly! Thank you so much for the quick response! |
Beta Was this translation helpful? Give feedback.
jsPsych/plugins/jspsych-rdk.js
Line 355 in 8398008
This is where you would need to modify the plugin. Before that part add
Then you can pass in a text parameter for the plugin and it should display above the canvas I think.