aboutsummaryrefslogtreecommitdiff
path: root/client-web
diff options
context:
space:
mode:
Diffstat (limited to 'client-web')
-rw-r--r--client-web/public/app.html15
-rw-r--r--client-web/source/index.ts4
-rw-r--r--client-web/source/keybinds.ts2
-rw-r--r--client-web/source/menu.ts2
4 files changed, 12 insertions, 11 deletions
diff --git a/client-web/public/app.html b/client-web/public/app.html
index d121be2..4c7d10d 100644
--- a/client-web/public/app.html
+++ b/client-web/public/app.html
@@ -9,13 +9,16 @@
<title>keks-meet</title>
</head>
<body>
+ <noscript>
+ <p>
+ keks-meet needs evil javascript to be enabled. Don't be afraid
+ though, all the code is free (AGPL-3.0-only)! Look at it on
+ <a href="https://codeberg.org/metamuffin/keks-meet">codeberg</a>
+ </p>
+ </noscript>
+ <h1>keks-meet is loading, please wait…</h1>
<p>
- keks-meet needs evil javascript to be enabled. Don't be afraid
- though, all the code is free (AGPL-3.0-only)! Look at it on
- <a href="https://codeberg.org/metamuffin/keks-meet">codeberg</a>
- </p>
- <p>
- If you have JS enabled, check the browser console to see if
+ If this takes <i>too long</i> check the browser console to see if
something else failed
</p>
</body>
diff --git a/client-web/source/index.ts b/client-web/source/index.ts
index c92ca2b..3610ead 100644
--- a/client-web/source/index.ts
+++ b/client-web/source/index.ts
@@ -84,8 +84,8 @@ export async function main() {
setup_keybinds(r)
r.on_ready = () => {
- new BottomMenu(r).shown = true
- new MenuBr().shown = true
+ new BottomMenu(r)
+ new MenuBr()
}
document.body.prepend(ROOM_CONTAINER, OVERLAYS)
diff --git a/client-web/source/keybinds.ts b/client-web/source/keybinds.ts
index d096501..07e21bb 100644
--- a/client-web/source/keybinds.ts
+++ b/client-web/source/keybinds.ts
@@ -10,7 +10,6 @@ import { Room } from "./room.ts"
import { update_serviceworker } from "./sw/init.ts";
export function setup_keybinds(room: Room) {
- // let command_mode = false
document.body.addEventListener("keydown", ev => {
// TODO is there a proper solution?
if (ev.target instanceof HTMLInputElement && !(ev.target.type == "button")) return
@@ -27,6 +26,5 @@ export function setup_keybinds(room: Room) {
if (ev.code == "KeyC" && ev.ctrlKey) room.local_user.resources.forEach(t => t.destroy())
if (ev.code == "KeyU") if (window.confirm("really update?")) update_serviceworker()
}
- // command_mode = false
})
}
diff --git a/client-web/source/menu.ts b/client-web/source/menu.ts
index 035f3aa..0df50d8 100644
--- a/client-web/source/menu.ts
+++ b/client-web/source/menu.ts
@@ -67,6 +67,6 @@ export class BottomMenu extends OverlayUi {
ebutton("File", { onclick: () => room.local_user.await_add_resource(create_file_res()) }),
)
- super(enav({ class: "bottom-menu" }, chat_toggle, prefs_button, local_controls))
+ super(enav({ class: "bottom-menu" }, chat_toggle, prefs_button, local_controls), true)
}
}