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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.

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 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');