-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·69 lines (69 loc) · 2.94 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
<html>
<head>
<title>Nine Men's Morris - JS</title>
<style>
body {font-family: "Arial"; overflow: hidden; background-color: #E6E3E1}
canvas {width: 100%; height: 100% }
#spieler1steine {width: 30%; height: 20%; position:absolute; left:0px; top:0px;}
#spieler2steine {width: 30%; height: 20%; position:absolute; left:70%; top:0px;}
#spielzug{width: 40%; height: 20%; position: absolute; left:30%; top:3px;}
.ub {font-size:26pt;font-weight:bold;}
</style>
</head>
<body>
<link rel="stylesheet" href="jquery-ui.css">
<script src="jquery.js"></script>
<script src="three.min.js"></script>
<script src="stdlib.js"></script>
<script src="jquery-ui.js"></script>
<script src="mill.js"></script>
<canvas id="canv"></canvas>
<div align="left" id="spieler1steine">
<table>
<tr align="left">
<td width="20px">
<button onclick="Weisseingeben()" class="setbutton">=</button>
</td>
<td>
<a class="ub" style="font-weight:normal">(Black) </a><a id="ubweiss" class="ub">White</a>
</td>
</tr>
<tr>
<td colspan=2>
<a id="weisszusetzen">Stones left: 9</a>
<a id="weissaufbrett">Stones on board: 0</a>
<a id="weissverloren">Stones lost: 0</a>
</td>
</tr>
</table>
</div>
<div id="spielzug" align="center">
<a id="aktspielzugbezeichnung" class="ub">White has to put stones</a><br/>
<button style="margin-top: 2px" onclick="neuspielen()">Restart</button>
<button style="margin-top: 2px" onclick="speichern()">Save Game</button>
<button style="margin-top: 2px" onclick="laden()">Load Game</button>
</div>
<div align="right" id="spieler2steine">
<table>
<tr align="right">
<td>
<a id="ubschwarz" class="ub">White</a><a class="ub" style="font-weight:normal"> (Black)</a>
</td>
<td width="20px">
<button onclick="Schwarzeingeben()" class="setbutton">=</button>
</td>
</tr>
<tr>
<td colspan=2>
<a id="schwarzzusetzen">Stones left: 9</a>
<a id="schwarzaufbrett">Stones on board: 0</a>
<a id="schwarzverloren">Stones lost: 0</a>
</td>
</tr>
</table>
</div>
<div id="ladedialog" title="Load Game">
<table width="100%" id="spielstandliste" ></table>
</div>
</body>
</html>