Initial commit

This commit is contained in:
Vojtěch Káně
2020-12-03 23:07:44 +01:00
commit 28e22e3422
24 changed files with 1526 additions and 0 deletions

7
ui/static/home.js Normal file
View File

@@ -0,0 +1,7 @@
document.addEventListener("DOMContentLoaded", () => {
const joinForm = document.getElementById("join");
joinForm.addEventListener("submit", (e) => {
const code = joinForm.querySelector("input[name=\"code\"]").value;
joinForm.action = "/play/" + encodeURIComponent(code);
});
});