feat: join room, rooms.Update transactional

This commit is contained in:
efim
2023-11-04 13:07:28 +00:00
parent b19dd2863b
commit 3a6fe28981
5 changed files with 130 additions and 28 deletions

View File

@@ -31,5 +31,6 @@
<h1>Hello</h1>
<p>This is index</p>
<p>Your session is {{ . }}</p>
</body>
</html>

View File

@@ -34,6 +34,7 @@
</header>
<section class="h-full grid place-content-center">
<form
id="loginForm"
class="grid grid-cols-2 place-content-center border border-black rounded p-4 gap-6"
>
<div id="roomInput" class="flex flex-col gap-4">
@@ -82,6 +83,11 @@
{{ end }}
{{ end }}
</form>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
document.getElementById('loginForm').reset();
});
</script>
</section>
</main>
</body>