Random Quote Generator acting funny

Random Quote Generator acting funny
0

#1

I finally got my codepen to load from a quote website, but when I click the button, I get a really weird result:

Here’s a link to my codepen:
http://codepen.io/mbabaian/pen/oZjpoQ

If anyone can tell me what the problem with my code is, I’d really appreciate it! It took me three days just to get this far.


#2

The request to http://quotes.rest/qod.js will give you an JSONP response.

I would switch to http://quotes.rest/qod.json and parse it with JSON.parse(). You will then get an Object like this

I`m sure you will figure out how to get the quote from here.


I apologize for not being word-perfect in English