Pomodoro 1 timer

Developer
Size
2,589 Kb
Views
8,096

How do I make an pomodoro 1 timer?

What is a pomodoro 1 timer? How do you make a pomodoro 1 timer? This script and codes were developed by Codoer on 07 December 2022, Wednesday.

Pomodoro 1 timer Previews

Pomodoro 1 timer - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>pomodoro 1 timer</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class='container-fluid text-center'> <h1 class='title'>Pomodoro Clock</h1>
<div class='col-xs-12 col-sm-6 break'> <h3>BREAK</h3> <button class='br1 small'>-</button> <span class='time1'>1</span> <button class='br2 small'>+</button>
</div>
<div class='col-xs-12 col-sm-6 work'> <h3>WORK</h3> <button class='wo1 small'>-</button> <span class='time2'>2</span> <button class='wo2 small'>+</button> </div> <div class='timer'> <button class='bigcir'> <h1 class='status'></h3> <h1 class='start'>START WORK</h1> </button> </div> <div> <button class='last next'> <span class="small1 glyphicon glyphicon-fast-forward"></span> </button> <button class='last reset'> <span class="small1 glyphicon glyphicon-refresh"></span> </button> </div> </div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Pomodoro 1 timer - Script Codes CSS Codes

body
{
background-color: #2E2E2E;
background-size: cover;
}
button{ border:1px solid #ccc; outline:none; color: orangered;
}
button:active{ border:1px solid #000;
}
.small{ height: 50px; width: 50px; border-radius: 50%; font-size: 30px; margin-bottom:10px;
}
.small1{ font-size: 25px;
}
.bigcir{ height: 300px; width: 300px;
border-radius: 50%;
}
.title{ margin-top: 100px; font-size: 60px; font-weight: bold;
padding-top: 15px; padding-bottom: 20px; color: white;
}
.last{ margin: 50px 100px; height: 50px; width: 50px; border-radius: 50%;
}
.time1,
.time2 { display: inline-block; width: 60px; color: white; font-size: 25px;
}
.start{ color: orangered; font-size: 40px;
}
.status{ color: orangered; font-size: 60px;
}
h3{ color: white;
}

Pomodoro 1 timer - Script Codes JS Codes

function pomodoro(){ var alarm= new Audio('http://freesound.org/data/previews/269/269570_5126800-lq.mp3'),
breakTime=($('.time1').text())*60, workTime=($('.time2').text())*60, timerTime=($('.time2').text())*60, timerFlag=false, $start=$('.start'), $bigcir=$('.bigcir'), timer, m, s;
//countDown function: function countDown(){ timerTime--; m=parseInt(timerTime/60); s=timerTime%60; if(s<10){s='0'+s;}
$start.text(m+':'+s); if(timerTime===0){clearInterval(timer); alarm.play(); timerFlag=!timerFlag; if(timerFlag){$bigcir.click()}//this will automatically run both work and break time without any pause; without this line of code, it will stop when work time is 0, then need to click to start counting down break time. } } $bigcir.click(function(){ timerTime= (timerFlag) ? breakTime : workTime;
timer=setInterval(countDown,30); })
}
pomodoro();
Pomodoro 1 timer - Script Codes
Pomodoro 1 timer - Script Codes
Home Page Home
Developer Codoer
Username c0d0er
Uploaded December 07, 2022
Rating 3
Size 2,589 Kb
Views 8,096
Do you need developer help for Pomodoro 1 timer?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Codoer (c0d0er) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!