css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm 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. We'll also process your JavaScript with Babel.

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

Code Indentation

     

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.

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.

            
              <br>
<div class="container">

  <link href='https://fonts.googleapis.com/css?family=Black+Ops+One|Permanent+Marker' rel='stylesheet' type='text/css'>


<h1 align = "center">Quote Generator <BR> <button class="btn" onClick="yeah();">Click here for wisdom</button> </h1>


  <div class="jumbotron">
    
 <p id = "qu"> </p>
</div>
  
<a class="twitter-share-button" href = "https://twitter.com/intent/tweet" target="_blank">
  <img  src = "http://www.alehagerealestate.com/wp-content/uploads/sites/49/2014/01/twitter_orange.png" title ="Tweet this quote!"alt="Twitter" style="width: 50px; height 50px;">
  
     </a>
  <br>
  

            
          
!
            
              .container {
  border: 2px solid;
  border-color: orange;
}

.jumbotron {
  margin-left: 100px;
  margin-right: 100px;
  background-color: orange;


}
h1 {
  font-size: 46px;
  color: orange;
  text-decoration: underline;
 font-family: 'Permanent Marker', cursive;
  

}
body {
  background-color: black;
  
}
p {
  font-size: 24px;
  text-align: center;
  font-family: 'Permanent Marker', cursive;
  
}

img {
display: block;
    margin-left: auto;
    margin-right: auto; 
}

a {
  color: orange;
  text-align: center;
}

p {
  outline: none;
}

.btn {
  color: orange;
  background-color: black;
  border-color: orange;
  border-radius: 25px;

 
}

.btn:hover {
  opacity: 0.9;
  color: black;
  background-color: orange;
  border-color: orange;
  
}

.btn:focus {
  outline: none !important;
 text-decoration: underline;
  background-color: orange;
  color: black;
}
            
          
!
            
              function yeah() {
  
  var quotes = [ '"Be who you are and say what you feel, because those who mind don’t matter and those who matter don’t mind." - Dr. Seuss', '"Don’t look for society to give you permission to be yourself." - Steve Maraboli', '"Tension is who you think you should be. Relaxation is who you are." - Chinese Proverb', '"Whatever the mind of man can conceive and believe, it can achieve." – Napoleon Hill', '"Every strike brings me closer to the next home run." – Babe Ruth', '"We become what we think about." – Earl Nightingale', 'The best time to plant a tree was 20 years ago. The second best time is now." – Chinese Proverb', '"The mind is everything. What you think you become."  – Buddha', '"You can never cross the ocean until you have the courage to lose sight of the shore." –   Christopher Columbus', '"Twenty years from now you will be more disappointed by the things that you didn’t do than by the ones you did do, so throw off the bowlines, sail away from safe harbor, catch the trade winds in your sails.  Explore, Dream, Discover." – Mark Twain', '"Definiteness of purpose is the starting point of all achievement." – W. Clement Stone', '" I’ve missed more than 9000 shots in my career. I’ve lost almost 300 games. 26 times I’ve been trusted to take the game winning shot and missed. I’ve failed over and over and over again in my life. And that is why I succeed." –Michael Jordan', '"Strive not to be a success, but rather to be of value." –Albert Einstein', '"Two roads diverged in a wood, and I—I took the one less traveled by, And that has made all the difference." – Robert Frost']
                
                
  var quotes1 = quotes[Math.floor(Math.random()*quotes.length)];
  
  document.getElementById("qu").innerHTML = quotes1;
  


  var quotes2 = 'https://twitter.com/intent/tweet?text=' + quotes1 + ' @_drewpiper ';


  $(".twitter-share-button").attr("href", quotes2);
};


 // $('#tweetthis').attr('"https://twitter.com/intent/tweet?text=' + encodeURIComponent('"' + twequote + '" '));
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console