forked from KD-Games/Project1-Memory-Game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ch1-Animals.html
90 lines (76 loc) · 2.84 KB
/
ch1-Animals.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
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
<!DOCTYPE html>
<html>
<head >
<title>Memory Game - Animals</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<section class="score-section">
<h1>Score:</h1><span id="score"></span>
</section>
<div class="cards-container">
<div class="memory-card" data-framework="deer">
<span class="overlay"></span>
<img class="front-card" src="images/animals/deer.jpg" alt="deer">
<img class="back-card" src="images/animals/animalbkgd.jpg" alt="animals">
</div>
<div class="memory-card" data-framework="deer">
<span class="overlay"></span>
<img class="front-card" src="images/animals/deer.jpg" alt="deer">
<img class="back-card" src="images/animals/animalbkgd.jpg" alt="animals">
</div>
<div class="memory-card" data-framework="koala">
<span class="overlay"></span>
<img class="front-card" src="images/animals/koala.jpg" alt="koala">
<img class="back-card" src="images/animals/animalbkgd.jpg" alt="animals">
</div>
<div class="memory-card" data-framework="koala">
<span class="overlay"></span>
<img class="front-card" src="images/animals/koala.jpg" alt="koala">
<img class="back-card" src="images/animals/animalbkgd.jpg" alt="animals">
</div>
<div class="memory-card" data-framework="panda">
<span class="overlay"></span>
<img class="front-card" src="images/animals/panda.jpg" alt="panda">
<img class="back-card" src="images/animals/animalbkgd.jpg" alt="animals">
</div>
<div class="memory-card" data-framework="panda">
<span class="overlay"></span>
<img class="front-card" src="images/animals/panda.jpg" alt="panda">
<img class="back-card" src="images/animals/animalbkgd.jpg" alt="animals">
</div>
<div id="popup1" class="panel-overlay">
<div class="popup">
<div class="content-1">
<h2>Congratulations 🎉</h2>
<p>You're a winner 🎉🎉</p>
</div>
<div class="content-2">
<p>Your score is <span id="score-pop"></span></p>
<p>Time to go to next level!</p>
</div>
<button id="next-level" onclick="nextLevel()">
Next Level</a>
</button>
</div>
</div>
<div id="popup2" class="panel-overlay">
<div class="popup">
<div class="content-1">
<h2>Game Over!</h2>
</div>
<div class="content-2">
<p>Sorry you lost ☠</p>
</div>
<button id="next-level" onclick="nextLevel()">
Try Again</a>
</button>
<button id="next-level" onclick="nextLevel()">
Go back</a>
</button>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>