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

Function showDesign

assets/js/makeMatchGame.js:359–378  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

357};
358
359function showDesign(event)
360{
361 while(j==1)
362 {
363 d1=parseInt(Date.now());
364 j=0;
365 }
366 box=event.target;
367 let x=box.childNodes[0];
368 if(x.style.visibility==="hidden"){
369 x.style.visibility="visible";
370 box.setAttribute('a','1');
371 counter.push(box);
372 l=counter.length;
373 }
374 setTimeout(() => {if(match==2&&l==2)
375 check(counter);
376 if(match==4&& l==4)
377 check(counter);}, 300);
378};
379function check(counter){
380 document.getElementById("mov").innerHTML = " "+(++moves);
381

Callers

nothing calls this directly

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected