-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
97 lines (95 loc) · 3.17 KB
/
index.html
File metadata and controls
97 lines (95 loc) · 3.17 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Memory Matching Game</title>
<link rel="stylesheet" href="src/styles/style.css" />
</head>
<body>
<!-- <section class="home"> -->
<header class="game-header">
<h1 class="game-title">Memory Matching Game</h1>
</header>
<main class="game-instructions">
<section class="instructions">
<h2>How to Play?</h2>
<ul class="instructions-list">
<li>
<p>
Select a difficulty level: Easy, Medium, or Hard. The grid size
will adjust accordingly
</p>
</li>
<li><p>Click the "Start Game" button to begin</p></li>
<li><p>Flip two cards by clicking on them</p></li>
<li>
<p>
If the two flipped cards match, they will remain revealed. If not,
they will flip back after a short delay
</p>
</li>
<li><p>Keep flipping cards to find all matching pairs</p></li>
<li>
<p>
The timer will start automatically when the game begins. You can
pause and resume the timer using the "Pause" button
</p>
</li>
<li>
<p>The number of moves you make will be tracked and displayed</p>
</li>
<li><p>Win the game by matching all pairs of cards!</p></li>
<li>
<p>Click the "Reset" button to restart the game at any time</p>
</li>
</ul>
</section>
<p>Good luck and have fun!</p>
<button onclick="showPopup()" id="start-btn">Start Game</button>
</main>
<!-- </section> -->
<div id="popup-container">
<div id="popup">
<header>
<button id="popup-exit-button" onclick="hidePopup()">X</button>
<p>Choose Difficulty</p>
</header>
<main id="popup-content">
<p>Choose a difficulty level to start the game</p>
</main>
<form id="difficulties-form" action="src/playground.html" method="GET">
<input type="hidden" name="difficulty" />
<div id="button-container">
<button type="submit" class="difficulty" id="easy-button">
<div class="front">
<p>Easy</p>
<p>4x4</p>
</div>
<p class="back">🐤</p>
</button>
</div>
<div id="button-container">
<button type="submit" class="difficulty" id="medium-button">
<div class="front">
<p>Medium</p>
<p>6x6</p>
</div>
<p class="back">🦉</p>
</button>
</div>
<div id="button-container">
<button type="submit" class="difficulty" id="hard-button">
<div class="front">
<p>Hard</p>
<p>8x8</p>
</div>
<p class="back">🦅</p>
</button>
</div>
</form>
</div>
</div>
<script src="src/scripts/script.js"></script>
</body>
</html>