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

Function start

assets/js/StopWatch.js:8–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6let lapsContainer = document.querySelector(".laps");
7
8function start() {
9 if (!timer) {
10 timer = setInterval(run, 10);
11 }
12 document.getElementById("start").classList.add("hidden");
13 document.getElementById("stop").classList.remove("hidden");
14 document.getElementById("lap").classList.remove("hidden");
15 document.getElementById('reset').classList.add('hidden');
16 document.getElementById('resetlaps').classList.add("hidden");
17}
18function run() {
19 stopwatchEl.textContent = getTimer();
20 ms++;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected