$(document).ready(function(){
$("#new-quote").click(function(){
var color = [ '#FFA07A', ' #48c9b0 ', '#008080', '#808080', '#800000', ' #FFC300 ', '#1abc9c'];
var quotes = ["Hmm. We’re having trouble", "finding that site.", "We can’t connect to the server at codepen.io.",
"If that address is correct, here are three other things you can try:", "Try again later.", "Check your network connection.",
"If you are connected but behind a firewall, check that Firefox has permission to access the Web."];
var length = color.length;
var randomValue = Math.floor(Math.random() * length);
$("html body").animate({backgroundColor: color[randomValue]},1000);
$("#tweet-quote").animate({backgroundColor: color[randomValue]},1000);
$("#tumblr-quote").animate({backgroundColor: color[randomValue]},1000);
$("#new-quote").animate({backgroundColor: color[randomValue]},1000);
$("#quote").innerHTML = quotes[randomValue];
});
});