123

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.

            
              <body>
  <!--Heading-->
  <div class="container-fluid">
    <div class ="heading">
  <h1> Oscar Wilde Quotes</h1>
    </div>
    <!--Quote Space-->
    <div class="well well-lg">
    <p id="quote"> Oscar Fingal O'Flahertie Wills Wilde (16 October 1854 – 30 November 1900) was an Irish author, playwright and poet.<br>Click below for some of his famous quotes.</br>
    </p> 

  <button class = "button btn btn-success"> Click here for Wilde's Wisdom </button>
  <!--Twitter Buttons-->
  <div class ="button btn-twitter">
<a class="tweet twitter-share-button"
  href="https://twitter.com/intent/tweet?text="
  target="_blank">
<i class="fa fa-twitter"></i>
  Tweet</a></div>
  </div>

<div class ="btn btn-danger">
<a href="https://twitter.com/Drunken_Musings" class="twitter-follow-button"target="_blank">Follow @Drunken_Musings</a></div>
<!--<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>-->
            
          
!
            
              .heading{
  margin: 20px;
  color:#f7f7f7;
  text-align: Center;
  text-shadow: 5px 5px 4px #3b5998;
  font-size: 25px;
  font-family: Papyrus,Monotype Corsovia,Comic Sans Ms;
font-style: Bold;
}
body {
  background: url(http://hdwallpaperia.com/wp-content/uploads/2013/11/Black-Wood-Background.png);
    background-size: cover;
  opacity:0.8;
  background-color: #333333;
}

.well {
  background-color:#8b8589;
  opacity: 0.98;
  height:100%;
  width:50%;
  text-align: center;
  margin: auto;
  padding: 5px;
  font-family:Rum Raisin,Trebuchet MS,Arial;
  font-size: 20px;
  color: #372e29;
  font-style: italic;
}
.button {
  padding: 10px;
  font-family:Rockwell,Lucida Bright,Arial Black;
  font-style: Bold;
  font-size:20px;
  color: #000000;
  background-color:#800909;
  margin-top: 10px;
  margin-left:auto;
}
.btn-twitter {
    background: #00acee;
  border-radius: 20px;
  padding: 4px;
 }
            
          
!
            
              $( document ).ready(function() {
	
    var quotes =["Be yourself,everyone else is already taken.", "We are all in the gutter, but some of us are looking at the stars.","I have the simplest tastes. I am always satisfied with the best.","To live is the rarest thing in the world. Most people exist, that is all.","To love oneself is the beginning of a lifelong romance.","Ordinary riches can be stolen, real riches cannot. In your soul are infinitely precious things that cannot be taken from you","What is a cynic? A man who knows the price of everything and the value of nothing.","The only difference between the saint and the sinner is that every saint has a past, and every sinner has a future.","There is only one thing in the world worse than being talked about, and that is not being talked about.","I am so clever that sometimes I don't understand a single word of what I am saying.","Anybody can make history; only a great man can write it.","As for believing things, I can believe anything, provided that it is quite incredible.","Always forgive your enemies; nothing annoys them so much.","Man is least himself when he talks in his own person. Give him a mask, and he will tell you the truth.","You don't love someone for their looks, or their clothes, or for their fancy car, but because they sing a song only you can hear."];
 //QuoteGenerate
$(".button").click(function() {
  randomQuote = quotes[Math.floor(Math.random()*quotes.length)];   
    $("#quote").replaceWith("<p id=quote>" + randomQuote+"</p>");
     $(".tweet").attr('href',"https://twitter.com/intent/tweet?text="+randomQuote)
});  
  //TwitterButton
  /* nothing here */
  });
            
          
!
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.

Console