summaryrefslogtreecommitdiff
path: root/server/web/game/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'server/web/game/index.html')
-rw-r--r--server/web/game/index.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/web/game/index.html b/server/web/game/index.html
index 414ff5c..f4f6593 100644
--- a/server/web/game/index.html
+++ b/server/web/game/index.html
@@ -15,7 +15,7 @@
<header>
<details>
<summary>Game state</summary>
- <pre id="game-json"></pre>
+ <code id="game-json"></code>
</details>
</header>
<main id="game"></main>
@@ -33,6 +33,11 @@
<input type="checkbox" class="sakura" />
<input type="checkbox" class="sakura" />
</div>
+ <ul class="actions">
+ <li class="action" data-index="">
+ <button type="button" class="description" onclick="window.socket.send(closest('.action').getAttribute('data-index'))">Do</button>
+ </li>
+ </s>
</template>
<script src="/game/game.js"></script>