MCPcopy Create free account
hub / github.com/codemistic/Web-Development / runTheClock

Function runTheClock

Clock/script.js:14–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12let minPosition = (min*360/60)+(sec*(360/60)/60);
13let secPosition = sec*360/60;
14function runTheClock() {
15 hrPosition = hrPosition + (30/360);
16 minPosition = minPosition + (6/60);
17 secPosition = secPosition + 6;
18
19 HOURHAND.style.transform = "rotate(" + hrPosition + "deg)";
20 MINUTEHAND.style.transform = "rotate(" + minPosition + "deg)";
21 SECONDHAND.style.transform = "rotate(" + secPosition + "deg)";
22}
23
24var interval = setInterval(runTheClock, 1000);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected