-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdice.html
83 lines (62 loc) · 1.5 KB
/
dice.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
<head>
<style type="text/css">
.diceTable {
width: 100%;
}
.diceTableStats {
/*vertical-align: center;*/
/*width: 100%;*/
margin-left: auto;
margin-right: auto;
}
.diceCell {
background: white;
}
.dicePlayer1Selected {
background: darkgreen;
}
.dicePlayer1 {
background: lightgreen;
}
.dicePlayer2Selected {
background: blue;
}
.dicePlayer2 {
background: aqua;
}
/*
table, td, th {
border: 1px solid green;
}
*/
td {
text-align: center;
}
</style>
</head>
<body>
<div id="screen">
<table border="1" class="diceTable" id="idDiceTable">
<tr>
<td>tbd</td>
</tr>
</table>
<div id="update" style="text-align:center">
1. Click your area. 2. Click neighbor to attack.
<button type=button id="buttonEndTurn" onclick="endTurn()">End Turn</button>
</div>
<p></p>
<table border="0" class="diceTableStats" id="playerStats">
<tr>
<td>tbd</td>
</tr>
</table>
<p></p>
<div id="status" style="text-align: center"></div>
</div>
<script src="utils.js"></script>
<script src="dice.js"></script>
<script type="text/javascript">
window.onload = initGame()
</script>
</body>