only mapPopulate empty db

This commit is contained in:
2024-03-18 19:06:37 -05:00
parent 989d33ff5e
commit 6b371066d4
247 changed files with 304770 additions and 62 deletions

View File

@ -4,9 +4,9 @@
<button hx-post="/clickme" hx-target="#clickable">Start</button>
</div>
<div id="map" hx-get="/map/render" hx-trigger="every 5s">
<main style="width: 50%;" class="container" id="map" hx-get="/map/render" hx-trigger="every 5s,load">
</div>
</main>
<!--
<ol>

View File

@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title><%= page_title or "My Page" %></title>
<link rel="stylesheet" href="/static/css/pico/pico.min.css" />
</head>
<body>

View File

@ -1,8 +1,10 @@
<p style="text-align: center;">
<% for h=1,10 do %>
<div class="grid">
<% for i=1,10 do %>
<%= tiles[h][i].occupied_by_type %>
<div><%= tiles[h][i].occupied_by_type %></div>
<% end %>
<br>
</div>
<% end %>
</p>