-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
46 lines (45 loc) · 2.59 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>hex_world</title>
<link rel="stylesheet" href="hex.css">
<script src="vendor/jquery.min.js"></script>
<script src="vendor/svg.min.js"></script>
<script src="js/hex_world.min.js"></script>
<script src="js/hex_demo.js"></script>
</head>
<body>
<div id="hex">
</div>
<nav id="main" class="panel">
<div class="handle"></div>
<button name="start">start</button>
<button name="stop">stop</button>
<button name="reset">reset</button>
<ul id="tribeConfig" class="inputList">
<li><label for="maxGrowth">maxGrowth</label><input type="number" step="0.01" name="maxGrowth"></li>
<li><label for="maxStarve">maxStarve</label><input type="number" step="0.01" name="maxStarve"></li>
<li><label for="growthRate">growthRate</label><input type="number" step="0.01" name="growthRate"></li>
<li><label for="growthAsymptote">growthAsymptote</label><input type="number" step="0.01" name="growthAsymptote"></li>
<li><label for="decisionPeriod">decisionPeriod</label><input type="number" step="50" name="decisionPeriod"></li>
<li><label for="showText">show text<br>(might slow things down)</label><input type="checkbox" name="showText"></li>
<li><label for="showTerrain">show terrain / light switch</label><input type="checkbox" name="showTerrain"></li>
<li><button name="newGrid">create new grid</button></li>
</ul>
</nav>
<form id="worldCreateForm" class="panel">
<h3>create a new world</h3>
<ul class="inputList">
<li><label for="width">width</label><input type="number" name="width" value="20" placeholder=""></li>
<li><label for="height">height</label><input type="number" name="height" value="20" placeholder=""></li>
<li><label for="tileRadius">tileRadius</label><input type="number" name="tileRadius" value="30" placeholder=""></li>
<li><label for="numTribes">numTribes</label><input type="number" name="numTribes" value="36" placeholder=""></li>
<li><label for="wrapX">wrapX</label><input type="checkbox" checked name="wrapX"></li>
</ul>
<button type="submit">create</button>
</form>
<a href="https://github.com/monomon/hex_world.git"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://camo.githubusercontent.com/567c3a48d796e2fc06ea80409cc9dd82bf714434/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png"></a>
</body>
</html>