Dynamically Changing Charts

I'm trying to dynamically change some charts on Myfantasyleague.com based on the team names and colors. I can get this code to work when I'm testing via a local server on VS code, but when I load the code onto the live site, it doesn't function correctly. Can anyone tell me what I'm missing as to why these charts are not being reformatted? Script I'm using https://codepen.io/tvu1313/pen/vYwpwEP Live Site https://www45.myfantasyleague.com/2024/options?L=59840&O=207 apologies in advance for the team names haha.
Fantasy Football: FantaSea Football Fantasy Previews
The most customizable way to run your fantasy football league on the web today, MyFantasyLeague.com was voted 'Best Fantasy Commissioner Product' by the Fantasy Sports Trade Association, and has won several additional significant industry awards. Our 30 years of experience means we do fantasy football right. If you're ready to move beyond basi...
11 Replies
ἔρως
ἔρως3w ago
you have html in the js side
WithMyTes…
WithMyTes…3w ago
Could you be more specific?
ἔρως
ἔρως3w ago
your js starts with <script>, making this untestable
WithMyTes…
WithMyTes…3w ago
i updated the pen but not sure if it will be super helpful since the script seems to be functioning properly offline. just cant get it to work on myfantasyleague.com
ἔρως
ἔρως3w ago
it doesn't do anything 🤔
No description
ἔρως
ἔρως3w ago
aren't you missing some html?
WithMyTes…
WithMyTes…2w ago
i was sort of intentionally leaving it out because the issue doesn't seem to be happening in the local version. I've updated the codepen to include the HTML/CSS and show that it is working. The issue lies when I try to implement the script on Myfantasyleague.com
ἔρως
ἔρως2w ago
but if we can't see what it is supposed to do, how will we know that it isn't working?
ἔρως
ἔρως2w ago
it's breaking here
No description
ἔρως
ἔρως2w ago
and in many more places
No description
ἔρως
ἔρως2w ago
you should try to fix the errors there your code desperately needs a better organization as well, since you have over 6300 lines of html with css and javascript mixed in