Peradventure/views/index.etlua

24 lines
497 B
Plaintext
Raw Normal View History

2024-03-16 18:29:52 -05:00
<!-- views/index.etlua -->
2024-03-16 20:32:35 -05:00
<script src="/static/htmx.min.js"></script>
2024-03-18 19:38:28 -05:00
<% if not isPopulated then %>
2024-03-18 15:31:53 -05:00
<div id="clickable">
<button hx-post="/clickme" hx-target="#clickable">Start</button>
</div>
2024-03-18 19:38:28 -05:00
<% end %>
2024-03-16 18:29:52 -05:00
2024-03-18 19:38:28 -05:00
<article>
<p style="text-align: center;">Game</p>
<main style="width: 50%;" class="container" id="map" hx-get="/map/render" hx-trigger="every 1s,load">
</article>
2024-03-18 15:31:53 -05:00
2024-03-18 19:06:37 -05:00
</main>
2024-03-16 20:00:13 -05:00
2024-03-17 16:03:28 -05:00
<!--
2024-03-18 15:31:53 -05:00
<ol>
2024-03-16 20:00:13 -05:00
<p><% for i, thing in pairs(text) do %>
<li><%= thing %></li>
<% end %>
</p>
</ol>
2024-03-17 16:03:28 -05:00
-->