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.

              <!--A Javascript/jQuery app using APIs-->

  <div class="container">
    <div id="quoteContainer">
      <div class="quote"> Right now. </div>
    </div> <!-- end quoteContainer -->
    <div id = "buttonContainer">
      <a id="getQuote">
  <!-- Twitter was a great documentation on it's tweet button:
I didn't end up using their button, if I did, I would need to add the js documentation
  <script async src="//" charset="utf-8"> </script>
  <!-- I would reconsider using 'onclick' and 'open.window' in the future to create a function that would open in a new window. -->
  <!-- target="_blank" to create a new page-->
  <a id= 'tweet' target="_blank"  href="" > write on!
     <div>   <!-- end buttonContainer -->
</div> <!-- end container -->  
              @import url('|Roboto');

body {
  font-family: 'Roboto', sans-serif;
  /* create a flex layout container */
  display: flex; /* block or inline */
  /* Then we define the flow direction and if we allow the items to wrap 
   * Remember this is the same as:
   * flex-direction: row;
   * flex-wrap: wrap;
  flex-flow: row wrap;
  /* Then we define how is distributed the remaining space */
  justify-content: center; /*or space-around*/
  background-image: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%);;

/* dimensions, borders, padding, margin */
  width: 40%;
  border: 1px gray;
  border-style: solid hidden;
  margin-top: 5%;
  float: center;
  padding: 10px 0px;

h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;

.quote {
  font-family: 'Merriweather', serif;
  font-size: 32px;
  color: #03f;
  text-align: left;
  margin: -10px 0px 1px 0px;

#buttonContainer {
  float: right;
/* add buttonContainer formatting */
a:link, a:visited {
    color: black;
    padding: 14px 25px;
    text-align: right;
    text-decoration: none;
    display: inline-block;

a:hover, a:active {
  color: white;

/* resources:*/

  $('#getQuote').on('click', function() {
     var randomNumber = Math.floor(Math.random()* (124));

  $.getJSON("", function(data) {
  var newQuote = data.feed.entry[randomNumber]['gsx$prompts']['$t'];
   $('#tweet').on('click', function() {
  $('#tweet').attr('href',''+ newQuote + '&tw_p=tweetbutton&url=%20&via=acertz');
🕑 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.