Difficulty with the Random Quote Machine

Project Link - (https://codepen.io/Zack1707/pen/QqMEoM?editors=00111)

Some feedback on the markup and aesthetic would be nice, but I’m also running into a bit of a problem with successfully making API requests. I can’t seem to retrieve any data, but JS HINT is showing no syntax errors.

Codepen requires your API calls to be secure.
You can try making it through https like so:

var url = "https://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1&callback=";

If there are any obscure problems like this in the future, best way to debug is to open browser console.
In chrome it’s Ctrl+Shift+J.

1 Like

Yeah- quick fix. That helped though. Thanks a million :smiley:

1 Like