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
you have html in the js side
Could you be more specific?
your js starts with
<script>
, making this untestablei 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
it doesn't do anything 🤔
aren't you missing some html?
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
but if we can't see what it is supposed to do, how will we know that it isn't working?
it's breaking here
and in many more places
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