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

Function stepUp

assets/js/ludo.js:92–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 currPos++;
91}
92function stepUp() {
93 var doc = document.getElementById(currpawn);
94 var curr = Number(doc.style.top.replace(/[a-z]/g, ''));
95 doc.style.top = (curr - step) + 'px';
96 currPos++;
97}
98function stepLeft() {
99 var doc = document.getElementById(currpawn);
100 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