| Reference | Downloads | Github

Viewing psychopy in JS


I’m currently trying to figure out the best way to import an additional conditions file for a single routine using JS (as you can only upload one without code). I was wondering if there’s any way to compile the psychopy code into JS so I can edit it manually?


When you export/upload JS code to Pavlovia it does generate a .js file that you can read, but I really wouldn’t edit the code there.

You can do what you need without editing the JS file. You might need to add a code component and insert the JS code there, but I don’t see any reason you’d need to do that in order to add a second conditions file.

OK, I’ll just use the trialHandler function with the code components instead. Thank you for your help.