-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (57 loc) · 2.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>MinesJS</title>
<meta charset="UTF-8">
<!-- https://favicon.io/emoji-favicons/bomb/ -->
<!-- Generate the service-worker using the sw-precache command -->
<link rel="apple-touch-icon" sizes="180x180" href="images/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicons/favicon-16x16.png">
<link rel="manifest" href="images/favicons/site.webmanifest.json">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="game.js"></script>
</head>
<body oncontextmenu="return false;">
<div class="settings">
<div>
<label for="level">Game Level:</label>
<select name="level" id="level" onChange="setGameLevel(this)">
<option value="0">Beginner</option>
<option value="1">Intermediate</option>
<option value="2">Expert</option>
<option value="3">Custom...</option>
</select>
</div>
<div class="user">
<div>
<label for="width">Width:</label>
<input type="number" name="userWidth" id="userWidth" value="9" min="9" max="100">
</div>
<div>
<label for="height">Height:</label>
<input type="number" name="userHeight" id="userHeight" value="9" min="9" max="100">
</div>
<div>
<label for="mines">Mines:</label>
<input type="number" name="userMines" id="userMines" value="10" min="10" max="1000">
</div>
<div>
<input type="button" name="userSet" id="userSet" value="Set" onclick="setUserSettings()">
</div>
</div>
</div>
<div class="panel">
<div class="banner threed6">
<div id="mines" class="mines digital">000</div>
<div id="restart" class="restart threed3" onclick="restart()">🙂</div>
<div id="timer" class="time digital">000</div>
</div>
<div id="board" class="board threed6">
</div>
<div class="game-over"></div>
</div>
</body>
</html>