Bit of a rewrite
This commit is contained in:
parent
b6377bd228
commit
82dd6fd398
11 changed files with 787 additions and 953 deletions
9
public/scripts/goToRoom.js
Normal file
9
public/scripts/goToRoom.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { v4 as uuidv4 } from "https://jspm.dev/uuid"
|
||||
|
||||
const input = document.querySelector("#go-input")
|
||||
const setHref = () =>
|
||||
(document.querySelector("#go").href = input.value || uuidv4())
|
||||
|
||||
setHref()
|
||||
|
||||
input.addEventListener("keyup", setHref)
|
Reference in a new issue