feat: raising hand endpoint

This commit is contained in:
efim
2023-11-12 08:31:42 +00:00
parent 16df084928
commit 34d610a8c8
5 changed files with 122 additions and 7 deletions

View File

@@ -31,12 +31,12 @@
<![endif]-->
<div class="h-full w-full grid">
<script src="https://unpkg.com/htmx.org/dist/ext/sse.js"></script>
<div id="state-receival" class="bg-blue-300 hidden md:block"
hx-ext="sse" sse-connect="/rooms/random"
>
<div> yoyo </div>
<div sse-swap="message"> qweopop </div>
</div>
<!-- <div id="state-receival" class="bg-blue-300 hidden md:block" -->
<!-- hx-ext="sse" sse-connect="/rooms/random" -->
<!-- > -->
<!-- <div> yoyo </div> -->
<!-- <div sse-swap="message"> qweopop </div> -->
<!-- </div> -->
<!-- should be done with custom event for screen change -->
<!-- <div id="state-receival" class="bg-blue-100 md:hidden" -->
<!-- hx-ext="sse" sse-connect="/rooms/random?mobile=true" -->
@@ -46,6 +46,14 @@
<!-- </div> -->
<div id="controls" class="bg-green-300">
koko
{{ range .Gestures }}
<button
hx-get="{{ .Url }}"
class="bg-white rounded border-blue-700 border-2"
>
{{ .Name }}
</button>
{{ end }}
</div>
</div>