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.


                <script src=""></script>
<link rel="stylesheet" href="" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous" />
<div class="column">
  <div id="quote-box">
    <h4 id='text'><input id="defaultText" value="firstQuote()"></h4>
    <p id='author'><input id="defaultAuthor" value="firstQuote()"></p>

      <button onclick="newQuote()" id="new-quote">Tap for Quote</button>

      <a id="tweet-quote" href="">Post it</a>
    <h5 id="about">It's a freeCodeCamp project, check out <a href=""></a>.</h5>
    <p id="about">
      freeCodeCamp is a code learning platform.</p>

    #quote-box {
      background-color: rgb(10, 50, 101);

    #tweet-quote {
      position: relative;
      left: -70vh;
      top: 20vh;
      border: 10px solid blue;
      border-radius: 20px;
      background-color: blue;
      padding: 1vh 20px;
      color: rgb(1, 255, 100);
      font-size: 5vh;
      text-shadow: 1px 1px 1px rgb(1, 50, 255), 0px 0px 5px rgb(1, 50, 255), -1px -1px 1px rgb(1, 50, 255), 0px 0px 5px rgb(1, 50, 255), 0px 0px 5px rgb(1, 50, 255);
      display: inline-block;

    #about {
      color: orange;
      font-size: 15px;
      text-align: right;


                #quote-box {
  text-align: center;
  padding: 50vh;
  background-color: rgb(10, 50, 100);
#text {
  border: 5px solid black;
  font-size: 20px;
  color: white;

#author {
  color: hotpink;
  font-size: 20px;
  text-shadow: 0px 0px 10px black, 0px 0px 2px white;
#new-quote {
  background-color: rgb(1, 255, 50);
  border: 10px solid rgb(10, 200, 2);
  color: rgb(1, 1, 155);
  padding: 15px 32px;
  text-align: center;
  border-radius: 10vh;
  text-decoration: none;
  display: inline-block;
  font-size: 10vh;



                function mathR(min, max) {
  return Math.random() * (max - min) + min;

let newMemeQuote = [
  "I eat breakfast at dinner.",
  "I walk my dog on the beach.",
  "I just dropped my phone in the subway.",
  "My profit just doubled.",
  "I took a vacation 5 years ago.",
  "How dare you!",
  "Can I have some pizza please!.",
  "What kind?",
  "When is it going to rain?",
  "I just won $5 Billion!"
let name = [
  "Bad Loser",
  "Din mamma",
  "Greta Thunberg",
  "Pink Guy",
  "Pizza Guy",
  "My brain",

// new quote for u!
function newQuote() {
  let randomNumber = mathR(0, newMemeQuote.length - 1);
  randomNumber = Math.round(randomNumber);
  console.log("randomNumber =", randomNumber);
  document.getElementById("text").innerHTML = newMemeQuote[randomNumber];
  document.getElementById("author").innerHTML = name[randomNumber];
function firstQuote() {
  document.getElementById("defaultText").value = newMemeQuote[randomNumber];
  document.getElementById("defaultAuthor").value = name[randomNumber];