+-1 minute (from 5 mins)
All checks were successful
Publish Package / build (push) Successful in 9s

Signed-off-by: Weetile <weetile@noreply.localhost>
This commit is contained in:
Weetile 2025-03-13 22:16:28 +00:00
parent ba4047256b
commit fcec6ca1e5

View File

@ -384,8 +384,8 @@
<div class="timer-controls">
<button id="start-pause">START</button>
<button id="reset" class="reset">RESET</button>
<button id="add-time">+5 MIN</button>
<button id="remove-time">-5 MIN</button>
<button id="add-time">+1 MIN</button>
<button id="remove-time">-1 MIN</button>
</div>
</div>
</div>
@ -540,14 +540,14 @@
// Add 5 minutes to the timer
function addTime() {
timeRemaining += 5 * 60; // Add 5 minutes
timeRemaining += 1 * 60; // Add 1 minute
updateTimerDisplay();
}
// Remove 5 minutes from the timer
function removeTime() {
if (timeRemaining > 5 * 60) {
timeRemaining -= 5 * 60; // Remove 5 minutes
if (timeRemaining > 1 * 60) {
timeRemaining -= 1 * 60; // Remove 1 minute
} else {
timeRemaining = 0;
}