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

Function deletePixels

assets/js/pixels.js:28–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27// Delete remaining pixels after game is over
28function deletePixels() {
29
30 let pixels = document.querySelectorAll('.pixel');
31 for(let i =0; i< pixels.length; i++)
32 {
33 pixels[i].classList.add('clicked');
34 pixels[i].remove();
35 }
36}
37
38// Function to handle pixel creating and related events
39function Pixel(interval1, interval2) {

Callers 1

PixelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected