fix: reset does not make button pause into start

This commit is contained in:
tx 2025-07-04 17:32:31 +00:00
parent e73815c79b
commit 7df3f7f41c

View file

@ -48,7 +48,7 @@
<h3>pomodoro</h3> <h3>pomodoro</h3>
<h2 id="type">focus</h2> <h2 id="type">focus</h2>
<h1 id="timer">25:00</h1> <h1 id="timer">25:00</h1>
<button id="startpause" onclick="startpause()">pause</button> <button id="startpause" onclick="startpause()">start</button>
<button id="reset" onclick="reset()">reset</button> <button id="reset" onclick="reset()">reset</button>
<div style="margin-bottom: 20px;"></div> <div style="margin-bottom: 20px;"></div>
</div> </div>
@ -117,6 +117,8 @@
function reset() function reset()
{ {
buttonStartPause.innerHTML = "start";
clearInterval(timerInterval); clearInterval(timerInterval);
isRunning = false; isRunning = false;
isFocusSession = true; isFocusSession = true;