css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
              <div class="container">
  <div class="nav">
    <h1>FreeCodeCamp <i class="ion-bonfire"></i> </h1>
    <h2>CamperGuide <i class="ion-bonfire hidden"></i></h2></div>
  <form class="primary" style="display:none;">
    <ul>
     
    </ul>
  </form>
  <form class="secondary">
    <div id="showQuestion">
   
    </div>
  
       <button class="refresh" style="display:none;">Refresh <i class="ion-refresh"></i></button>
<button class="continue">Start</button>
<a href="#">
    <button class="contribute" style="display:none;">
        Contribute <i class="ion-plus"></i>
    </button>
</a>
<a href="https://gitter.im/FreeCodeCamp/LetsPair">
    <button class="pair" style="display:none;">Let's Pair</button>
</a>
     </form>
  

  <div class="butwhy" style="background:#FFCF56; color:#444;">
CamperGuide is a habit-building guide. I am using this as a productivity tool to help me stay focused on attaining a certification. The steps are really useful in pointing out common mistakes that are usually the culprit for either bad code or personal frustation.
<i class="ion-close-circled"></i></div>
<i class="ion-help-circled" style="display:none;"></i>
</div>
            
          
!
            
              /*********************************
               I D
*********************************/

#showQuestion {
  font-size: 2.5em;
  padding:15px 0;
}

.container{display:flex; flex-direction:column; justify-content:space-between; height:100%;}
/*********************************
      C O N T A I N E R S
*********************************/

body {
  margin: 0 auto;
  font-family: 'Quattrocento Sans', sans-serif;
  background: #EDEAD0;
  color: #333;

}

.nav {
  font-family: 'Oswald', sans-serif;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #FFCF56;
  height: 50px;

}

.primary {
  font-size: 1.2em;
}

.primary,
.secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 10px auto;
}


/*********************************
          B U T T O N S
*********************************/

button:focus,
button:active,
button:focus:active,
input:focus {
  background-image: none;
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}

button {
  width: 200px;
  height: 35px;
  margin: 3px;
  font-family: 'Quattrocento Sans', sans-serif;
  border: none;
  font-size: 1.3em;
  color: white;
}

h1,
h2,
button,
i {
  cursor: pointer;
}

.refresh {
  border: solid 2px #fd2750;
  color: #fd2750;
  background: inherit;
}

.continue {
  border: solid 2px #3AB795; 
  color:  #3AB795;
  background: inherit;
}

.pair {
  border: solid 2px #f68d42;
  color: #f68d42;
  background: inherit;
}

.contribute{
   border:solid 2px #333; color: #333; background:inherit;
}

.contribute:hover{background:#333; color:white;}
.refresh:hover{background: #fd2750; color:white;}
.pair:hover{background:#f68d42; color:white;}
.continue:hover{background:#3AB795; color:white;}


/******************************

******************************/

ul {
  background: rgba(250, 250, 250, .3);
  list-style-type: none;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  padding: 15px;
  margin: 5px auto;
  border: solid 1px #3AB795;
  height:100%;
}

li {
  color: #777;
  padding: 3px;
}

li i {
  color: #3AB795;
}


i.ion-close-circled, i.ion-help-circled {
  font-size: 1.75em;
  bottom: 0;
  right: 0;
  margin: 15px;
  position:absolute;
}


.butwhy {
  position: absolute;
  bottom: 0;
  padding: 25px 40px 25px 15px;
}

.hidden {
  visibility: hidden;
}


/*********************************
     M E D I A  Q U E R Y
*********************************/

@media (max-width: 500px) {
  h1 {
    display: none;
  }
  .hidden {
    visibility: visible;
  }

  .primary{font-size:.9em;}
 
  h1,
  .primary,
  .secondary,
  #showQuestion {
    margin: 0 auto;
  }
  
  .secondary{z-index:0;}

  #showQuestion{font-size:1.5em;}
}
            
          
!
            
              $(document).ready(function() {
  //Reference arrays and variables
  var checklist = [
  "Reread the instructions", "Checkout the comments", "Look at the console", "Look at the test/case", "Errors in the editor?",  "Read Documentation", "Ask for help from a peer", "Try pair programming"
  ];

  var questionIndex = 0;

  var $continueButton = $(".continue"),
    $contributebutton = $(".contribute"),
    $refreshButton = $(".refresh"),
    $pairButton = $(".pair");

  //Begin interactive form
  $continueButton.click(function(event) {
    event.preventDefault();

    // First click
    if (questionIndex === 0) {
      $(".primary").show();
      $refreshButton.show();
      $continueButton.html("Continue <i class='ion-arrow-right-c'></i>");
    }

    if (questionIndex <= checklist.length - 1) {
      var question = checklist[questionIndex];
      $("#showQuestion").text(question);
      $("ul").append("<li><i class='ion-ios-checkmark-outline'></i> " + question + "</li>");
    }

    // No more questions
    if (questionIndex >= checklist.length - 1) {
      $continueButton.hide();
      $contributebutton.show();
      $pairButton.show();
    }

    questionIndex++;
  });
   $(".ion-close-circled").click(function() {
    $(".butwhy").toggle();
    $(".ion-help-circled").show();
   });
  
  $(".ion-help-circled").click(function() {
    $(".butwhy").toggle();
    $(".ion-help-circled").hide();
   });
  
  $(".pair").click(function(){
    window.open("https://gitter.im/FreeCodeCamp/LetsPair",'_blank');
  });
  
/*   $(".contribute").click(function(){
    window.open("",'_blank');
  });
     $(".refresh").click(function(){
    window.open("",'_blank');
  });
  
  */
});
            
          
!
999px
🕑 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.
Loading ..................

Console