blob: f4f6593b4e93bb73b1163e377c84e9c78f8f2d68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>sakura | game</title>
<link rel="stylesheet" type="text/css" href="/style.css" />
<link rel="stylesheet" type="text/css" href="/game/style.css" />
</head>
<body>
<header>
<details>
<summary>Game state</summary>
<code id="game-json"></code>
</details>
</header>
<main id="game"></main>
<template id="tmpl">
<div class="distance">
<input type="checkbox" class="sakura" />
<input type="checkbox" class="sakura" />
<input type="checkbox" class="sakura" />
<input type="checkbox" class="sakura" />
<input type="checkbox" class="sakura" />
<input type="checkbox" class="sakura" />
<input type="checkbox" class="sakura" />
<input type="checkbox" class="sakura" />
<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>
</body>
</html>
|