Pomodoro 1 timer
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 - 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();
Developer | Codoer |
Username | c0d0er |
Uploaded | December 07, 2022 |
Rating | 3 |
Size | 2,589 Kb |
Views | 8,096 |
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!
Name | Size |
Pomodoro Clock | 3,279 Kb |
Visualize Data with a Heat Map | 6,445 Kb |
Calculator | 3,530 Kb |
Pomodoro positions | 2,182 Kb |
Nikola Tesla Tribute Page | 3,263 Kb |
Twitch TV App | 3,530 Kb |
React Camper Leaderboard | 5,258 Kb |
Wikipedia Viewer | 2,811 Kb |
Perseverance Portfolio | 2,756 Kb |
Game of Life | 7,462 Kb |
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!
Name | Username | Size |
NeeilTimer | Neeilan | 2,836 Kb |
ECharts Version 3.0 - Bar Marker Chart | WebCodePro | 2,726 Kb |
Wavy Road with Dashes | Jonobr1 | 2,679 Kb |
TheCalendar.js | The-teacher | 6,330 Kb |
Border image | JohnRiordan | 2,120 Kb |
Sitemap generator for Sharepoint | Gyusza | 2,518 Kb |
JQuery exercise | Brian-baum | 3,780 Kb |
Project MMetro beta | Atomicsong | 5,157 Kb |
Single element checkbox | Ivijaygupta | 1,996 Kb |
A Pen by Moeid Saleem | Moeidsaleem | 1,862 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!