generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlevelselection.html
144 lines (143 loc) · 6.22 KB
/
levelselection.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
<!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>MindGym - select difficulty level</title>
<link rel="icon" type="image/png" href="assets/img/favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Kalam:300,400,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous" />
<link rel="stylesheet" href="assets/css/style.css" type="text/css" />
</head>
<body>
<!-- Navbar code copied from Bootstrap documentation and adapted -->
<nav class="navbar navbar-expand-sm navbar-dark">
<a class="navbar-brand" href="index.html"><img src="assets/img/favicon-32x32.png" alt="mindgym icon"/></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home </a>
</li>
<li class="nav-item active">
<a class="nav-link" href="levelselection.html">Play<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" data-toggle="modal" data-target="#instructionsModal">Instructions</a>
</li>
</ul>
</div>
</nav>
<!-- /.Navbar -->
<div class="container-fluid">
<div class="levelWrapper">
<div>
<h2>Select difficulty level</h2>
</div>
<div class="buttonWrapper">
<!-- Button code (including CSS) obtained from W3Schools -->
<div class="levelButton">
<div class="levelButtonContainer">
<div class="levelButtonFront">
<img src="assets/img/beginner.png" height="200" width="200" alt="toddler"/>
</div>
<div class="levelButtonBack" onclick="levelSelect('beginner')">
<h4>Rookie</h4>
<img src="assets/img/beginner/beginnerPair1.png" height="80" width="80" alt="beginner tile"/>
<h5>8 pairs</h5>
</div>
</div>
</div>
<div class="levelButton">
<div class="levelButtonContainer">
<div class="levelButtonFront">
<img src="assets/img/intermediate.png" height="200" width="200" alt="boy"/>
</div>
<div class="levelButtonBack" onclick="levelSelect('intermediate')">
<h4>Experienced</h4>
<div>
</div>
<h5>12 pairs</h5>
</div>
</div>
</div>
<div class="levelButton">
<div class="levelButtonContainer">
<div class="levelButtonFront">
<img src="assets/img/expert.png" height="200" width="200" alt="super boy"/>
</div>
<div class="levelButtonBack" onclick="levelSelect('expert')">
<h4>Hero</h4>
<img src="assets/img/expert/expertPair12.png" height="80" width="80" alt="expert tile"/>
<h5>18 pairs</h5>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal code copied from Bootstrap documentation and adapted -->
<div class="modal fade" id="instructionsModal" tabindex="-1" role="dialog" aria-labelledby="instructionsModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="instructionsModalLabel">How to Play</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<ol>
<li>
<small>Click "Play".</small>
</li>
<li>
Select a difficulty level to start the game.
</li>
<li>
Select two tiles. <br />
If the two tiles match, they will be removed from the board. <br />
If they don't, they will be flipped back.
</li>
<li>
Repeat Step 3 until the board is clear. <br />
When the board is clear, the game is completed.
</li>
<li>
During a game, you can click "Restart" at any time to restart the game with the same difficulty level.
</li>
<li>
After a game is completed, clicking "Play again" will take you back to difficulty level selection.
</li>
</ol>
</div>
<div class="modal-footer">
<button type="button" class="btn btn--modal" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- /.Modal -->
<footer>
<div class="footerBar">
© 2020 by <a href="https://github.com/bravoalpha79" target="_blank">bravoalpha79</a> for educational purposes.
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous">
</script>
<script src="https://kit.fontawesome.com/0467a2a6b6.js" crossorigin="anonymous"></script>
<script src="assets/js/script.js"></script>
</body>
</html>