From ecef4faf022a546a6ccea72caa7376996ee070c1 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sun, 3 May 2020 23:10:05 +0000 Subject: [PATCH] Github link --- static/remote.css | 9 +++++++++ static/remote.js | 1 + static/remote.ts | 2 ++ 3 files changed, 12 insertions(+) diff --git a/static/remote.css b/static/remote.css index 22f2fcc..c58b1d9 100644 --- a/static/remote.css +++ b/static/remote.css @@ -77,3 +77,12 @@ tfoot tr { .controls.enable .control-button { cursor: pointer; } + +.github { + bottom: 0; + color: var(--subtle-color); + padding: 5px; + position: fixed; + right: 0; + text-decoration: none; +} diff --git a/static/remote.js b/static/remote.js index bd128af..b631402 100644 --- a/static/remote.js +++ b/static/remote.js @@ -20,6 +20,7 @@ function renderRoom(roomId) { name.addEventListener("change", () => { localStorage.setItem("name", name.value); }); + create(prnt, "a", "[GitHub]", ["github"]).href = "https://github.com/firestuff/slidetogether"; addEventListener("unload", () => remove(roomId, clientId)); announce(roomId, clientId, adminSecret, name); watch(roomId, clientId, adminSecret, prnt); diff --git a/static/remote.ts b/static/remote.ts index 87c35a9..01c2b7a 100644 --- a/static/remote.ts +++ b/static/remote.ts @@ -81,6 +81,8 @@ function renderRoom(roomId: string) { localStorage.setItem("name", name.value); }); + (create(prnt, "a", "[GitHub]", ["github"]) as HTMLAnchorElement).href = "https://github.com/firestuff/slidetogether"; + addEventListener("unload", () => remove(roomId, clientId!)); announce(roomId, clientId!, adminSecret, name);