feat: create|login on room path

This commit is contained in:
efim
2023-11-18 13:41:54 +00:00
parent c8f28bf0de
commit d87c102d95
4 changed files with 32 additions and 23 deletions

View File

@@ -9,13 +9,16 @@
id="roomName"
type="text"
name="roomName"
value=""
placeholder="room name!!!"
value="{{.RoomName}}"
placeholder="room name"
hx-trigger="keyup changed delay:500ms"
hx-post="/login/room-name-check"
hx-target="#formButton"
hx-swap="outerHTML"
class="invalid:bg-red-700"
class="invalid:bg-red-700 read-only:font-bold"
{{ if not (eq .RoomName "") }}
readonly
{{ end }}
/>
<input
id="roomPassword"