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

Function start

assets/js/car.js:3–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1m = 0;
2var y;
3function start() {
4 y = setInterval(run, 10);
5
6 function run() {
7 if (m == 1570) {
8 clearInterval(y);
9 m = 0;
10 }
11 else {
12 m += 5;
13 var x = document.getElementById("img");
14 x.style.marginLeft = m + 'px';
15 }
16
17 }
18}
19
20
21function stop() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected