diff options
| author | metamuffin <metamuffin@disroot.org> | 2022-09-07 11:14:42 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2022-09-07 11:14:42 +0200 |
| commit | 61950198e3bf06555f48e8f51c882a4c3cce5128 (patch) | |
| tree | a7701a44804d4a2a634f3410d400545ea82d1c45 /client-web/public/start.html | |
| parent | 832f48f29098cc6f840ade90db3b94efa67c6833 (diff) | |
| download | keks-meet-61950198e3bf06555f48e8f51c882a4c3cce5128.tar keks-meet-61950198e3bf06555f48e8f51c882a4c3cce5128.tar.bz2 keks-meet-61950198e3bf06555f48e8f51c882a4c3cce5128.tar.zst | |
REFACTOR! pt.1
Diffstat (limited to 'client-web/public/start.html')
| -rw-r--r-- | client-web/public/start.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/client-web/public/start.html b/client-web/public/start.html new file mode 100644 index 0000000..0852f8b --- /dev/null +++ b/client-web/public/start.html @@ -0,0 +1,52 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + + <script defer async type="module" src="/bundle.js"></script> + <link rel="stylesheet" href="/style/master.css" /> + + <title>keks-meet</title> + </head> + + <body> + <h2>keks-meet</h2> + <p>A web conferencing application using webrtc</p> + <p> + keks-meet is free software! It is licenced under the terms of the + third version of the GNU Affero General Public Licence only. + </p> + <p> + To get started, just enter a unique idenfier, click 'Join', then + share the URL with your partner. + </p> + <noscript> + 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> + </noscript> + <script> + const room_input = document.createElement("input"); + room_input.type = "text"; + room_input.id = "room-id-input"; + room_input.placeholder = "Room ID (leave blank for random id)"; + + const submit = document.createElement("input"); + submit.type = "button"; + submit.addEventListener("click", () => { + if (room_input.value.length == 0) + room_input.value = Math.floor(Math.random() * 10000) + .toString(16) + .padStart(5, "0"); + window.location.pathname = `/${encodeURIComponent( + room_input.value + )}`; + }); + submit.value = "Join room!"; + + el.classList.add("start-box"); + el.append(room_input, document.createElement("br"), submit); + </script> + </body> +</html> |