Signed-off-by: Weetile <weetile@noreply.localhost>
This commit is contained in:
parent
ba4047256b
commit
fcec6ca1e5
10
index.html
10
index.html
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user