aboutsummaryrefslogtreecommitdiff
path: root/client-web
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-12-29 15:55:57 +0100
committermetamuffin <metamuffin@disroot.org>2022-12-29 15:55:57 +0100
commitd997c3941feebe8688bb60159f53b7feb24c85ae (patch)
tree74a385742d9f5f149a1e4d4cf31ade156fd8ef31 /client-web
parent67694f908f7fc76f78566e6f02d89db2d7a19c1d (diff)
downloadkeks-meet-d997c3941feebe8688bb60159f53b7feb24c85ae.tar
keks-meet-d997c3941feebe8688bb60159f53b7feb24c85ae.tar.bz2
keks-meet-d997c3941feebe8688bb60159f53b7feb24c85ae.tar.zst
display loading
Diffstat (limited to 'client-web')
-rw-r--r--client-web/public/app.html15
-rw-r--r--client-web/source/index.ts2
2 files changed, 10 insertions, 7 deletions
diff --git a/client-web/public/app.html b/client-web/public/app.html
index 665a7d2..8479a22 100644
--- a/client-web/public/app.html
+++ b/client-web/public/app.html
@@ -8,13 +8,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 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.")