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.


                <div class="container margin">
      <div class="well well-lg well_2">
        <div class="text-center message">
          <h1><i class="fa fa-quote-left fa-fw" aria-hidden="true"></i> <span id="quote">Click on the refresh button to generate a new quote.</span> <i class="fa fa-quote-right fa-fw" aria-hidden="true"></i>
            - <em><span id="author">Spectre Studio</span></em>
          <button class="btn btn-danger" id="getQuote" title="Refresh Quote"><i class="fa fa-refresh fa-fw"></i> Refresh Quote</button>
          <button class="btn btn-info" id="tweetMe" title="Tweet Me!"><i class="fa fa-twitter fa-fw"></i> Tweet this quote</button>
        <div class="text-center footer">
          <i class="fa fa-copyright fa-fw"></i> 2016 by <a href="" target="_blank">Spectre Studio</a> / <a href="" target="_blank">Marco Mazzeo</a>


                @import url(;
@import url(;

.margin {
  margin-top: 80px;
body {
background: #0971B2;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  height: 100%;

.well_2 {
  background: #FF9F19;
  border: 10px solid #B26800;
  border-radius: 20px;
  width: 750px;
  margin-left: auto;
  margin-right: auto;
span#quote {
  font-family: 'Lobster', cursive;
span#author {
  font-family: 'Poiret-One', cursive;

.message h1 {
  font-size: 2em;
.message h2 {
  font-size: 1.5em;

.footer {
  color: #222;
a:visited {
  text-decoration: none;
  color: #222;

/* .btn {
  background-color: #009DFF;
  border: none;
.btn:hover {
  background-color: #6ac7bf;
  border: 1px solid #000;
  opacity: 1;
} */


	 $('#getQuote').click(function() {
    // Random Quotes API
      url: '',
      type: 'POST', // Required
      datatype: 'json',
      success: function(data) {
        data = JSON.parse(data);
      beforeSend: function(xhr) {
        // Authorization Key
        xhr.setRequestHeader("X-Mashape-Key", "KH1P0sc0RpmshREzMtI4pee7SRJmp1GburtjsnSSVrw0zMc1dm");

    }); // END $.ajax

  }); // END #getQuote
  // Twitter posting code
  $("#tweetMe").click(function() {
    var tweetQuote = $('#quote').html();
    var tweetAuthor = $('#author').html();
    var tweetLink = encodeURI('');

    tweetLink += '"' + tweetQuote + '"';
    tweetLink += " - ";
    tweetLink += tweetAuthor;, "_blank");
// end of Twitter posting code.
}); // end of document.ready