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

Function stepLeft

assets/js/ludo.js:98–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 currPos++;
97}
98function stepLeft() {
99 var doc = document.getElementById(currpawn);
100 var curr = Number(doc.style.left.replace(/[a-z]/g, ''));
101 doc.style.left = (curr - step) + 'px';
102 currPos++;
103}
104function stepRight() {
105 var doc = document.getElementById(currpawn);
106 var curr = Number(doc.style.left.replace(/[a-z]/g, ''));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected