Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


  <link rel="stylesheet" href="//"/>
  <link rel="pingback" href="">
<div id="main" class="container-fluid">
  <div class="quote_div jumbotron">
    <div class="quote text-left lead" id="quote">"
      If you can&#8217;t explain it simply, you don&#8217;t understand it well enough "
    <div class="quote_by text-right" id="quote_by"><blockquote>
      Albert Einstein</blockquote>
      <div class="foot">
        <div class="social_buttons btn-group">
        <a href="" target="_blank"
           class="btn btn-social-icon btn-lg btn-facebook facebook_button mySocialButtons" style="background-color:#3b5998; color:#fff">
          <i class="fa fa-facebook"></i>
        <a href=";text=The%20Quote%20&amp;hashtags=quotes" target="_blank" class="btn btn-social-icon btn-lg btn-twitter btn-info mySocialButtons twitter_button" style="background-color:#55acee; color:#fff">
          <i class="fa fa-twitter"></i>
        <a href="" target="_blank"
           class="btn btn-social-icon btn-lg btn-google btn-danger google_button mySocialButtons" style="background-color:#dd4b39; color:#fff">
          <i class="fa fa-google"></i>
        <div class="next_button">
          <button class="btn btn-lg button_main" id="next-quote">New Quote</button>


  background-color: red;
  position: absolute;
  background-color: #123123;
  margin-top: -125px;
  padding-top: 20px;
  padding-right: 20px;
  padding-bottom: 20px;

  position: absolute;
  bottom: 10%;
  display: inline-block;
  float: left;
  margin-left: -10px;
  display: inline-block;
  float: right;
  margin-left: 120px;
  margin-bottom: 10px;



                var quotes=[["If you can’t explain it simply, you don’t understand it well enough","Albert Einstein"],
            ["The difference between a weed and a flower is a judgement","Wayne Dyer"],
           ["The process is really just Iterate, Iterate, Iterate","Chris Clark"],
           ["We don&#8217;t get hired to make pretty things or win design awards. We get hired to solve business problems","James Bradley"],
           ["Don&#8217;t think","William Firebrace"],
           ["Typography has one plain duty before it and that is to convey information in writing. No argument or consideration can absolve typography from this duty","Emil Ruder"]];

var useTheAPI = true;


function changeQuote(){
  var quote, author, idq, color1, color2;
  var speed = 1000;
  color1 = randomColor();
  /*color2 = randomColor();
  color2 = "#"+(parseInt("0xFFFFFF") - parseInt("0x"+color1)).toString(16);
  color2 = "white";
  color1 = "#"+color1;

  $('.quote_div').animate( { backgroundColor: color2 }, speed);
  $(".button_main").animate({backgroundColor: color2}, speed);
  $(".button_main").animate({color: color1}, speed);
  $(".button_main").css("border", color1+" solid");
  $(".quote_div").animate({color: color1}, speed);
  $("body").animate({backgroundColor: color1}, speed);
  var weblink = "[orderby]=rand";//&filter[posts_per_page]=1&callback=?";
   /*var weblink = "[orderby]=rand";
  $.getJSON(weblink, function(val) {
    author = val[0].title;
    quote = val[0].content;*/
     url: "", 
     headers: {
               'X-Mashape-Key': "W5YILaESBKmshbgACjTBRCkYYcVIp1cU6l9jsn6OcfxWrkQmlw",
               'Accept': 'application/json'
     success: function(val){
        var bar = jQuery.parseJSON(val);
        quote = bar.quote;
        author =;
       updateHtml(quote, author);
      /*$.post("", {
     'X-Mashape-Key': 'W5YILaESBKmshbgACjTBRCkYYcVIp1cU6l9jsn6OcfxWrkQmlw'
   }, function(data, status){
  idq = selectRandomQuote();
  quote = quotes[idq][0];
  author = quotes[idq][1];
  updateHtml(quote, author);


function updateHtml(quote, author){
    $(".twitter_button").attr("href", ";text="+quote+"&amp;hashtags=quotes");
    $(".facebook_button").attr("href", ""+quote+"%20");
    $(".google_button").attr("href", ""+quote+"%20");

function selectRandomQuote(){
  return Math.floor(Math.random()*quotes.length);

function randomColor() {
  var color="";
  for (var i=0; i<6; i++){
    color += Math.floor(Math.random()*16).toString(16);
  return color;