MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / stop

Function stop

assets/js/StopWatch.js:30–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }
29}
30function stop() {
31 clearInterval(timer);
32 timer = false;
33
34 document.getElementById("start").classList.remove("hidden");
35 document.getElementById("stop").classList.add("hidden");
36 document.getElementById("lap").classList.add("hidden");
37 document.getElementById('reset').classList.remove('hidden');
38}
39function reset() {
40 ms = 0;
41 s = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected