diff options
-rw-r--r-- | source/index.ts | 2 | ||||
-rw-r--r-- | views/disable.js | 5 | ||||
-rw-r--r-- | views/layout.pug | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/source/index.ts b/source/index.ts index 72d1185..7c2a61b 100644 --- a/source/index.ts +++ b/source/index.ts @@ -7,7 +7,7 @@ const app = new Application() const router = new Router() const renderEnv = { - commit: Deno.readTextFileSync("./.git/refs/heads/main").toString().substr(0, 8) + commit: Deno.readTextFileSync("./.git/refs/heads/main").toString().substring(0, 8) } const templates: Map<string, compileTemplate> = new Map() diff --git a/views/disable.js b/views/disable.js index 40b7f05..37f016c 100644 --- a/views/disable.js +++ b/views/disable.js @@ -1,9 +1,7 @@ - +// SPDX-License-Identifier: AGPL-3.0-only // This piece of javascript reminds you to disable javascript. - eval("") // make librejs block this window.onload = () => { - if (window.localStorage.getItem("blub")) return hide(true) const text = document.createElement("p") const link = document.createElement("a") @@ -11,7 +9,6 @@ window.onload = () => { link.textContent = "Continue anyway" link.href = "#" link.addEventListener("click", () => { - window.localStorage.setItem("blub", "yes") text.remove() hide(false) diff --git a/views/layout.pug b/views/layout.pug index 6f30818..47c4ee2 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -1,5 +1,7 @@ doctype html // SPDX-License-Identifier: AGPL-3.0-only +// Author: metamuffin +// Source: https://codeberg.org/metamuffin/website html(lang="en") head meta(charset="UTF-8") |