-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (48 loc) · 2.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Memory Game</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Roboto%7CRoboto+Slab" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<script defer src="https://use.fontawesome.com/releases/v5.0.9/js/solid.js" integrity="sha384-P4tSluxIpPk9wNy8WSD8wJDvA8YZIkC6AQ+BfAFLXcUZIPQGu4Ifv4Kqq+i2XzrM" crossorigin="anonymous"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.9/js/fontawesome.js" integrity="sha384-2IUdwouOFWauLdwTuAyHeMMRFfeyy4vqYNjodih+28v2ReC+8j+sLF9cK339k5hY" crossorigin="anonymous"></script>
</head>
<body>
<div id="welcome" class="center">
<h1 class="caps">The memory game</h1>
<h2 class="caps">Here are the rules:</h2>
<ul>
<li>each round you have two clicks to reveal underlying symbols of two chosen cards</li>
<li>if two symbols match, the two cards stay flipped over</li>
<li>if cards don't match, they'll flip facing down </li>
<li>in order to win, all cards must be matched</li>
<li>there is no time or click limit</li>
</ul>
<button id="start-btn" class="caps">Let's play!</button>
</div>
<div id="main-game" class="hidden">
<h1 class="caps center">The memory game</h1>
<div id="stats-container">
<p id="timer" class="caps"><time>00:00</time></p>
<p id="score" class="caps"></p>
<p id="moves" class="caps"></p>
<div id="star-container">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<button id="restart-btn" class="caps">Restart</button>
</div>
<div id="card-deck">
</div>
</div>
<div id="game-over" class="hidden center">
<h2 class="caps">Congratulations, you have won!</h2>
<div id="stats-popup"></div>
<p>Would you like to play again?</p>
<button id="new-game-btn" class="caps">yes!</button>
</div>
<script src="design.js"></script>
</body>
</html>