blob: 1ceeedb96501397038fb269aa4247f141e6a75df (
plain)
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">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./mines.css"/>
<script src="./mines.js"></script>
</head>
<body>
<div class="selector">
<label>Width: </label> <input id="x" min="4" max="50" value="6" type="number"/>
<br>
<label>Height: </label> <input id="y" min="4" value="6" type="number"/>
<br>
<label>Mines: </label> <input id="m" min="2" value="5" type="number"/>
<br>
<label>- OR -</label>
<br>
<label>Difficulty: </label>
<select id="d">
<option value="0.125">Easy</option>
<option value="0.15">Medium</option>
<option value="0.2">Hard</option>
<option value="0.25">Impossible</option>
<option value="0">Custom</option>
</select>
</div>
<br>
<div class="game">
<h1 id="mines">0</h1><button id="circle" onclick="game.reset()"></button><h1 id="time">0</h1>
<br>
<table>
<tbody id="gtable"><tr><td class="wt">◉</td></tr></tbody>
</table>
</div>
<script>
var xIn = document.getElementById("x");
var yIn = document.getElementById("y");
var mIn = document.getElementById("m");
var dIn = document.getElementById("d");
var game = new Board();
</script>
</body>
</html>
|