-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
130 lines (124 loc) · 5.08 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Abdu's Memory Matching Game</title>
<!-- TODO: Get a favicon -->
<!-- <link rel="icon" type="image/png" href="img/logo-favicon.png"> -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- css links -->
<link rel="stylesheet prefetch" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
<link rel="stylesheet prefetch" href="https://fonts.googleapis.com/css?family=Coda">
<link rel="stylesheet" href="css/app.css">
<!-- js links -->
<script src="js/app.js"></script>
</head>
<body>
<!-- the main content area, which contains the title and the game -->
<main id="main" class="main">
<!-- the header area, which contains the title -->
<header>
<h1>Matching Game</h1>
</header>
<!-- the game is contained within an article, which has 2 sections. One for the top panel (score and reset), and the other for the cards deck -->
<article class="game-area">
<!-- top panel -->
<section class="top-panel">
<ul class="top-panel__scores">
<li class="top-panel__score-stars"><i class="fa fa-star"></i></li>
<li class="top-panel__score-stars"><i class="fa fa-star"></i></li>
<li class="top-panel__score-stars"><i class="fa fa-star"></i></li>
</ul>
<div class="top-panel__moves">
<span id="numMoves">0 Moves</span>
</div>
<div class="top-panel__time">
<span id="time">00:00</span>
</div>
<div id="reset" class="top-panel__reset">
<i class="fa fa-repeat"></i>
<span> Reset</span>
</div>
</section>
<!-- cards deck -->
<section class="deck-area">
<ul id="deck" class="deck">
<li class="deck__card">
<i class="fa fa-diamond"></i>
</li>
<li class="deck__card">
<i class="fa fa-paper-plane-o"></i>
</li>
<li class="deck__card">
<i class="fa fa-anchor"></i>
</li>
<li class="deck__card">
<i class="fa fa-bolt"></i>
</li>
<li class="deck__card">
<i class="fa fa-cube"></i>
</li>
<li class="deck__card">
<i class="fa fa-anchor"></i>
</li>
<li class="deck__card">
<i class="fa fa-leaf"></i>
</li>
<li class="deck__card">
<i class="fa fa-bicycle"></i>
</li>
<li class="deck__card">
<i class="fa fa-diamond"></i>
</li>
<li class="deck__card">
<i class="fa fa-bomb"></i>
</li>
<li class="deck__card">
<i class="fa fa-leaf"></i>
</li>
<li class="deck__card">
<i class="fa fa-bomb"></i>
</li>
<li class="deck__card">
<i class="fa fa-bolt"></i>
</li>
<li class="deck__card">
<i class="fa fa-bicycle"></i>
</li>
<li class="deck__card">
<i class="fa fa-paper-plane-o"></i>
</li>
<li class="deck__card">
<i class="fa fa-cube"></i>
</li>
</ul>
</section>
</article>
<!-- Modal -->
<div id="modal" class="modal">
<!-- Modal content -->
<div class="modal__content">
<div class="modal__header">
<h2>Congratulations!</h2>
</div>
<div class="modal__body">
<span>You achieved a rating of: </span>
<div id="modalRating" class="modal__star-text"></div>
<div class="modal__time-text">
<span>And your time is: </span>
<span id="modalTime"></span>
</div>
</div>
<div class="modal__footer">
<h3>Would you like to play again?</h3>
<div class="modal__actions">
<button id="modalYesBtn" class="modal__button">Yes</button>
<button id="modalNoBtn" class="modal__button">No</button>
</div>
</div>
</div>
</div>
</main>
</body>
</html>