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

Function stepDown

assets/js/ludo.js:86–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 }
85}
86function stepDown() {
87 var doc = document.getElementById(currcolor + "pawn" + NumOfPaw);
88 var curr = Number(doc.style.top.replace(/[a-z]/g, ''));
89 doc.style.top = (curr + step) + 'px';
90 currPos++;
91}
92function stepUp() {
93 var doc = document.getElementById(currpawn);
94 var curr = Number(doc.style.top.replace(/[a-z]/g, ''));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected