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.

            
              <head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
  <link href='https://fonts.googleapis.com/css?family=Geostar|Sigmar+One|Geostar+Fill|Stalinist+One' rel='stylesheet' type='text/css'>
  <link rel='sytlesheet' href='fonts'>
  <link rel='stylesheet' href='css/quote.css'>
  <link rel="stylesheet" href="css/animate.css">
  <script type='text/javascript' src='js/quote.js'></script>
</head>

<body>
  <div class='container'>
    <div class='row'>
      <div class='col-xs-12'>
        <h1 class="top_head fadeInUpBig animated"> STAR WARS</h1>
        <h2 class="head_intro lightSpeedIn animated">QUOTE GENERATOR</h2>

        <!--<h3 class="head_intro lightSpeedIn animated">Here are some of my favorite Star War quotes.<br/><br></h3>-->
        <div class="centered">
          <div class="text-center">

            <button class='btn pulse animated'>May the force be with you</button>
            <!--- if you are inspecting this source code here is a surprise for you. R2D2 (playing a message with Leia)
       _--~~--_
     /~/_|  |_\~\
    |____________|                    Help Me Obi Wan.
    |[][][][][][]|:=  .               You're my only hope!
  __| __         |__ \  ' .          /
 |  ||. |   ==   |  |  \    ' .     /
(|  ||__|   ==   |  |)   \      '<
 |  |[] []  ==   |  |      \    '\|
 |  |____________|  |        \    |
 /__\            /__\          \ / \
  ~~              ~~

---- ASCII art by www.chris.com-->


            <div class="container">
              <div class='jumbtron'>
                <div class="quote"><span class="phrase"></span>
                  <br><span class="author"></span></div>
              </div>
            </div>
          </div>
        </div>
      </div>
</body>


</html>
            
          
!
            
              /* yellow = #D2D025, white=#F1F1F1, black= #040404
*/

body {
  background-image: url('http://i.ytimg.com/vi/qbzFSfWwp-w/maxresdefault.jpg');
  background-repeat: no-repeat;
}


/*
@font-face {
  font-family: StarWars;
  src: url('../fonts/StarJedi.ttf') format('truetype');
}*/

h2 {
  font-family: 'Stalinist One', cursive;
  font-size: 20px;
  line-height: 25px;
  margin: 1rem 1rem 1rem 0rem;
  padding: 2rem 0;
  text-align: center;
  color: #f0f0f0;
}

.top_head {
  font-family: 'Stalinist One', cursive;
  line-height: 1.5rem;
  font-size: 8.50rem;
  margin: 4rem auto 2rem;
  text-align: center;
  color: #D2D025;
  animation-duration: 2s;
  animation-iteration-count: 1;
}

.head_intro {
  font-family: 'Sigmar one', cursive;
  margin: 1em 2em;
  padding: 1rem 1rem 0 2rem;
  color: #f0f0f0;
  animation-duration: 3s;
  animation-delay: 3s;
  animation-iteration-count: 2s;
}

.bodyText {
  font-family: 'Stalinist One', cursive;
  font-size: 20px;
  line-height: 1rem;
  margin: 1rem 1rem 1rem 0rem;
  padding: 2rem 0;
  text-align: center;
  color: #f0f0f0;
}

.quote {
  font-family: 'Sigmar one', cursive;
  font-size: 18px;
  line-height: 20px;
  margin: auto;
  padding: 2rem;
  color: #040404;
}

.centered {
  text-align: center;
}

.btn {
  text-align: center;
  font-family: 'StarJedi', 'Sigmar One', cursive;
  font-size: 2rem;
  height: 50px;
  width: 35rem;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  padding: 10px 15px;
  margin-bottom: 1rem;
  background: #D8D20A;
  color: #fff;
  border-radius: 6px;
  border: solid 1px #D8D20A, ;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
  animation-duration: 1.5s;
  animation-delay: 6.5s;
  animation-iteration-count: 3;
}

.jumbtron {
  margin: 2rem;
  background-color: #f0f0f0;
  color: #6696CF;
  border-radius: 10px;
}
            
          
!
            
              $(document).ready(function() {
  runQuote();

  function runQuote() {
    var quotes = ["Size matters not. Judge me by my size, do you? @-Yoda","Your focus determines your reality.@-Qui-on Jinn","This is a new day, a new beginning.@-Ahsoka Tano", "Do. Or do not. There is no try. @-Yoda", "Fear is the path to the dark side. @-Yoda", "Truly wonderful, the mind of a child is. @-Yoda", "Mmm. Lost a planet, Master Obi-Wan has. How emarrassing.@-Yoda", "A Jedi uses the Force for knowledge and defense, never for attack. @-Yoda", "Fear is the path to the dark side…fear leads to anger…anger leads to hate…hate leads to suffering. @-Yoda", "Use the Force, Luke. @-Obi-Wan Kenobi", "In my experience there is no such thing as luck.@-Obi-Wan Kenobi", "Remember...the Force will be with you, always.@-Obi-Wan Kenobi", "Never tell me the odds. @-Han Solo", "Great, kid. Don't get cocky. @-Han Solo", "You like me because I'm a scoundrel. There aren't enough scoundrels in your life.@-Han Solo", "So? What are you going to do, talk me to death? @-Han Solo", "Help me Obi-Wan Kenobi, you're my only hope.@-Princess Leia"];

    randQuote =
      quotes[Math.floor(Math.random() * quotes.length)];
    author = randQuote.split("@");
    $('.phrase').text(author[0]);
    $('.author').text(author[1]);
  }

  $(".btn").on("click", function() {
    runQuote();

  });

});
            
          
!
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