Peradventure/views/game.etlua

23 lines
633 B
Plaintext

<!DOCTYPE HTML>
<script src="/static/htmx.min.js"></script>
<% if not isPopulated then %>
<div id="clickable">
<button hx-post="/clickme" hx-target="#clickable" onclick="location.reload()">Start</button>
</div>
<% end %>
<article class="container-fluid">
<div class="grid">
<script></script>
<% if isPopulated then %>
<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 %>
</div>
</article>