From cb4811934d48f880bafe5f5b79806671f494e175 Mon Sep 17 00:00:00 2001 From: Chris Angelico Date: Mon, 1 Jul 2024 10:22:51 +1000 Subject: [PATCH] maze: Allow console loading of mazes for debugging --- maze.js | 1 + 1 file changed, 1 insertion(+) diff --git a/maze.js b/maze.js index 7df04b5..465728c 100644 --- a/maze.js +++ b/maze.js @@ -220,6 +220,7 @@ window.draw = (url) => { DOM("#draw").hidden = false; if (url) document.body.appendChild(choc.STYLE(".grid {background: url(" + url + "); background-size: contain; background-repeat: no-repeat;")); }; +window.load = decode_token; let lastmark = null; on("mousedown", ".grid div", e => mark(+e.match.dataset.r, +e.match.dataset.c));