Hi, I did the Random Quote Machine webpage with all it’s functionalities, it was working perfectly but after a while I reopened the pen and now the page it’s broken.
- I tried to copy the code to a new pen but not even the css works as it should there.
- Searched the web to see if I could find something about it but no luck.
- I also did it again, from zero, but this keeps happening (when I save it works but then is broken)
What can it be?
This is the pen https://codepen.io/fzanollo/pen/apqJwa
Thanks for your help
You are loading code pen over https but try to make a request over http.
The browser prevents mixed content calls and block it (check you dev tools (if you’re on Chrome) / console).
Load your codepen over http:
or fix that function:
to make an AJAX call to https site.
By “fix” I mean either check if “api.forismatic.com” serves content over https and make https call or find and another API serving quotes over https.
Thank you very very much!