Github link

This commit is contained in:
Ian Gulliver
2020-05-03 23:10:05 +00:00
parent de64089453
commit ecef4faf02
3 changed files with 12 additions and 0 deletions

View File

@@ -77,3 +77,12 @@ tfoot tr {
.controls.enable .control-button { .controls.enable .control-button {
cursor: pointer; cursor: pointer;
} }
.github {
bottom: 0;
color: var(--subtle-color);
padding: 5px;
position: fixed;
right: 0;
text-decoration: none;
}

View File

@@ -20,6 +20,7 @@ function renderRoom(roomId) {
name.addEventListener("change", () => { name.addEventListener("change", () => {
localStorage.setItem("name", name.value); localStorage.setItem("name", name.value);
}); });
create(prnt, "a", "[GitHub]", ["github"]).href = "https://github.com/firestuff/slidetogether";
addEventListener("unload", () => remove(roomId, clientId)); addEventListener("unload", () => remove(roomId, clientId));
announce(roomId, clientId, adminSecret, name); announce(roomId, clientId, adminSecret, name);
watch(roomId, clientId, adminSecret, prnt); watch(roomId, clientId, adminSecret, prnt);

View File

@@ -81,6 +81,8 @@ function renderRoom(roomId: string) {
localStorage.setItem("name", name.value); localStorage.setItem("name", name.value);
}); });
(create(prnt, "a", "[GitHub]", ["github"]) as HTMLAnchorElement).href = "https://github.com/firestuff/slidetogether";
addEventListener("unload", () => remove(roomId, clientId!)); addEventListener("unload", () => remove(roomId, clientId!));
announce(roomId, clientId!, adminSecret, name); announce(roomId, clientId!, adminSecret, name);