-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (56 loc) · 1.74 KB
/
index.html
File metadata and controls
61 lines (56 loc) · 1.74 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Memory Match</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<h1>Neon Match</h1>
<div class="stats">
<div class="stat-box">Moves: <span id="moves">0</span></div>
<div class="stat-box">Time: <span id="time">00:00</span></div>
</div>
<div class="controls">
<button onclick="restartGame()">Restart</button>
<button onclick="showHistory()">History</button>
</div>
</header>
<div class="game-board" id="gameBoard"></div>
<div class="overlay" id="winModal">
<div class="modal-content">
<h2>You Won!</h2>
<p style="margin-bottom: 20px; font-size: 1.2rem">
Final Time: <span id="finalTime"></span><br />Moves: <span id="finalMoves"></span>
</p>
<button onclick="restartGame()">Play Again</button>
</div>
</div>
<div class="overlay" id="historyModal">
<div class="modal-content">
<h2>High Scores</h2>
<table class="history-table">
<thead>
<tr>
<th>Rank</th>
<th>Moves</th>
<th>Time</th>
<th>Date</th>
</tr>
</thead>
<tbody id="historyBody"></tbody>
</table>
<div class="history-actions">
<button onclick="closeHistory()">Close</button>
<button onclick="clearHistory()" style="border-color: #ff3366; color: #ff3366">
Clear
</button>
</div>
</div>
</div>
<canvas id="confetti"></canvas>
<script src="script.js"></script>
</body>
</html>