My static files are directing to the correct place since my CSS files are loading. However, I have a JS file that works locally and on codepen, but not on the browser. I have tried placing my JS files in a different folder and directing there and I have changed the script src (from /static/button.js to https://www.yoginib.org/static/button.js) - Neither of these have worked. I am not getting any errors when I check developer tools either.
I am not experienced with jQuery or PythonAnywhere so I am not sure what else to try.
I have some animations on the buttons, so I am not sure if that's affecting the functionality.
This is the HTML (where I reference the JS:
This is also the HTML, showing the buttons that I want to affect using JS:
This is a screenshot of the buttons on the actual webpage and the text underneath, which should change to different text with a button click:
This is the link to the webpage: https://www.yoginib.org/arena.html
Via Active questions tagged javascript - Stack Overflow https://ift.tt/mPxjc1u
Comments
Post a Comment