Feedback working locally on browser via JS but not on Pavlovia

URL of experiment: Sign in · GitLab (hope this works)
Do you want it to also run locally? (y/n) yes
What are you trying to achieve?:
I am trying to show the participants a feedback image depending on which image they clicked on. In the trial the participants can either click on myth_image or fact_image and depending on what they chose they should then see a different image as feedback. This works locally and when I run it in Pilot mode locally in my browser (so the JS code should be correct). However when I run it online via Pavlovia the feedback images are not displayed and instead the screen inswhite.
This is what I have included in the code component for the feedback:
Begin Frame (JS Code):

show_feedback_myth = false;
show_feedback_fact = false;

Each Frame (JS Code):

if ((!show_feedback_myth) && statement_mouse.clicked_name.includes('myth_image')) {
    show_feedback_myth = true;
}
if ((!show_feedback_fact) && statement_mouse.clicked_name.includes('fact_image')) {
    show_feedback_fact = true;
}

I have then set the condition of the two feedback images to show_feedback_myth or show_feedback_fact respectively.
I would greatly appreciate some help, thanks!

Your repository is currently private, you need to go to the repository settings and set it to “public” for others to be able to view it.

Generally speaking if it runs in a browser locally (so uses the JS code) but not on the server, the most likely culprits are:

  1. The images are not in the right place or not being referred to in the right way.
  2. It’s a cache issue and you just need to try it in a different browser or an incognito tab.

For (1), it could either be that the images were not uploaded to the repository with everything else, or that the file path that is used to load the images is somehow incorrect, e.g., it uses an absolute file path that relies on it being on your computer rather than a relative path. If you constructed this in the builder then this shouldn’t happen, but if you load the images in the code it might be an issue.

Are you getting any error messages in the browser console when you get the white screen?