JavaScript not executing once deployed

Hi there,

Site: https://danbeaumont.netlify.app/
GitHub Repository: GitHub - BeaumontDan/portfolio: Personal Portfolio Website

I’ve just deployed my portfolio site, it’s primarily HTML and CSS (which both appear to work perfectly) but I do have a few scripts too, one of which is not working.

Everything works perfectly locally but this one script ,which is responsible for toggling the mobile nav menu and changing the header style on scroll, is not, despite being located along side 3 other working scripts. My guess is it is something to do with this one using JQuery(?) though I’m not sure as I’m very new to all this.

Any help would be hugely appreciated.

Many thanks,
Dan

The brower dev tools indicates the error:

You need to load the script over HTTPS

:man_facepalming:
such a simple oversight!!

Thanks so much!

1 Like