MCPcopy Create free account
hub / github.com/HeyHeyChicken/No-Clock / initNotificationGrid

Function initNotificationGrid

public/js/script.js:725–733  ·  view source on GitHub ↗

* This function initializes the notification grid. It can also be used to reset the grid.

()

Source from the content-addressed store, hash-verified

723 * This function initializes the notification grid. It can also be used to reset the grid.
724 */
725 initNotificationGrid() {
726 this.notification_grid = new Array(this.notification_grid_height);
727 for (let y = 0; y < this.notification_grid_height; y++) {
728 this.notification_grid[y] = new Array(this.notification_grid_width);
729 for (let x = 0; x < this.notification_grid_width; x++) {
730 this.notification_grid[y][x] = "(0,0,0)";
731 }
732 }
733 },
734
735 /**
736 * This function is executed each time the screen is resized.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected