Javascript not working

Hi, I am trying to publish my site from my Github repo which has a .html, .css & .js file. While HTML & CSS works fine, my javascript does not work.

You’re going to need to provide more information than that. What is the URL of your site? What’s not working with the JavaScript?

This is my site: gaureshchavan.netlify.app

I am building this website using HTML, CSS & javascript - both of which are in the top directory on my github and being referenced in HTML accordingly.

Everything works fine when run locally. But as you’d probably see, the hamburger menu, typewriter text effect, ‘More info’ drop down section & the scroll up button does not work - all of which has a functionality inside the JS.

Access my github here: https://github.com/karmickoala31/Portfolio-website

Looks like you’re trying to load jQuery over http. Try loading your script over https: https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js. You should probably load it before the bootstrap script as well.

@tomrutgers works like a charm! Thanks. Is there any reason why it would work all the same when run locally?

1 Like

Usually you don’t have a certificate enabled for your local development server, so the script isn’t marked as a security vulnerability by your browser. If you load scripts from a CDN, always check if it’s loaded through https.

1 Like

Got it! Thanks for the help @tomrutgers!

Thank you very much for this information