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.

            
              <div class="intro-header">
  <div class="container">
    <div class="row">
      <div class="col-md-6 col-sm-12">
        <button id="generateBtn" class="btn">Click For A Quote!</button>
          <blockquote class="block">
          <p id="showQuote"></p>
          </block>
      </div>
    </div>
    <!-- /.row -->
  </div>
  <!-- /.container -->
</div>

<!-- footer -->
<nav class="navbar navbar-default navbar-fixed-bottom">
  <div class="container-fluid">
    <div class="navbar-header">
      <ul class="nav navbar-nav">
        <li>
          <a href="https://www.facebook.com/andrew.charlebois" target="_blank" id="facebook"><i class="fa fa-facebook-official"></i></a>
        </li>
        <li>
          <a href="https://twitter.com/Andrew_Char" target="_blank" id="twitter"><i class="fa fa-twitter"></i></a>
          <li>
            <a href="https://github.com/andrewchar" target="_blank" id="github"><i class="fa fa-github-square"></i></a>
          </li>
          <li>
            <a href="https://www.freecodecamp.com/andrewchar" target="_blank" id="ffc"><i class="fa fa-fire"></i></a>
          </li>
          <li>
            <a href="https://www.linkedin.com/in/andrew-charlebois-a4b947113" target="_blank" id="linkedin"><i class="fa fa-linkedin-square"></i></a>
          </li>
          <li>
            <a href="https://www.codepen.io/andrewchar/" target="_blank" id="linkedin"><i class="fa fa-codepen"></i></a>
          </li>
      </ul>
    </div>
  </div>
  </div>
</nav>
            
          
!
            
              body,
html {
    width: 100%;
    height: 100%;
}

.intro-header {
    padding-top: 50px; 
    padding-bottom: 50px;
    color: #fff;
    background: url(https://s13.postimg.org/5b7v7lpdz/black_and_white_sport_fight_boxer.jpg) no-repeat center center;
    background-size: cover;
  height: 100%;
}

.block {
  margin-top: 10px;
}

#generateBtn {
  background-color: black;
  border-color: black;
  font-size: 1.2em;
  border-bottom-width: 2px;
  border-top-width: 2px;
}

#generateBtn:hover {
  color: #fff;
  border-color: white;
}


/* footer style */
 .navbar {
  background-color: black;
  display: inline-block;
   border-color: black;
} 

.nav {
  margin-left: 5px;
}

.social-media {
  list-style: none;
}

#facebook, #twitter, #github, #linkedin, #ffc {
 font-size: 1.5em; 
}  
  
.nav li {
  float: left;
}

i {
  color: white;
}
            
          
!
            
              var quotes = [
  "Bruce Lee was an artist and, like him, I try to go beyond the fundamentals of my sport. I want the public to see a knockout in the making.<br /> <i> - Sugar Ray Leonard </i>",
  "Rhythm is everything in boxing. Every move you make starts with your heart, and that’s in rhythm or you’re in trouble.<br /> <i> - Sugar Ray Robinson </i>",
  "The question isn’t at what age I want to retire, it’s at what income.<br /> <i> - George Foreman </i>",
  "His mouth made him feel like he was gonna win. Not his hands, I had my hand. He had his lips.<br /> <i> - Joe Frazier </i>",
  "The tempt for greatness is the biggest drug in the world.<br /> <i> - “Iron” Mike Tyson </i>",
  "He can have heart, he can hit harder and he can be stronger, but there’s no fighter smarter than me.<br /> <i> - Floyd “Money” Mayweather Jr. </i>",
  "I fight for perfection<br /> <i> - Mike Tyson </i>",
  "Sure the fight was fixed. I fixed it with a right hand.<br /> <i> - George Foreman </i>",
  "The loss just made me hungry; it made me want to go out and win another title.<br /> <i> - Thomas “Hitman” Hearns </i>",
  "The fight is won or lost far away from witnesses—behind the lines, in the gym and out there on the road, long before I dance under those lights.<br /> <i> - Muhammad Ali </i>",
  "In order to be at the top and maintain your focus you have to have something that motivates you. For me, it was what I perceived as a lack of respect from the boxing world as well as the media,      which made me want to work so hard and be great.<br /> <i> - “Marvellous” Marvin Hagler </i>",
  "He saved my life, he saved my career. I can’t thank him enough for the chance to fight him.<br /> <i> - Ken Norton </i>",
  "Getting hit motivates me. It makes me punish the guy more. A fighter takes a punch, hits back with three punches.<br /> <i> - Roberto “Hands of Stone” Duran </i>",
  "The hero and the coward both feel the same thing, but the hero uses his fear, projects it onto his opponent, while the coward runs. It’s the same thing, fear, but it’s what you do with it that matters.<br /> <i> - Cus D’Amato </i>",
  "The possession of muscular strength and the courage to use it in contests with other men for physical supremacy does not necessarily imply a lack of appreciation for the finer and better things of life.<br /> <i> - Jack Johnson </i>",
  "If you screw things up in tennis, it’s 15-love. If you screw up in boxing, it’s your ass.<br /> <i> - Randall “Tex” Cobb </i>",
  "I’m not God, but I am something similar.<br /> <i> - Roberto “Hands of Stone” Duran </i>",
  "To see a man beaten not by a better opponent but by himself is a tragedy.<br /> <i> - Cus D’Amato </i>",
  "I was painfully initiated into boxing, because the guys I fought were a lot bigger than me.<br /> <i> - Sugar Ray Leonard </i>",
  "Boxing is the toughest and loneliest sport in the world.<br /> <i> - Frank Bruno</i>",
  "In boxing you create a strategy to beat each new opponent, it’s just like chess.<br /> <i> - Lennox Lewis</i>",
  "I hated every minute of training, but I said, ‘Don’t quit. Suffer now and live the rest of your life as a champion’.<br /> <i> - Muhammad Ali</i>",
  "It’s less about the physical training, in the end, than it is about the mental preparation: boxing is a chess game. You have to be skilled enough and have trained hard enough to know how many different ways you can counterattack in any situation, at any moment.<br /> <i> - Jimmy Smits</i>",
  "That’s the most beautiful thing that I like about boxing: you can take a punch. The biggest thing about taking a punch is your ego reacts and there’s no better spiritual lesson than trying to not pay attention to your ego’s reaction.<br /> <i> - David O Russell</i>",
  "To become a champion, fight one more round.<br /> <i> - James Corbett</i>",
  "A champion is someone who gets up when he can’t.<br /> <i> - Jack Dempsey</i>",
  "The man who has no imagination has no wings.<br /> <i> - Muhammad Ali</i>",
  "Don’t count the days, make the days count.<br /> <i> - Muhammad Ali</i>",
  "To be a champ you have to believe in yourself when no one else will.<br /> <i> - Sugar Ray Robinson</i>"];

function getRandom() {
  var myQuote = Math.floor(Math.random() * quotes.length);
  return quotes[myQuote];
}

var generateBtn = document.getElementById("generateBtn");
var quoteBox = document.getElementById("showQuote");
  
generateBtn.onclick = function() {
  quoteBox.innerHTML = getRandom();
}

quoteBox.innerHTML = getRandom();
            
          
!
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