Feat: room-link copy

This commit is contained in:
Grail Finder
2025-05-16 16:34:55 +03:00
parent 0c94811632
commit 734088d96d
4 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
<html lang="en">
<head>
<title>Alias</title>
<script src="/assets/helpers.js"></script>
<script src="/assets/htmx.min.js"></script>
<script src="/assets/htmx.sse.js"></script>
<script src="/assets/tailwind.css"></script>

View File

@ -3,6 +3,7 @@
<div id="meta">
<p>Hello {{.State.Username}};</p>
<p>Room created by {{.Room.CreatorName}};</p>
<p>Room link:</p><p><input id="roomlink" readonly="" onclick="copyText()" value="{{.Room.RoomLink}}"></input></p>
<p>Game is running: {{.Room.IsRunning}}</p>
<p>
{{if and (eq .State.Username .Room.CreatorName) (not .Room.IsRunning)}}