URL of experiment: https://run.pavlovia.org/MJB/fapesp_libet_nosound/html/
In this experiment I have 3 different instructions for 3 different blocks.
In the Builder version, I have a code component at the start of the experiment that loads in the 3 text files and assigns the content to variables. The content of the instructions text component is set on repeat in the trial loop.
When loading to Pavlovia, this fails, and I suspect it is because the code below is not JS compliant,
baseline = open('Instructions/obs_base_ins.txt','r')
baselineIntro=baseline.read()
baseline.close()
How can I achieve the same in JS?