Peradventure/views/game.etlua

23 lines
633 B
Plaintext
Raw Normal View History

2024-03-19 16:37:12 -05:00
<!DOCTYPE HTML>
<script src="/static/htmx.min.js"></script>
2024-03-20 15:29:00 -05:00
<% if not isPopulated then %>
<div id="clickable">
<button hx-post="/clickme" hx-target="#clickable" onclick="location.reload()">Start</button>
2024-03-20 15:29:00 -05:00
</div>
<% end %>
2024-03-21 15:16:19 -05:00
<article class="container-fluid">
<div class="grid">
<script></script>
<% if isPopulated then %>
2024-03-21 15:16:19 -05:00
<div>
<p style="text-align: center;">Map</p>
<main style="width: 50%;" class="container" id="map" hx-get="/map/render" hx-trigger="every 5s,load">
</div>
</main>
<div>
<% render("views.player_ui") %>
</div>
<% end %>
2024-03-21 15:16:19 -05:00
</div>
2024-03-19 16:37:12 -05:00
</article>