-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomespring.html
46 lines (41 loc) · 1.2 KB
/
homespring.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script type="module" src="homespring-html.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<textarea class="program">Universe net hatchery Hello,. World! powers a b snowmelt</textarea>
<button class="boot">Boot</button>
<p>
<button class="doTick">Tick!</button>
<button class="run">Run!</button>
<button class="stop">Stop!</button>
<br>
<strong>Run:</strong> <span class="runs"></span>
<br>
<strong>Tick number:</strong> <span class="ticksN"></span>
<br>
<strong>Tick:</strong> <span class="tick"></span>
</p>
<strong>Output:</strong>
<pre class="output"></pre>
<strong>River system:</strong>
<div class="riverSystem">
<ul class="target"></ul>
</div>
<template id="node">
<li class="node">
<span class="name"></span>
<span class="generatingPower">🔋</span>
<span class="destroyed">💥</span>
<span class="salmons"></span>
<ul class="children"></ul>
</li>
</template>
<template id="salmon">
<span class="salmon"><span class="name"></span></span>
</template>
</body>
</html>