-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (42 loc) · 1.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dojo Sweeper</title>
<link rel="stylesheet" href="game.css">
</head>
<body>
<h2 id="title">Dojo Sweeper</h2>
<div id="the-dojo">
<div id="remaining">
<h3 id="safes">001</h3>
<h3 id="ninjas">001</h3>
</div>
<!-- the generated buttons' html goes in div#buttons -->
<div id="buttons"></div>
</div>
<div id="settings">
<div class="row">
<input type="range" name="width" id="width" min="5" max="30" step="1" value="10" oninput="updateLabel(this, 'widthL')">
<label for="width" id="widthL">width: <span>10</span></label>
</div>
<div class="row">
<input type="range" name="height" id="height" min="5" max="20" step="1" value="10" oninput="updateLabel(this, 'heightL')">
<label for="height" id="heightL">height: <span>10</span></label>
</div>
<div class="row">
<input type="range" name="difficulty" id="difficulty" min="1" max="4" step="1" value="2" oninput="updateLabel(this, 'difficultyL')">
<label for="difficulty" id="difficultyL">difficulty: <span>2</span></label>
</div>
<button id="newgame" onclick="newGame()">new game</button>
</div>
<div id="win_message" hidden>
<h3>Nice Job!</h3>
</div>
<div id="lose_message" hidden>
<h3>Game Over</h3>
</div>
<script src="game.js"></script>
</body>
</html>