-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
125 lines (115 loc) · 7.29 KB
/
index.html
File metadata and controls
125 lines (115 loc) · 7.29 KB
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
<!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">
<link rel="stylesheet" href="assets/css/reset.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Comfortaa|Pacifico&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/css/style.css">
<title>Gem Collector</title>
</head>
<body>
<nav class="navbar sticky-top navbar-expand-md bg-dark navbar-dark">
<a class="navbar-brand" href="https://sahernandezr.github.io/Responsive-Portfolio/">Sandra Hernández</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="https://sahernandezr.github.io/Responsive-Portfolio/">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://sahernandezr.github.io/Responsive-Portfolio/portfolio.html">Portfolio</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://sahernandezr.github.io/Responsive-Portfolio/contact.html">Contact</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" download>CV</a>
</li>
</ul>
</div>
</nav>
<div class="container">
<div class="row"> <!-- For the game's name -->
<div class="col-sm-12">
<div class="jumbotron">
<h1 class="display-4">Gem Collector</h1>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-5"> <!-- For the instructions-->
<div class="card" id="instructions">
<div class="card-body">
<h5 class="card-title">Instructions</h5>
<p class="card-text"><i class="fa fa-diamond" aria-hidden="true"></i> You will be given a random number at the start of the game.</p><p class="card-text"><i class="fa fa-diamond" aria-hidden="true"></i> There are four gems. By clicking on a gem you will add a specific amount of points to your total score.</p><p class="card-text"><i class="fa fa-diamond" aria-hidden="true"></i> The value of each gem is hidden from you until you click on it.</p><p class="card-text"><i class="fa fa-diamond" aria-hidden="true"></i> You win by matching your total score to the random number and lose if your total score goes over.</p><p class="card-text"><i class="fa fa-diamond" aria-hidden="true"></i> If you win or lose, the game restarts with a new random number and new values for the four gems.</p>
</div>
</div>
</div>
<div class="col-sm-6 col-md-7"> <!--For the game-->
<div class="row"> <!--For the goal game and the user's score-->
<div class="col-sm-6">
<div class="card game-cards">
<div class="card-body">
<h5 class="card-title">Target score</h5>
<p class="card-text" id="target-text"></p>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card game-cards">
<div class="card-body">
<h5 class="card-title">Your score</h5>
<p class="card-text" id="user-score">0</p>
</div>
</div>
</div>
</div>
<div class="row gems-buttons"> <!--For the gems-->
<div class="card-body">
<div class="col-sm-12">
<button id="button-1" class="btn gem" value=""><span><img src="assets/images/blue.jpg" height="80px"> </span></button>
<button id="button-2" class="btn gem" value=""><span><img src="assets/images/pink.jpg" height="80px"></span></button>
<button id="button-3" class="btn gem" value=""><span><img src="assets/images/purple.jpg" height="80px"></span></button>
<button id="button-4" class="btn gem" value=""><span><img src="assets/images/orange.jpg" height="80px"></span></button>
</div>
</div>
</div>
<div class="row"> <!--For wins and losses-->
<div class="col-sm-6">
<div class="card game-cards">
<div class="card-body">
<h5 class="card-title">Wins</h5>
<p class="card-text wins-text">0</p>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card game-cards">
<div class="card-body">
<h5 class="card-title">Losses</h5>
<p class="card-text losses-text">0</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<span class="text"><small>Copyright Ⓒ. Images from <a href="http://www.freepik.com" target="_blank" >Freepik</a> </small></span>
</div>
</footer>
<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>
<script src="https://kit.fontawesome.com/36bed53145.js"></script>
<script src="assets/javascript/game.js"></script>
</body>
</html>