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>
<h2 id="type">focus</h2>
<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>
<div style="margin-bottom: 20px;"></div>
</div>
@ -117,6 +117,8 @@
function reset()
{
buttonStartPause.innerHTML = "start";
clearInterval(timerInterval);
isRunning = false;
isFocusSession = true;