summaryrefslogtreecommitdiff
path: root/server/web/game/index.html
blob: 04e85d25274d22c457d94a984b2c0a8a655b02d1 (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
46
47
48
49
50
51
<!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 id="distance">
        <div class="content">
            <input type="checkbox" class="sakura" style="animation-delay: 0.7s"/>
            <input type="checkbox" class="sakura" style="animation-delay: 1.4s"/>
            <input type="checkbox" class="sakura" style="animation-delay: 2.1s"/>
            <input type="checkbox" class="sakura" style="animation-delay: 2.8s"/>
            <input type="checkbox" class="sakura" style="animation-delay: 3.5s"/>
            <input type="checkbox" class="sakura" style="animation-delay: 4.2s"/>
            <input type="checkbox" class="sakura" style="animation-delay: 4.9s"/>
            <input type="checkbox" class="sakura" style="animation-delay: 5.6s"/>
            <input type="checkbox" class="sakura" style="animation-delay: 6.3s"/>
            <input type="checkbox" class="sakura" style="animation-delay: 7s"/>
        </div>
        <label class="label pool-name">Distance</label>
        <label class="label pool-value">10</label>
    </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>
    </ul>
</template>

<script src="/game/game.js"></script>
</body>
</html>