-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (59 loc) · 2.26 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
<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="styles.css">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minesweeper</title>
</head>
<body>
<div id="startWindow" style="display: block;">
<!-- Элементы стартового окна -->
<form id="gameSettings">
<label for="fieldSize">Field size:</label>
<input type="range" id="fieldSize" name="fieldSize" min="7" max="15" value="11">
<span id="fieldSizeValue">11</span>
<label for="difficulty">Difficulty:</label>
<select id="difficulty" name="difficulty">
<option value="easy">Easy</option>
<option value="medium">Medium</option>
<option value="hard">Hard</option>
<option value="pro">Profi</option>
</select>
<button type="submit">New game</button>
</form>
</div>
<div id="gameField" style="display: none;">
<div class="game-info-container">
<div class="game-info">
<!-- Имя игрока
<div class="info-item">
<label for="playerName">Игрок:</label>
<input type="text" id="playerName" placeholder="Введите имя">
</div> -->
<!-- Время игры -->
<div class="info-item">
<span>Time: </span>
<span id="timerDisplay">00:00</span>
</div>
<!-- Количество оставшихся мин -->
<div class="info-item">
<span>Mines left: </span>
<span id="minesLeft"></span>
</div>
</div>
</div>
<div class="field">
<div class="buttons">
<!-- Кнопки игрового поля здесь -->
</div>
</div>
</div>
<div id="fireworkContainer" style="display: none;">
<!-- Firework -->
</div>
<div id="recordWindow" style="display: none;">
<!-- Элементы окна рекордов -->
</div>
<script src="minesweeper.js"></script>
</body>