Skip to content

Commit

Permalink
maze: Allow console loading of mazes for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Jul 1, 2024
1 parent f6d9628 commit cb48119
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions maze.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit cb48119

Please sign in to comment.