I tried this https://codepen.io/melissa160/full/woeePB/ and it stopped working, so it’s probably because of https. Read your API documentation, they maybe mention that.
Thanks, It’s strange, sometimes works other times no. The API documentation doesn’t mention about https: http://quotes.stormconsultancy.co.uk/api
Do you recommend me change the API?
GitHub Pages are served via HTTPS, but your code is making request via HTTP and due to security reasons such requests are blocked by browser. You can open browser console (Ctrl + Shift + J) and see the message yourself.
There is a workaround - you can add https://crossorigin.me/ in front of your API call url, like this: