fix: reset does not make button pause into start
This commit is contained in:
parent
e73815c79b
commit
7df3f7f41c
1 changed files with 49 additions and 47 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue