Description of the problem: The experiment is running smoothly and without problems in the builder. But when I upload it to Pavlovia I get the error: win is not defined.
I´ve tried defining win in the builder, but that didn´t help. I dont know if I did it correctly.
I think there is a problem with the Java script, but I know nothing about code so Im lost here.
I looked at several crib sheets and tried different combinations.
At the moment I have: (in a code (js) and begin experiment)
window.thisExp = psychoJS.experiment;
window.win = psychoJS.window;
window.event = psychoJS.eventManager;
window.shuffle = util.shuffle;
win = psychoJS.window
thisExp = psychoJS.experiment
I need the background color to change multiple times during the experiment (in the pauses there will be a grey background and during the trails a green one).
an no, code_JS my in the first routine. So it should be the first thing that runs.