Pomodoro Timer
How do I make an pomodoro timer?
What is a pomodoro timer? How do you make a pomodoro timer? This script and codes were developed by Rostislav Ugrynyuk on 26 December 2022, Monday.
Pomodoro Timer - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pomodoro Timer</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Pomodoro Timer</h1>
<div class="container" ng-app="PomodoroTimerApp" ng-controller="TimerCtrl"> <div class="session"> <div class="breakCtrl"> <p>break length</p> <button ng-click="breakLengthChange(-1)" class="minus">-</button><span class="time">{{breakLength}}</span> <button ng-click="breakLengthChange(1)" class="plus">+</button> </div> <div class="sessionCtrl"> <p>session length</p> <button ng-click="sessionLengthChange(-1)" class="minus">-</button><span class="time">{{sessionLength}}</span> <button ng-click="sessionLengthChange(1)" class="plus">+</button> </div> </div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.3/angular.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Pomodoro Timer - Script Codes CSS Codes
body { background-color: #333333; height: 100%; color: #fff; text-align: center; font-size: 16px;
}
.inline { display: inline-block;
}
.session .minus,
.session .plus { background-color: #333333; color: #fff; border: none; cursor: pointer; font-size: 2em; outline: none;
}
Pomodoro Timer - Script Codes JS Codes
var app = angular.module('PomodoroTimerApp', []);
app.controller('TimerCtrl', function($scope, $interval){ $scope.breakLength = 5; $scope.sessionLength = 25; $scope.timeLeft = $scope.sessionLength; $scope.fillHeight = '0%'; $scope.sessionName = 'Session'; $scope.currentTotal; $scope.breakLengthChange = function(n){ $scope.breakLength += n; if($scope.breakLength < 0){ $scope.breakLength = 0; } }
});
Developer | Rostislav Ugrynyuk |
Username | ugross |
Uploaded | December 26, 2022 |
Rating | 3 |
Size | 2,388 Kb |
Views | 10,120 |
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 |
Simple CSS Pricing Table | 2,166 Kb |
A Pen by Rostislav Ugrynyuk | 2,462 Kb |
Simple article cards | 2,777 Kb |
Scroll Down Animation | 1,857 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 |
Scroll effect with text with help from Skrollr | Luxonglassing | 2,935 Kb |
Gradient-ui-button-mark-fx | Tabspace | 1,881 Kb |
Haml Calendar | Katydecorah | 5,643 Kb |
A Pen by Moeid Saleem | Moeidsaleem | 1,862 Kb |
Easing | GreenSock | 2,043 Kb |
Popover Example | Seanboom | 2,429 Kb |
Zeichensatz | Moklick | 2,058 Kb |
Nested flexbox layout for library catalog | Boycetrus | 3,271 Kb |
Wikipedia viewer | Chpecson | 2,865 Kb |
Flex layout example | Mofny | 1,663 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!