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.


Things to do:
  Add API for quotes??
  Add new quote btn function
  Add tweet text

<div id="whole" class="container text-center">
  <div id="inner">
    <div id="quotebox">
      <i class="fa fa-quote-left"></i>
      <span id="quote" style="color:black">
      <i class="fa fa-quote-right"></i>
    <div id="author" class="text-right">
      - Author
  <div id="buttons" class="row">
    <a id="tweet" class="col-xs-2 btn" href=",freecodecamp&text=test">
      <i class="fa fa-twitter fa-lg"></i>
    <button id="new" class="col-xs-4 col-xs-offset-6 btn">
      New Quote
<div id="credits" class="text-center">
  by<a href="" target="_blank">Queen Nectarine</a>
  quotes retrieved from<a href="#" target="_blank">somewhere</a>


                body {
  background-color: teal;

#whole {
  border-radius: 10px;
  border: 1px solid black;
  background-color: white;
  width: 500px;
  margin-top: 10%;
  padding: 20px;

#inner {
  border: 3px dotted grey;
  border-radius: 5px;
  padding: 15px;

#quotebox {  
  font-variant: small-caps;
  font-size: 32px;
  color: teal;

#author {
  font-size: 16px;

#buttons {
  margin-top: 5px;
  padding: 15px 15px 0px 15px;

#tweet, #new {
  color: white;
  background-color: teal;
  font-variant: small-caps;
  font-size: 16px;

#credits, #credits a {
  color: white;
  padding: 10px;



$("#new").on("click", function() {
var url = "[orderby]=rand&filter[posts_per_page]=1";
  //Using a JSON proxy site to retrive the Quote API at var url  
  $.getJSON("" + url, function(json) {

    $("#tweet").attr("href", ",freecodecamp&text=" + QUOTE);