cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              <div class="surrounding">
  <div class="container">
    <div class="title">Random Stone Roses Quote Machine</div><br>
    <div class="quote"></div><br>
    <button class="btn btn-default" id="newQuoteButton">New Quote</button>
    <br><br>
    <div class="tweet"></div><br>
  </div>
</div>
            
          
!
            
              .html {
  background-image: url('https://i.imgur.com/S7xTt1e.jpg');
}

.surrounding {
  background-image: url('https://i.imgur.com/S7xTt1e.jpg');
}

.container {
  font-family: Verdana;
}

.title {
  font-size: 29px;
}

.item {
  font-size: 16px;
}

.author {
  font-size: 20px;
  font-style: Bold;
}

a.twitter-share-button,
a.twitter-mention-button,
a.twitter-hashtag-button {
  display: inline-block;
  padding: 1px 3px 0 19px;
  border: #ccc solid 1px;
  border-radius: 3px;
  background: #f8f8f8 url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNy4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9F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gsOSw0OS4xODIsOWMtNy4yMjksMC0xMy4wOTIsNS44NjEtMTMuMDkyLDEzLjA5M2MwLDEuMDI2LDAuMTE4LDIuMDIxLDAuMzM4LDIuOTgxDQoJYy0xMC44ODUtMC41NDgtMjAuNTI4LTUuNzU3LTI2Ljk4Ny0xMy42NzljLTEuMTI2LDEuOTM2LTEuNzcxLDQuMTg0LTEuNzcxLDYuNTgxYzAsNC41NDIsMi4zMTIsOC41NTEsNS44MjQsMTAuODk4DQoJYy0yLjE0Ni0wLjA2OS00LjE2NS0wLjY1Ny01LjkzLTEuNjM4Yy0wLjAwMiwwLjA1NS0wLjAwMiwwLjExLTAuMDAyLDAuMTYyYzAsNi4zNDUsNC41MTMsMTEuNjM4LDEwLjUwNCwxMi44NA0KCWMtMS4xMDEsMC4yOTgtMi4yNTYsMC40NTctMy40NDksMC40NTdjLTAuODQ2LDAtMS42NjctMC4wNzgtMi40NjUtMC4yMzFjMS42NjcsNS4yLDYuNDk5LDguOTg2LDEyLjIzLDkuMDkNCgljLTQuNDgyLDMuNTEyLTEwLjEyOSw1LjYwNi0xNi4yNiw1LjYwNmMtMS4wNTUsMC0yLjA5Ni0wLjA2MS0zLjEyMi0wLjE4NGM1Ljc5NCwzLjcxNywxMi42NzYsNS44ODIsMjAuMDY3LDUuODgyDQoJYzI0LjA4MywwLDM3LjI1MS0xOS45NDksMzcuMjUxLTM3LjI0OWMwLTAuNTY2LTAuMDE0LTEuMTM0LTAuMDM5LTEuNjk0QzY0LjgzOCwyMC4wNjgsNjcuMDU4LDE3Ljc2NSw2OC44MTIsMTUuMTQxeiIvPg0KPC9zdmc+DQo=") 2px 3px no-repeat, linear-gradient(#fff, #dedede);
  background-size: 16px 13px, auto auto;
  /* Text */
  font: bold 11px/17px Helvetica, Arial, sans-serif;
  text-decoration: none;
  color: #333;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  white-space: nowrap;
}


/* Color Highlight for keyboard navigation */

a.twitter-share-button:focus,
a.twitter-mention-button:focus,
a.twitter-hashtag-button:focus {
  outline: none;
  border-color: #0089cb;
}
            
          
!
            
              var quotes = [
    ["You'd be sick if you saw my adidas collection...you would be physically sick if you saw it. I'm not gonna say where it is.", "Ian Brown"],
    ["There's more chance of me reforming the Happy Mondays than the Stones.", "Ian Brown"],
    ["No wonder that LP [The Stone Roses] sounds so mellow and laidback. We were constantly stoned to f***. Hot knives and trips were the order of the day.", "Mani"],
    ["British empire? A bunch of public schoolboys playing about", "John Squire"],
["I hate Blur, Oasis are just repeating themselves with every song, Pulp are a bunch of pussies. There's a lot of people getting away with it at the moment, put it that way.", "Mani"],
    ["They don't deserve us. We'll go anywhere really, but America doesn't really deserve us, they're fuckin wankers.", "Mani"],
    ["No-one ever votes Tory, do they?.", "Ian Brown"],
    ["When Man City wins the cup and a UFO is gonna hover over Wembley and beam down Elvis riding a unicorn with a letter written in John Squire's blood saying I'm sorry, Ian", "Mani"]
    $("#newQuoteButton").click(function() {
      var random = Math.floor(Math.random() * quotes.length);
      var item = quotes[random][0];
      var author = quotes[random][1]
      var tweetText = '"https://twitter.com/intent/tweet?text=' + item.replace(/\%20/g, ' ') + ' - ' + author.replace(/\%20/g, ' ') + '"'
      $(".quote").html("<p class='item'>" + item + "</p><br><p class='author'>" + author + "</p>");
      $(".tweet").html('<a class="twitter-share-button" href=' + tweetText + '>Tweet</a>');
    });
            
          
!
999px
Loading ..................

Console