MCPcopy
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / getTemplate

Function getTemplate

assets/js/rubiks_cube.js:1279–1285  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1277 var M_MOVE = (isTouch) ? 'touchmove' : 'mousemove';
1278
1279 function getTemplate(id) {
1280 var ele = doc.getElementById('template-' + id);
1281 if (ele) {
1282 return ele.innerHTML;
1283 }
1284 return '';
1285 }
1286
1287 /**
1288 * Get current axis direction.

Callers 1

rubiks_cube.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected