Jquery plugin does not work on github pages

Asked

Viewed 178 times

0

Guys I put a Jquery plugin called nice scroll for the page to scroll slowly, but when I open the page on github pages it doesn’t work, the rest of the script and css are all working except them, anyone knows why?

  • 1

    enter the address? have you seen the debug if there are any errors?

  • https://fmm312.github.io/site/ , this is the address

  • test: put this one in place: https://cdnjs.cloudflare.com/ajax/libs/jquery.nicescroll/3.6.8/jquery.nicescroll.min.js (copy the address from https://cdnjs.com/libraries/jquery.nicescroll/3.6.6.8)

  • I tried man, nothing so far ...

  • Look at the reply @blackbird312

  • debug points to 2 errors, but I’m a layman and I don’t know exactly what it is

  • 1

    I just saw missed the https

  • 1

    Face look my answer needs to be that way with https

Show 3 more comments

1 answer

3


Error in the debug: The request has been blocked because the link does not come from a secure address.

Mixed Content: The page at 'https://fmm312.github.io/site/' was Loaded over HTTPS, but requested an insecure script 'http://areaaperta.com/nicescroll/js/jquery.nicescroll.min.js'. This request has been blocked; the content must be served over HTTPS.

needs to be a https as an example:

https://cdnjs.cloudflare.com/ajax/libs/jquery.nicescroll/3.6.8/jquery.nicescroll.min.js https://cdnjs.cloudflare.com/ajax/libs/jquery.nicescroll/3.6.8/zoomico.png

<script 
  src="https://cdnjs.cloudflare.com/ajax/libs/jquery.nicescroll/3.6.8/jquery.nicescroll.min.js">
</script>

Link - jquery.nicescroll

  • 1

    solved, thanks man !

Browser other questions tagged

You are not signed in. Login or sign up in order to post.