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-fluid">
  <div class="row">
    <div class="well well-main">
       <h2>Please, Won't you be my Pomodoro?</h2>
      <div id="progress">
        <div id="progress-bar" class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="1" aria-valuemin="0" aria-valuemax="100"></div>
      </div>
      
      <div class="row center-block text-center">
        <input type="text" id="cti" value="Time Left 25:00"></input>
      </div>
    <div class="row center-block text-center" id="toggle"> 
      <label class="title">Start/Stop</label><br/>
      <input type="checkbox" checked data-toggle="toggle" id="power"></input>
  </div>
  <div class="row text-center center-block">
    <label class='title'>Pomodoro Time: (Minutes)</label><label class="title">Break Time: (Minutes)</label><br/><br/>
    <input type='text' id='pomTime' class="text-right" value="25"></input>
  <input type='text' id='brkTime' value="5"></input>
  </div>
  <div class="row center-block text-center" id='buttons'>
    <button class='btn btn-primary set-btn' onClick='javascript:setTimePom()'>Set Pomodoro</button>
    <button class='btn btn-primary set-btn' onClick='javascript:setTimePom()'>Set Break</button>
  </div>
      
      
            
          
!
            
              body{
  background-color: #000;
  background-image:url('https://blog.futoncompany.co.uk/wp-content/uploads/2014/10/clock_vintage_black_white_freewallpaper1.jpg');
  background-repeat: no-repeat;  
}
@import 'https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap'
.well{
  background-color:#fff;
}
input#power{
  margin-top:25px;
  height:45px;
  width:45px;
}

h2{
  text-align:center;
}
#brkTime{
  margin-top: 25px;
  background-color: rgba(1,1,1,0.0);
  height: 75px;
  width:250px;
  border-color: #fff;
  border-top:none;
  border-right:none;
  border-radius:10px;
  border-width:10px;
  font-size:25pt;
}
.title{
  margin-top:50px;
  margin-left:40px;
  margin-right:55px;
  font-size: 16pt;
}

#pomTime{
  margin-top: 25px;
  background-color: rgba(1,1,1,0.0);
  height: 75px;
  width:250px;
  border-top:none;
  border-left:none;
  border-radius:10px;
  border-width:10px;
  font-size:25pt;
}
#cti{
  margin-top: 25px;
  background-color: rgba(1,1,1,0.0);
  height: 75px;
  width:450px;
  margin-bottom:50px;
  border-top:70px;
  border-left:none;
  border-radius:10px;
  border-width:10px;
  font-size:45pt;
}

.set-btn{
  margin-top:25px;
  font-size: 25pt;
}
#progress{
  height: 55px;
  background-color: grey;
  border: 2px dashed #CCC;
  width: 650px;
  margin-left:25px;
  margin-top:25px;
  margin-right:50px;
}
#progress-bar{
  width:5px;
  height:50px;
  width: 645px;
  position:absolute;
  margin-bottom: 40px;
}
.well-main{
  color:#fff;
  background-color:rgba(155,155,155,0.7);
  margin-left:20%;
  margin-top: 50px;
  width: 750px;
  padding: 20px;
  height: 750px;
  border-style:solid;
  border-color:#fff;
  border-width:10px;
  border-radius:50px;
}
            
          
!
            
              $(function(){
  $('#power').bootstrapToggle({ on: 'Started', off:"Stopped"});
});

function move(){
  var elem = document.getElementById('progress-bar');
  var width = 1;
  var id = setInterval(function(){
    if(width >= 645){
      clearInterval(id);
    } else{
      width++;
      elem.style.width = width + 'px';
    }
  }, 0)
}
$(document).load(move());
/*$(document).load(function(){
  var context = document.getElementById('timer').getContext('2d');
  var fill = 0;
  var start = 4.72;
  var cw = context.canvas.width;
  var ch = context.vanvas.height;
  function progressSim(){
    diff = ((al/100)*Math.PI*2*10).toFixed(2);
    contect.clearRect(0,0,cw, ch);
    context.lineWidth=30;
    context.fillStyle = '#00F';
    context.strokeStyle = '#00f';
    context.textAlign = 'center';
    context.fillText(al,cw*.5,ch*.5,cw);
    context.beginPath();
    context.arc(35,35,35,start, diff/10+start,false );
    context.stroke();
    al++;
  }
  var sim = setInterval(progressSim, 50);
});*/
            
          
!
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