only mapPopulate empty db
This commit is contained in:
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user