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">
|
<div class="timer-controls">
|
||||||
<button id="start-pause">START</button>
|
<button id="start-pause">START</button>
|
||||||
<button id="reset" class="reset">RESET</button>
|
<button id="reset" class="reset">RESET</button>
|
||||||
<button id="add-time">+5 MIN</button>
|
<button id="add-time">+1 MIN</button>
|
||||||
<button id="remove-time">-5 MIN</button>
|
<button id="remove-time">-1 MIN</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -540,14 +540,14 @@
|
|||||||
|
|
||||||
// Add 5 minutes to the timer
|
// Add 5 minutes to the timer
|
||||||
function addTime() {
|
function addTime() {
|
||||||
timeRemaining += 5 * 60; // Add 5 minutes
|
timeRemaining += 1 * 60; // Add 1 minute
|
||||||
updateTimerDisplay();
|
updateTimerDisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove 5 minutes from the timer
|
// Remove 5 minutes from the timer
|
||||||
function removeTime() {
|
function removeTime() {
|
||||||
if (timeRemaining > 5 * 60) {
|
if (timeRemaining > 1 * 60) {
|
||||||
timeRemaining -= 5 * 60; // Remove 5 minutes
|
timeRemaining -= 1 * 60; // Remove 1 minute
|
||||||
} else {
|
} else {
|
||||||
timeRemaining = 0;
|
timeRemaining = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user