forked from Jonathan/Peradventure
fixed initialization display bugs on game page
This commit is contained in:
@ -2,14 +2,21 @@
|
||||
<script src="/static/htmx.min.js"></script>
|
||||
<% if not isPopulated then %>
|
||||
<div id="clickable">
|
||||
<button hx-post="/clickme" hx-target="#clickable">Start</button>
|
||||
<button hx-post="/clickme" hx-target="#clickable" onclick="location.reload()">Start</button>
|
||||
</div>
|
||||
<% end %>
|
||||
<article class="container-fluid">
|
||||
<p style="text-align: center;">Game</p>
|
||||
<main style="width: 50%;" class="container" id="map" hx-get="/map/render" hx-trigger="every 10s,load">
|
||||
</main>
|
||||
<div class="grid">
|
||||
<script></script>
|
||||
<% if isPopulated then %>
|
||||
<div>
|
||||
<% render("views.player_ui") %>
|
||||
<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>
|
||||
|
Reference in New Issue
Block a user