Pen Settings

HTML

CSS

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

JavaScript

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

Packages

Add Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import or require. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Behavior

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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <head><link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css"></head>

<div class="container-fluid text-center">
  <h1>Random Quote Generator</h1>
  <p>Some of my favorite quotes from the Basketball gym</p>
  <img src = "http://img.bleacherreport.net/img/images/photos/003/320/653/0982d02136e8d2622c3a82a086e2c75a_crop_north.jpg?w=630&h=420&q=75">
  </br>
<button class =" btn btn default onlyquotechange" type = "Submit"> New Quote</button>
<div class ="quotes">
 <a class ="tweet_this" target ="_blank" href ="https://www.twitter.com/intent/tweet?text=">
  <button class = "btn btn default">
    <i class="fa fa-twitter fa-2x" aria-hidden="true"> Tweet</i> 
  </button>
  </a>
  
  <span class ="quote">Quotes</span>
  <span class ="author"></span>
 
</div>

</div>
            
          
!
            
              body{
  background-color:green;
  font-family:"Times New Roman";
}
h1{
  color: white;
  font-family:"Times New Roman";
}
p{
  color:white;
  font-family:"Times New Roman";
  font-style:italic;
  font-size:17px;
}
img{
  padding:25px;
}
.quotes{
  background-color:White;
  width:48%;
  margin-right:auto;
  margin-left:auto;
  border-color:black;
  border-style:solid;
  border-radius:10px;
  margin-top:20px;
  padding:20px;
  height:auto;
}
.quote{
  font-size:30px; 
}
.author{
  font-size:20px;
  font-style:italic;
}

.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/fontawesome-webfont.eot?v=4.6.3');
  src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.6.3') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.6.3') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.6.3') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.6.3') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.6.3#fontawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

            
          
!
            
              $(document).ready(function(){
  
  function getquote(){
    
    var quote=["You really can't guard me!","I probably hit like 100 3's today","Yo pass the ball","Man come on!"]
    var author=["-Johnathan Mullen","-Rashad Woodhouse","-Robert Green","-Josh Mathews"]
    
    
    var randomNum = Math.floor((Math.random()*quote.length));
    var randomquote = quote[randomNum];
    var randomauthor = author[randomNum];
    $(".quote").text(randomquote);
    $(".author").text(randomauthor);
    
    $(".tweet_this").attr("href", "https://www.twitter.com/intent/tweet?text=" + randomquote + randomauthor);
    
  }
    $(".onlyquotechange").on("click", function(){
      getquote();
      
                    
    });
})
            
          
!
999px

Console