Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <!--bootstrap has nice class..called text-center...centers all of white text including buttons..-->
<div class="text-center">
  <h1>Build a Pomodoro Clock</h1>
  <h3>Free Code Camp Advanced Front End Projects </h3>
  <!--Set up a time div-will store the buttons and the input for the session time..we switched from class to id here so we will only use it one time-->
  <div id="timeDiv">
    <!--will let us know what the buttons are adding and subtracting to..  -->
    <h1 id="title1">Session Time</h1>
    <!--empty anchor tag below creates subtract button with -5 minutes on the session time...gave it a bootstrap class of btn btn-primary..gave it an id cause later on we r gonna target this id..-->
    <a href="#" class="btn btn-primary" id="minus5Clock">-</a>
    <h2 id="num">5</h2>
    <!--helps create + button-->
    <a href="#" class="btn btn-primary" id="add5Clock">+</a>
    <!--add a reset tag..this will be used to reset the values so that if we wanted to run pomodoro clock again, we can-->
    <a href="#" class ="btn btn-primary" id="reset">Reset</a>    
  </div>
  <div id="breakDiv">
    <!--will let us know what the buttons are adding and subtracting to..  -->
    <h1 id="title1">Break Time</h1>
    <!--empty anchor tag below creates subtract button with -5 minutes on the session time...gave it a bootstrap class of btn btn-primary..gave it an id cause later on we r gonna target this id..-->
    <a href="#" class="btn btn-primary" id="minus5Break">-</a>
    <h2 id="breakNum">5</h2>
    <!--helps create + button-->
    <a href="#" class="btn btn-primary" id="add5Break">+</a>
  </div>
  <!--create start button that will start anchor tag/logic/pomodoro clock.. -->
  <a href="#" class="btn btn-primary" id="start">Start</a>
</div>
              
            
!

CSS

              
                /*imported/using bootstrap!..we will use CSS/styling aspect to make project look pretty before getting started with our logic..*/
body{
  background-image: url("http://i65.photobucket.com/albums/h214/pxfighter/cnc/cnc2001cnc2400/cnc2001-b.jpg");
   background-repeat: no-repeat;
  /*background-size to 100percent switched backimage from more compressed squeezed before to fit/fill whole page..*/
  background-size: 100%;
  /*makes background image not move around compared to as if this wasn't here..*/
  background-attachment: fixed;
  /*makes all text appear as white..*/
  color: white;
  /*changes font style to make text look different..*/
  font-family: "Impact";
}
/*helps to make our buttons be inline like we want them to be..helps make each one of divs be inline...*/
h2 {/*am really confused on how this is doing what it is doing...??*/
  display:inline;/*brought each of divs inline..*/
}

#start{
  margin:10px; /*moves start button down/added some margin/space around it..margin=space outside something...padding=space inside something..*/
}


              
            
!

JS

              
                //used JQUERY-->so imported it..
//jQuery ready() Method
//Run Our JQuery...ready() to make a function available after the document is loaded..ready() method specifies what happens when a ready event occurs
$(document).ready(function(){
  
});
              
            
!
999px

Console