-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (50 loc) · 2.27 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
<!DOCTYPE html>
<html>
<head>
<title>Fruit Collector</title>
<link rel="icon" type="image/png" href="assets/images/pineapple.png">
<link rel="stylesheet" type="text/css" href="assets/css/reset.css">
<link href="https://fonts.googleapis.com/css?family=Poppins" rel="stylesheet">
<!-- Added link to the jQuery Library -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://bootstrapdocs.com/v3.3.6/docs/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
</head>
<body>
<div class="container">
<div class="jumbotron">
<h1>Exotic Fruit Collector</h1>
<div class="instructions">
<p>You will be given a random number at the start of the game.</p>
<p>4 fruits below. Clicking on one will add a specific amount of points to your score.</p>
<p>If your score matches the random number, then you win. If your score goes above the random number, then you lose.</p>
<p>The value of the fruit is hidden until you click on it.</p>
<p>The value of the fruit will change every time the game starts.</p>
</div>
<div class="row">
<div class="col-md-3" id="number">
<p id="randomNumber"></p>
</div>
<div class="aside col-md-6">
<p id="hidden"> </p>
<p>Wins <span id="winsCounter"></span></p>
<p>Losses <span id="lossCounter"></span></p>
</div>
</div>
<div class="row" id="fruits">
<div id="pineapple"><img src="assets/images/pineapple.png"></div>
<div id="avocado"><img src="assets/images/avocado.png"></div>
<div id="strawberry"><img src="assets/images/strawberry.png"></div>
<div id="berry"><img src="assets/images/raspberry.png"></div>
</div>
<div class="score-div">
<p>Your total score is</p>
<p id="scoreCounter"></p>
</div>
</div>
</div>
<div>Icons made by <a href="https://www.flaticon.com/authors/smashicons" title="Smashicons">Smashicons</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div>
<!-- js file-->
<script src="assets/javascript/game.js"></script>
</body>
</html>