URL of experiment: Pavlovia
Description of the problem: I created a short practice (30 s) version for a Brief Psychomotor Vigilance Task and it runs fine on desktop, but not on Pavlovia. There is only one code component in the experiment at the beginning of each routine and I set it to both Py and JS and tried the JS part separately in an online engine and there it worked (a random ISI is needed for each trial).
My Python code is:
ISI = random.randint(1, 4)
And my JS code:
ISI = Math.ceil(Math.random() * 4)
The online version starts with the beginning instruction, but after starting the trials the targets do not appear and nothing happens, so I need to escape to close the experiment. It doesn’t show any error messages or warnings.
Could anyone help me to see what the problem is or how to solve it?