aboutsummaryrefslogtreecommitdiff
path: root/source/client/menu.ts
diff options
context:
space:
mode:
Diffstat (limited to 'source/client/menu.ts')
-rw-r--r--source/client/menu.ts26
1 files changed, 0 insertions, 26 deletions
diff --git a/source/client/menu.ts b/source/client/menu.ts
deleted file mode 100644
index 1401b42..0000000
--- a/source/client/menu.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-import { Room } from "./room.ts";
-
-export function create_menu(room?: Room) {
- const menu = document.createElement("div")
- menu.classList.add("menu-overlay")
- document.body.append(menu)
-
- const item = (name: string, cb: (() => void) | string) => {
- const p = document.createElement("p")
- const a = document.createElement("a")
- a.classList.add("menu-item")
- a.textContent = name
- if (typeof cb == "string") a.href = cb
- else a.addEventListener("click", cb), a.href = "#"
- p.append(a)
- return p
- }
-
- if (room) menu.append(
- item("Settings", () => alert("todo, refer to the url parameters in the docs for now"))
- )
- menu.append(
- item("Licence", "/licence"),
- item("Sources / Documentation", "https://codeberg.org/metamuffin/keks-meet"),
- )
-} \ No newline at end of file