My experiment runs perfectly locally in python but has many problems and missing objects in the online version

My experiment runs perfectly locally but does not run properly online.

I’ve added all my files on Experiment Settings > Online > Additional Resources, I have exported the HTML file, and I’ve synced the files in my gitlab. The experiment starts but when it comes to the more complex part of my experiment, interacting with sliders and playing video it is not working as it does locally. The layout is all wrong, it is completely different from when run locally, e.g., only half of my text component appears on screen. Also, at some point a video plays on repeat instead of moving on to the next routine, even though none of these problems appear when run locally.

Could someone help me out? Here’s my gitlab code:

Thank you,
Alkmini

When I just looked you were trying to import a Python function

image

Sliders don’t work online as well as they do locally, so I usually customise them. Have a look at my Interactive Slider demo: