forked from koderjoker/Kanji-Memory-Game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
87 lines (76 loc) · 2.59 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Kanji Memory Game</title>
<link href="https://fonts.googleapis.com/css?family=Finger+Paint" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css">
</head>
<body>
<div class="container">
<header>
<p class="header">Kanji Memory Game <img src="img/cat.gif" alt="cat" align="bottom" class="icon"></p>
<!--Match the Kanji with their meaning in 3 turns! 失敗したら猫が怒ちゃう!!-->
</header>
<!-- Score panel -->
<section class="score-panel">
<!-- Number of frogs left to win -->
<ul class="frogs">
<li><i class="fas fa-frog"></i></li>
<li><i class="fas fa-frog"></i></li>
<li><i class="fas fa-frog"></i></li>
</ul>
<!-- Moves left -->
<span class="moves">0</span> moves
<!-- Time left -->
<span class="timer">0</span> sec
<!-- Game reset button -->
<i class="fas fa-redo redo"></i>
</section>
<!-- Deck of cards -->
<ul class="deck">
<li class="card"></li>
<li class="card"></li>
<li class="card"></li>
<li class="card"></li>
<li class="card"></li>
<li class="card"></li>
<li class="card"></li>
<li class="card"></li>
<li class="card"></li>
<li class="card"></li>
<li class="card"></li>
<li class="card"></li>
<li class="card"></li>
<li class="card"></li>
<li class="card"></li>
<li class="card"></li>
</ul>
</div>
<!-- Modal to appear up if game won -->
<div class="modal-happy">
<img src="img/happy-cat.gif" alt="happy-cat" align ="center" class="image">
<h2>Congratulations!</h2>
<p> It took you:
<span class="mov">0</span> moves &
<span class="tim">0</span> sec
</p>
<p> Number of frogs won:
<span class="frog">0</span>
</p>
<p class="reload">Want to play again?</p>
</div>
<!-- Modal to appear if game lost -->
<div class="modal-angry">
<img src="img/angry-cat.gif" alt="angry-cat" align ="center" class="image">
<h2>You failed to match the cards in time!!</h2>
<p class="reload">Try again?</p>
</div>
<!-- Overlay background to bring focus on modal -->
<div class="modal-overlay">
</div>
</body>
<script src="js/main.js"></script>
</html>