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.


  <link rel="stylesheet" href="">
  <link href=',400' rel='stylesheet' type='text/css'>
 <div class="background">
  <div class="container-fluid"> 
   <div class="quotebox">
      <div class="row">
       <div class="quotehere">
     Random Quote Jukebox
     <div class="row">
     <div class="author">
     <div class="row buttonrow">
       <a class="btn btn-primary" id="tweet" title="Tweet this!" target="_blank"><i class="fa fa-twitter fa-lg fa-fw bird"></i>

      <button id="getquote" class="btn btn-primary">
        Refresh Quote

    <!-- end quotebox div -->
    <!-- end container div -->
  <!-- end background div -->



body {
  background-color: gray;
.background {
  background: url('') no-repeat center center fixed;
  height: 100%;
  width: 100%;
  position: absolute;

.quotebox {
  background-color: rgba(355,355,355,0.75);
  min-height: 400px;
  min-width: 500px;
  margin: 100px auto 10px auto;
  border-radius: 20px;
  padding: 40px;

.quotehere {
  font-family: 'Exo 2', sans-serif;
  font-style: italic;
  font-size: 40px;
  margin: 50px auto 20px auto;

.author {
  font-family: 'Exo 2', sans-serif;
  font-size: 30px;
  float: right;

.buttonrow {
  margin-top: 20px;

#tweet {

.bird {
  text-align: center;
  padding-top: 7px;

#getquote {
  float: right;


                $(document).ready(function() {
var newquote = "";
var newauthor = "";

var getdata = function () { 
  url: '',
  type: 'POST',
  data: {},
  datatype: 'json',
  success: function(data) { 
    var apiobj = jQuery.parseJSON(data);
    $(".author").html("~ ";
    $('#tweet').attr('href', '' + encodeURIComponent('"' + apiobj.quote + '" -- ' +;    
  error: function(err) { alert(err); },
  beforeSend: function(xhr) {
    xhr.setRequestHeader("X-Mashape-Authorization", "PpXH6lkRPmmshZ9Tn5HbzhMlNt05p14nt2OjsncBMHfwCuZei2"); //This is my personal Mashape key for this Application group
  //end ajax header
//end getdata function
      $("#getquote").on("click", function(){

  //end getquote click function

//end document ready function