Random Quote Machine codepen doesn't want to show the quotes

Random Quote Machine codepen doesn't want to show the quotes
0

#1

Hello! I don’t understand why my code doesn’t work. the quotes are not showing and the twitter button doesn’t work. https://codepen.io/anastasiaI/pen/aqXgGJ
but in my browser quotes are showing.
thanks!


#2

The above two statements seem contradictory. Where are they not showing, if the browser is showing the quotes?

Check your browser’s console (Ctrl+Shft+J in Chrome) to see an error regarding “Mixed Content”. Codepen uses https (secure site) and the API you are linking has http: prefix (unsecure). The browser will not let you make an unsecure request (via JavaScript) from a secure site. I believe the the forismatic.com api has an https version too. Try it out.


#3

Thank you sooo much! now everything is ok! :smile: