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 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.


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.


                <script src=""></script>
<div id="wrapper">
  <div id="quote-box">
    <div class="quote-text">
      <i class="fa fa-quote-left"> </i><span id="text"></span><i class="fa fa-quote-right"></i>
    <div class="quote-author">
      - <span id="author"></span>
    <div class="buttons">
      <a class="button" id="tweet-quote" href="" title="Tweet this if it inspires you!" target="_blank">
          <i class='fa fa-twitter'></i>
      <button class="button" id="new-quote">New Quote</button>
  <div class="footer"> Made by <a href="">Hermetheus</a></div>
<script src="" integrity="sha256-iT6Q9iMJYuQiMWNd9lDyBUStIq/8PuOW33aOqmvFpqI=" crossorigin="anonymous"></script>


Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 



* {
  margin: 0;
  padding: 0;
  list-style: none;
  vertical-align: baseline;
div {
  position: relative;
  z-index: 2;

body {
  background-color: #fb968a;
  font-family: "Krub", calibri;
  font-weight: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
.footer {
  width: 450;
  text-align: center;
  display: block;
  font-size: 1.2em;
  color: #a0c5c4;
  a {
    font-weight: 400;
    text-decoration: none;
    color: #a0c5c4;
#quote-box {
  border-radius: 3px;
  position: relative;
  width: 450px;
  padding: 40px 50px;
  display: table;
  background-color: #ffc3a0;
  .quote-text {
    i {
      font-size: 1em;
      margin-right: 0.4em;
    text-align: center;
    width: 450px;
    height: auto;
    clear: both;
    font-weight: 500;
    font-size: 1.75em;
  .quote-author {
    width: 450px;
    height: auto;
    clear: both;
    padding-top: 20px;
    font-size: 1em;
    text-align: right;
  .buttons {
    width: 450px;
    margin: auto;
    display: block;
    .button {
      height: 38px;
      border: none;
      border-radius: 3px;
      color: #ffc3a0;
      background-color: black;
      outline: none;
      font-size: 1.25em;
      padding: 8px 18px 6px 18px;
      margin-top: 30px;
      opacity: 1;
      cursor: pointer;
      &:hover {
        opacity: 0.9;
      &#tweet-quote {
        float: left;
        padding: 0px;
        padding-top: 8px;
        text-align: center;
        font-size: 1.2em;
        margin-right: 5px;
        height: 30px;
        width: 40px;
      &#new-quote {
        float: right;



                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 
$(document).ready(function() {

  var text;
  var author;
  function getNewQuote() {
      url: '',
        jsonp: 'jsonp',
        dataType: 'jsonp',
        data: {
        method: 'getQuote',
        lang: 'en',
        format: 'jsonp'
      success: function(response) {
        text = response.quoteText;
        author = response.quoteAuthor;
        if (author) {
          $('#author').text('said by ' + author);
        } else {
  $('#new-quote').on('click', function() {
  $('#tweet-quote').on("click",function() {""+ text + "Said by " + author + ".");