Errors in window.on() after transition to protocol https



  • c=window;
    c.on("scrolled",this,this.onUpdate);
    

    That's the design. Everything used to work perfectly on the website. It's gone to https. alert when the page is downloaded with error MuseJSAssert: Error calling selector function:TypeError: $(...).registerOpacityScrollEffect is not a function

    The console removes: Uncaught TypeError: c.on is not a function

    The version of js is 2.xx.x!

    Reference to full file and website https://mlm-portal.ru/scripts/jquery.scrolleffects.js

    How do I fix it?



  • Pending protocol https The required library included a crypt.

    <script type="text/javascript">
       if (document.location.protocol != 'https:') document.write('\x3Cscript src="http://musecdn.businesscatalyst.com/scripts/4.0/jquery-1.8.3.min.js" type="text/javascript">\x3C/script>');
    </script>
    

    who in turn loaded from another server http protocol's the right version of the library.

    Okay. You can't use a more download from other resources under the usual protocol, the solution might be to replace the default version from 1.4 to 1.8. 3.

    The above-mentioned violin can be removed for inconvenience.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2