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.

            
              <head>
  <title>My random Quote machine</title>
</head>

  <body>
   <h1>Random Quote Machine</h1>

      <!--Navigation bar below-->

  <div class="navbar">
 <ul>
<li><a href="#Home">HOME</a></li>   
<li><a href="#QuoteMachine">QUOTE MACHINE</a></li>   
  
 <li><a href="#Contact">SEND IT OUT</a></li>  
   
  </ul> 
 </div>  
    
    
    
  
  
  <div id="Home"><h2>Home</h2> 
 
    <img class="thick-border silver img-rounded" src="https://m.popkey.co/236af4/g3ZaK.gif" alt="Quote me">
  </div>
    <div id="rip"><center><p>Rest in peace Verne Troyer</p></center>
</div>  
 
    <div><button id="btnX">Shake things up</button><div/>

  
  
 <div id="QuoteMachine"><h2>Quote Machine</h2></div>
  <p class="text-center ">Just give me a quote! </p>
 
<p1><h3><button id="btn1">Generate 
  Quote</button></h3>
 <div  id="quote"> 
"Message will appear here!"  
 </div> 
  
  <div id="Contact"><h2>Send it Out</h2></div>
  <p><button id="btn2"><i class="fa fa-twitter-square 3x">twitter</i></button></p>
</body>
            
          
!
            
              
h1{  
text-align:center;
text-decoration:underline;  
}

h2{
text-decoration:underline;  
text-align:center;
}

li{
display:inline-block;
padding:50px;
margin:50px  
text-decoration:underline;
}

ul{
text-align:center;
border:10px;  
}




img{
border-radius:50%;  
display:block;
margin-left:auto;
margin-right:auto;  
width:50%; 
}

#rip{
font-size:30px;  
margin-left:auto;
margin-right:auto;
display:block;  
}


body {
font-family:; 
background-color:pink;
}
button{

}




#quote{
font-size:40px;  
font-weight:20px; 
""
  
background-color:;
text-align:center;  
padding:50px;
}

button{
border-radius:20px;
display:block;  
margin-left:auto;  
margin-right:auto;
font-size:60px;  
}
            
          
!
            
              var theQuote; var theAuthor;var radNo;

var myQuotes=["Fool me once shame on you....fool me twice shame... fool me cant get fooled again" ,"I did not have any relations with that woman","You are not the father","I like ya and I want ya,We can do this the easy way or the hard way",
"I broke my back","Wu-tang is for the children","The only winning move is not to play"];

var quoted=["George Bush","Bill Clinton","Maury","Booty Warrior","Mike Tyson","ODB","War Games"];


$(document).ready(function(){
$("#btn1").on("click",function(){
  theQuote=myQuotes[radNo];
  theAuthor=quoted[radNo];
  radNo=Math.floor(myQuotes.length*Math.random());



  $("#quote").text(theQuote+"-"+theAuthor)
  
  $("#btn2").on("click",function(){
   
 
    
window.open("https://twitter.com/intent/tweet?text="+theQuote+"-"+theAuthor);
   
});  
  
  //second button below

 
 });
  
 $("#btnX").on("click",function(){
 $("body").css("background-color","Aquamarine");  
 }); 
});

            
          
!
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