Szabolcs Szűcs Szabolcs Szűcs - 1 month ago 26
HTML Question

jquery its not working

I have a website,two days ago is everyting was good. Today I checked,and the javascripts doesn't work. The browser give me this:

enter image description here

The is my code:

<script src="https://code.jquery.com/jquery-3.1.1.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src='https://www.google.com/recaptcha/api.js'></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/fotorama/4.6.4/fotorama.js"></script>


EDIT:
In a html code I had opened html comment ,and this made me a problem. Thank you for everybody!

Answer

Looks like you're loading resources using both https and http. Try loading them with // instead so they simply match the protocol used to load the page (either http or https, but they'll be consistent).

<script src="//code.jquery.com/jquery-3.1.1.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="//www.google.com/recaptcha/api.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/fotorama/4.6.4/fotorama.js"></script>