Skip to content

Commit

Permalink
changed pause to stop
Browse files Browse the repository at this point in the history
  • Loading branch information
kmr18006 committed Mar 28, 2024
1 parent d0e6484 commit 346fdc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions week-10/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>00:00</h1>
btn.addEventListener('click', function() {
if (btn.innerText === "Start") {
timer = setInterval(updateStopwatch, 1000);
btn.innerText = "Pause";
btn.innerText = "Stop";

} else {
clearInterval(timer);
Expand All @@ -47,7 +47,7 @@ <h1>00:00</h1>
minutes = 0;
displayTime();

if (btn.innerText === "Pause") {
if (btn.innerText === "Stop") {
btn.innerText = "Start";

}
Expand Down

0 comments on commit 346fdc5

Please sign in to comment.