From d997c3941feebe8688bb60159f53b7feb24c85ae Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 29 Dec 2022 15:55:57 +0100 Subject: display loading --- client-web/source/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client-web/source') diff --git a/client-web/source/index.ts b/client-web/source/index.ts index a853c58..e42cb74 100644 --- a/client-web/source/index.ts +++ b/client-web/source/index.ts @@ -51,7 +51,7 @@ window.onbeforeunload = ev => { let r: Room; export async function main() { log("*", "starting up") - document.body.querySelectorAll("p").forEach(e => e.remove()) + document.body.innerHTML = "" // remove existing elements const room_name = load_params().rname if (!globalThis.RTCPeerConnection) return log({ scope: "webrtc", error: true }, "WebRTC not supported.") -- cgit v1.2.3-70-g09d2 From 9dba0bc526a12f26b9dc32d0ae7506ea2468ac7f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 29 Dec 2022 16:36:40 +0100 Subject: clean keybind code --- client-web/source/keybinds.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'client-web/source') 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 }) } -- cgit v1.2.3-70-g09d2 From 84587df365c61297e08d00f28317b452681a4b84 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 4 Apr 2023 11:13:38 +0200 Subject: [client-web]show overlayui by default --- client-web/source/index.ts | 4 ++-- client-web/source/menu.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client-web/source') diff --git a/client-web/source/index.ts b/client-web/source/index.ts index e42cb74..852e48f 100644 --- a/client-web/source/index.ts +++ b/client-web/source/index.ts @@ -67,8 +67,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.append(ROOM_CONTAINER, OVERLAYS, LOGGER_CONTAINER) 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) } } -- cgit v1.2.3-70-g09d2 From bfeb96146309e1f92e2d3f040a0ee874131ed90c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 5 Apr 2023 09:08:46 +0200 Subject: fix loading --- client-web/public/app.html | 13 ++++++++----- client-web/source/index.ts | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'client-web/source') diff --git a/client-web/public/app.html b/client-web/public/app.html index 4c7d10d..66062d9 100644 --- a/client-web/public/app.html +++ b/client-web/public/app.html @@ -3,7 +3,10 @@ - + keks-meet @@ -16,10 +19,10 @@ codeberg

-

keks-meet is loading, please wait…

-

- If this takes too long check the browser console to see if - something else failed +

keks-meet is loading, please wait…

+

+ If this takes too long check your browser's console to see if + something else failed.

diff --git a/client-web/source/index.ts b/client-web/source/index.ts index 3610ead..74f8963 100644 --- a/client-web/source/index.ts +++ b/client-web/source/index.ts @@ -59,7 +59,7 @@ export async function main() { const config: ClientConfig = await config_res.json() log("*", "config loaded. starting") - document.body.querySelectorAll("p").forEach(e => e.remove()) + document.body.querySelectorAll(".loading").forEach(e => e.remove()) const room_secret = load_params().rsecret if (!globalThis.RTCPeerConnection) return log({ scope: "webrtc", error: true }, "WebRTC not supported.") -- cgit v1.2.3-70-g09d2