Pomodoro clocking

Developer
Size
2,409 Kb
Views
24,288

How do I make an pomodoro clocking?

What is a pomodoro clocking? How do you make a pomodoro clocking? This script and codes were developed by Hantz Pierre on 07 September 2022, Wednesday.

Pomodoro clocking Previews

Pomodoro clocking - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>pomodoro clocking</title> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<body> <div class="container app"> <div class="row"> <div class="col-md-12 text-center"> <h2 class="name-tag">Pomodoro Clock</h2> </div> </div> <div class="row text-center"> <div class="col-xs-6 controls "> <h4>Break Length</h4> <div class="btn-group"> <div class="btn btn-default btn-lg switchDeduceBreak" onclick="deduceBreakTime()">-</div> <div class="btn btn-lg" id="timer-break">5</div> <div class="btn btn-default btn-lg switchAddBreak" onclick="addBreakTime()">+</div> </div> </div> <div class="col-xs-6 controls"> <h4>Session Length</h4> <div class="btn-group"> <div class="btn btn-default btn-lg switchDeduceSession" onclick="deduceSessionTime()">-</div> <div id="timer-session" class="btn btn-lg">25</div> <div class="btn btn-default btn-lg switchAddSession" onclick="addSessionTime()">+</div> </div> </div> </div> <div class="row"> <div class="col-xs-12"> <div class="countdown-clock"> <div class="countdown-timer"> <h2>Current Session</h2> <h3 id="timeLeft">25</h3> </div> </div> </div> </div> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script src="script.js"></script>
</body> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Pomodoro clocking - Script Codes CSS Codes

body { background-color: #292F36; color: #14CC60; font-family: 'Work Sans', sans-serif;
}
.app { background-color: white; padding: 20px; margin: 20px auto; border-left: 4px solid slategray;
}
.countdown-clock { border: 2px solid black; width: 400px; height: 400px; border-radius: 400px; margin: 50px auto;
}
.controls { margin: 10px auto;
}
.countdown-timer { text-align: center; margin-top: 120px;
}
#timeLeft { font-size: 6em; text-align: center;
}

Pomodoro clocking - Script Codes JS Codes

var sessionLength = 25;
var breakLength = 5;
function addSessionTime (){ sessionLength += 1; $("#timer-session").text(sessionLength); // session time default var sessionLength = 25 $("#timeLeft").text(sessionLength); // time left
}
function deduceSessionTime(){ if (sessionLength > 1){ sessionLength -= 1; } else { sessionLength = 1; } $("#timer-session").text(sessionLength); $("#timeLeft").text(sessionLength);
}
function deduceBreakTime() { if (breakLength > 1){ breakLength -= 1; } else { breakLength = 1; } $("#timer-break").text(breakLength);
}
function addBreakTime(){ breakLength += 1; $("#timer-break").text(breakLength);
}
function startTimer() { seconds = 0; countDown(sessionLength, seconds);
}
Pomodoro clocking - Script Codes
Pomodoro clocking - Script Codes
Home Page Home
Developer Hantz Pierre
Username universe360
Uploaded September 07, 2022
Rating 3
Size 2,409 Kb
Views 24,288
Do you need developer help for Pomodoro clocking?

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!

Hantz Pierre (universe360) 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!