-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (83 loc) · 2.26 KB
/
index.html
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<html>
<head>
<script src="https://cdn.tailwindcss.com"></script>
<style>
.area-item {
width: 50px;
height: 50px;
border-radius: 5px;
display: inline-block;
overflow: hidden;
}
.open {
background-color: lightgrey;
color: black;
}
.closed {
background-color: red;
color: white;
}
table td {
font-size: 90%;
padding: 5px;
width: 150px;
border: 1px solid black;
background-color: rgb(38, 38, 54);
}
</style>
</head>
<body class="bg-gray-900 text-white">
<main>
<div class="flex justify-center">
<div class="area"></div>
</div>
<hr />
<div class="flex justify-between">
<div class="p-4">
<table>
<tr>
<td>Gen:</td>
<td colspan="2" class="indicator-generation">-</td>
</tr>
<tr>
<td>Last action:</td>
<td colspan="2" class="indicator-last-consequence">-</td>
</tr>
</table>
</div>
<div class="flex items-center gap-4 p-4">
<button
class="button-start bg-blue-500 text-white hover:bg-blue-400 rounded p-2"
>
Start simulation
</button>
<button
class="button-pause bg-blue-500 text-white hover:bg-blue-400 rounded p-2"
>
Pause simulation
</button>
<button
class="button-reset bg-orange-500 text-white hover:bg-orange-400 rounded p-2"
>
Reset simulation
</button>
</div>
</div>
<div class="flex items-center gap-4 p-4">
<div>
<div>Simulation speed</div>
<input
class="interval-input text-black rounded border border-blue-400 p-2"
style="width: 100px"
type="number"
placeholder="Interval speed"
value="1000"
/>
</div>
</div>
</main>
<script src="https://code.jquery.com/jquery-3.7.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src/md5.min.js"></script>
<script src="stable.js"></script>
</body>
</html>