Skip to content

Commit

Permalink
stuff and things!
Browse files Browse the repository at this point in the history
  • Loading branch information
deebloodd committed May 25, 2023
1 parent 854fdc9 commit dd9bc6e
Show file tree
Hide file tree
Showing 9 changed files with 88 additions and 653 deletions.
14 changes: 6 additions & 8 deletions local.html → dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
<script type="importmap">
{
"imports": {
"tslib": "./node_modules/tslib/tslib.es6.js"
"tslib": "./node_modules/tslib/tslib.es6.js",
"@joist/di": "./node_modules/@joist/di/target/lib.js",
"@joist/element": "./node_modules/@joist/element/target/lib.js",
"@joist/observable": "./node_modules/@joist/observable/target/lib.js"
}
}
</script>
Expand All @@ -37,13 +40,8 @@
const board = document.querySelector("go-board");
const url = new URL(window.location);

if (url.searchParams.has("coords")) {
board.setAttribute("coords", "");
}

if (url.searchParams.has("debug")) {
board.setAttribute("debug", "");
}
board.coords = url.searchParams.has("coords");
board.debug = url.searchParams.has("debug");

if (url.searchParams.has("ogsid")) {
const ogsid = url.searchParams.get("ogsid");
Expand Down

0 comments on commit dd9bc6e

Please sign in to comment.