-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (45 loc) · 1.8 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
<html>
<head>
<script type="text/javascript" src="assets/js/query.js"></script>
<script type="text/javascript" src="assets/js/hexmap.js"></script>
<script type="text/javascript" src="assets/js/launch.js"></script>
<link rel="stylesheet" href="assets/css/hexmap.css">
<link rel="stylesheet" href="assets/css/terrain.css">
</head>
<body>
<div id="container" style="width:700px;height:700px;margin: auto;">
<div id="board" class="board">
<code>
{
"layout":"odd-r",
"hexes": {
"A":{"n":"A","q":0,"r":0,"dice":5,"type":"mountains"},
"B":{"n":"B","q":1,"r":0,"dice":2,"type":"fields"},
"C":{"n":"C","q":2,"r":0,"dice":6,"type":"forest"},
"D":{"n":"D","q":2,"r":1,"dice":3,"type":"mountains"},
"E":{"n":"E","q":3,"r":2,"dice":8,"type":"fields"},
"F":{"n":"F","q":2,"r":3,"dice":10,"type":"pasture"},
"G":{"n":"G","q":2,"r":4,"dice":9,"type":"fields"},
"H":{"n":"H","q":1,"r":4,"dice":12,"type":"pasture"},
"I":{"n":"I","q":0,"r":4,"dice":11,"type":"forest"},
"J":{"n":"J","q":-1,"r":3,"dice":4,"type":"hills"},
"Robber":{"n":"Robber","q":-1,"r":2,"dice":7,"type":"desert"},
"K":{"n":"K","q":-1,"r":1,"dice":8,"type":"hills"},
"L":{"n":"L","q":0,"r":1,"dice":10,"type":"pasture"},
"M":{"n":"M","q":1,"r":1,"dice":9,"type":"pasture"},
"N":{"n":"N","q":2,"r":2,"dice":4,"type":"forest"},
"O":{"n":"O","q":1,"r":3,"dice":5,"type":"hills"},
"P":{"n":"P","q":0,"r":3,"dice":6,"type":"mountains"},
"Q":{"n":"Q","q":0,"r":2,"dice":3,"type":"forest"},
"R":{"n":"R","q":1,"r":2,"dice":11,"type":"fields"}
}
}
</code>
</div>
<div style="text-align:center;margin-top:1em;">
<button id="button-8-terrain">Randomise terrain</button>
</div>
</div>
</body>
<footer></footer>
</html>