Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


          | A long time ago in a galaxy far, 
          | far away....
          button.btn.btn-lg.btn-default.btn-force Use the Force
            button.btn.btn-lg.btn-default.btn-tweet Tweet


a:hover {
  text-decoration: none;
  color: #fff;

.btn:active:focus, {
  color: #333;
  background-color: #fff;
  border: 1px solid #fff;
  text-shadow: none;
  outline: none;

.quote {
  font-size: 36px;
  font-weight: 600;

body {
  height: 100%;
  background-image: url("");
  background-size: cover;
  background-color: #333;

body {
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);

.site-wrapper {
  display: table;
  width: 100%;
  height: 100%; /* For at least Firefox */
  min-height: 100%;
  -webkit-box-shadow: inset 0 0 100px rgba(0,0,0,.5);
          box-shadow: inset 0 0 100px rgba(0,0,0,.5);

.site-wrapper-inner {
  display: table-cell;
  vertical-align: top;

.cover-container {
  margin-right: auto;
  margin-left: auto;

.inner {
  padding: 30px;

.cover {
  padding: 0 20px;
.cover .btn-lg {
  padding: 10px 20px;
  font-weight: bold;

@media (min-width: 768px) {
  .site-wrapper-inner {
    vertical-align: middle;
  .cover-container {
    width: 100%;

@media (min-width: 992px) {
  .cover-container {
    width: 700px;


                speaker = ''
said = ''

quotes = [
	{quote: "It's a trap!", character: "Admiral Ackbar"}
	{quote: "Because he's holding a thermal detonator!", character: "C-3PO"}
	{quote: "Don't call me a mindless philosopher, you overweight glob of grease.", character: "C-3PO"}
	{quote: "Don't get technical with me.", character: "C-3PO"}
	{quote: "Let the Wookiee win.", character: "C-3PO"}
	{quote: "Sir, the possibility of successfully navigating an asteroid field is approximately 3,720 to 1.", character: "C-3PO"}
	{quote: "We're doomed.", character: "C-3PO"}
	{quote: "All too easy.", character: "Darth Vader"}
	{quote: "I find your lack of faith disturbing.", character: "Darth Vader"}
	{quote: "No. I am your Father.", character: "Darth Vader"}
	{quote: "Stay on target.", character: "Gold Five"}
	{quote: "Great, kid. Don't get cocky.", character: "Han Solo"}
	{quote: "Laugh it up, fuzzball.", character: "Han Solo"}
	{quote: "Never tell me the odds.", character: "Han Solo"}
	{quote: "Traveling through hyperspace ain't like dusting crops, farm boy.", character: "Han Solo"}
	{quote: "If there's a bright center to the universe, you're on the planet that it's farthest from.", character: "Luke Skywalker"}
	{quote: "I have a very bad feeling about this.", character: "Luke Skywalker"}
	{quote: "There is good in him. I've felt it.", character: "Luke Skywalker"}
	{quote: "This is Red Five. I'm going in!", character: "Luke Skywalker"}
	{quote: "In my experience there is no such thing as luck.", character: "Obi-Wan Kenobi"}
	{quote: "Remember... the Force will be with you, always.", character: "Obi-Wan Kenobi"}
	{quote: "Your eyes can deceive you. Don't trust them.", character: "Obi-Wan Kenobi"}
	{quote: "Aren't you a little short for a stormtrooper?", character: "Princess Leia"}
	{quote: "Somebody has to save our skins.", character: "Princess Leia"}
	{quote: "Why you stuck-up, half-witted, scruffy-looking nerf-herder!", character: "Princess Leia"}
	{quote: "Your focus determines your reality.", character: "Qui-Gon Jinn"}
	{quote: "Do. Or do not. There is no try.", character: "Yoda"}
	{quote: "Once you start down the dark path, forever will it dominate your destiny.", character: "Yoda"}

generateQuote = ->
	randomQuote = quotes[Math.floor(Math.random() * quotes.length)]
	if randomQuote.quote.length + randomQuote.character.length > 97
		$('.quote').text randomQuote.quote
		$('.character').text randomQuote.character
		said = randomQuote.quote.split(' ').join('%20')
		speaker = randomQuote.character.split(' ').join('%20')

$(document).ready ->
	$('.btn-force').on('click', ->
		$('.twitter').attr('href', '' + speaker + '%20said,%20"' + said + '"%20%23StarWars%20').attr('target', '_blank')