generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
209 lines (209 loc) · 13 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Cloud memory game</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
type="text/css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
type="text/css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/hover.css/2.3.1/css/hover-min.css" />
<link rel="stylesheet" href="assets/css/style.css" type="text/css" />
</head>
<body>
<!----------------------------------------HEADER---------------------------------------->
<header>
<div class="container page-title">
<div class="row">
<div class="col">
<h3>Cloud memory game</h3>
</div>
</div>
</div>
</header>
<!----------------------------------------END HEADER---------------------------------------->
<section>
<!----------------------------------------INSTRUCTIONS MODAL---------------------------------------->
<div class="modal information-modal modal-hidden">
<div class="modal-content">
<div class="modal-close">
<span class="close-button"><i class="fa fa-times" aria-hidden="true"></i></span>
</div>
<h2><i class="fa fa-cloud" aria-hidden="true"></i> Instructions</h2>
<ul>
<li>First decide how you want to play. You can either play with cloud images only (option 1), or cloud images and their corresponding names (option 2), which is harder.</li>
<li>If you don't pick, you will play with cloud images only.</li>
<li>Turn over any two cards. If the cards match, you 'keep' them. If they don't, they will be turned back over and you can try other cards.</li>
<li>Remember what was on each card and where it was.</li>
<li>The game is over when all the cards have been matched.</li>
<li>Try to use as little clicks as possible and have fun!</li>
</ul>
</div>
</div>
<!----------------------------------------END INSTRUCTIONS MODAL---------------------------------------->
<div class="game">
<!----------------------------------------BUTTONS AND COUNTER---------------------------------------->
<div class="dropdown">
<button class="btn dropdown-toggle" type="button" data-toggle="dropdown">Options
</button>
<ul class="dropdown-menu">
<li id="option1"><i class="fa fa-check option1" aria-hidden="true"></i> Images only</li>
<li id="option2"><i class="fa fa-check option2 hide-check" aria-hidden="true"></i> Images and names</li>
</ul>
</div>
<div class="instructions">
<button id="show-modal">Instructions</button>
</div>
<div class="counter">
<p>Clicks: <span>0</span></p>
</div>
</div>
<!----------------------------------------END BUTTONS AND COUNTER---------------------------------------->
<!----------------------------------------MEMORY CARDS---------------------------------------->
<div class="memory-game">
<div class="memory-card" id="first-cloud-image1" data-number="01">
<img class="front" src="assets/images/01.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="second-cloud-image1" data-number="01">
<img class="front" src="assets/images/01.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card hide-card" id="cloud-name1" data-number="01">
<img class="front" src="assets/images/01b.png" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="first-cloud-image2" data-number="02">
<img class="front" src="assets/images/02.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="second-cloud-image2" data-number="02">
<img class="front" src="assets/images/02.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card hide-card" id="cloud-name2" data-number="02">
<img class="front" src="assets/images/02b.png" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="first-cloud-image3" data-number="03">
<img class="front" src="assets/images/03.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="second-cloud-image3" data-number="03">
<img class="front" src="assets/images/03.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card hide-card" id="cloud-name3" data-number="03">
<img class="front" src="assets/images/03b.png" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="first-cloud-image4" data-number="04">
<img class="front" src="assets/images/04.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="second-cloud-image4" data-number="04">
<img class="front" src="assets/images/04.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card hide-card" id="cloud-name4" data-number="04">
<img class="front" src="assets/images/04b.png" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="first-cloud-image5" data-number="05">
<img class="front" src="assets/images/05.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="second-cloud-image5" data-number="05">
<img class="front" src="assets/images/05.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card hide-card" id="cloud-name5" data-number="05">
<img class="front" src="assets/images/05b.png" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="first-cloud-image6" data-number="06">
<img class="front" src="assets/images/06.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="second-cloud-image6" data-number="06">
<img class="front" src="assets/images/06.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card hide-card" id="cloud-name6" data-number="06">
<img class="front" src="assets/images/06b.png" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="first-cloud-image7" data-number="07">
<img class="front" src="assets/images/07.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="second-cloud-image7" data-number="07">
<img class="front" src="assets/images/07.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card hide-card" id="cloud-name7" data-number="07">
<img class="front" src="assets/images/07b.png" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="first-cloud-image8" data-number="08">
<img class="front" src="assets/images/08.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card" id="second-cloud-image8" data-number="08">
<img class="front" src="assets/images/08.jpg" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
<div class="memory-card hide-card" id="cloud-name8" data-number="08">
<img class="front" src="assets/images/08b.png" alt="cloud">
<img class="back" src="assets/images/card-back.png" alt="back">
</div>
</div>
<!----------------------------------------END MEMORY CARDS---------------------------------------->
<!----------------------------------------WIN MODAL AND RESET BUTTON---------------------------------------->
<div class="modal win-modal">
<div class="modal-content">
<div class="modal-close">
<span id="win-modal-close-button"><i class="fa fa-times" aria-hidden="true"></i></span>
</div>
<h2><i class="fa fa-cloud" aria-hidden="true"></i> You win!</h2>
<p>Nice job, you found all the matches in <span id="final-count">0</span> clicks.</p>
</div>
</div>
<div class="reset">
<button id="play-again">Play again!</button>
</div>
<!----------------------------------------END WIN MODAL AND RESET BUTTON---------------------------------------->
</section>
<!----------------------------------------FOOTER---------------------------------------->
<footer>
<p>© SuzanneNL</p>
<ul class="list-inline social-links">
<li class="list-inline-item">
<a target="_blank" href="http://www.facebook.com">
<i class="fa fa-facebook" aria-hidden="true"></i>
<span class="sr-only">Facebook</span>
</a>
</li>
<li class="list-inline-item">
<a target="_blank" href="http://instagram.com">
<i class="fa fa-instagram" aria-hidden="true"></i>
<span class="sr-only">Instagram</span>
</a>
</li>
<li class="list-inline-item">
<a target="_blank" href="http://youtube.com">
<i class="fa fa-youtube" aria-hidden="true"></i>
<span class="sr-only">Youtube</span>
</a>
</li>
</ul>
</footer>
<!----------------------------------------END FOOTER---------------------------------------->
<script src="assets/scripts/script.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>