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 includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.



<!-- WEBPAGE UNDER THIS LINE ------------------------->
<body class="back-change">
  <div class="container-fluid back-change" id="mainDiv">
    <section class="text-center">
      <div class="row">
        <div class="col-lg-4 col-lg-offset-4 col-sm-6 col-sm-offset-3 col-xs-4 col-xs-offset-4 mainQuoteBlock">
          <p id="quote">Click the "New Quote" button to generate a new quote!</p>
          <p id="author"></p>
          <div class="row button-row">
            <button type="submit" class="btn-lg btn pull-right back-change" id="newQuote" style="color:white;">New Quote</button>
            <a href="#"><i class="fa fa-twitter fa-3x pull-left back-change" id="twitter" style="border-radius: 5px;"></i></a>
          </div><!-----button row----->
        </div><!----mainquoteBlock div --->
  </div><!-----main div container fluid--->


  margin-top: 110px;
  margin-bottom: 8;
  border-radius: 7px;
  background-color: #f0eeee;
  padding: 20px;
  font-size: 25px;
  font-size: 17px;
  margin-left: 75%;
  padding: 15px 30px 10px 30px;
  color: white;
  background-color: #6f5950;



  var author;
  var quote; 

  function getNewQuote(){
      url: '',
      jsonp: 'jsonp',
      dataType: 'jsonp',
      data: {
        method: 'getQuote',
        lang: 'en',
        format: 'jsonp'
      success: function(response){
        quote = response.quoteText;
        author = response.quoteAuthor;
  } //end of newquote function

    var back = ["#73b4a0","#395d6f","#fc9f5b", "#ff4444", "#f26419"];
    var rand = back[Math.floor(Math.random() * back.length)];
  $('#twitter').click(function(){'', '_blank');