-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
97 lines (88 loc) · 3.81 KB
/
index.html
File metadata and controls
97 lines (88 loc) · 3.81 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
<!DOCTYPE html>
<html>
<head>
<title>Crystal Collector</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<link href="https://fonts.googleapis.com/css?family=Lato|Rye" rel="stylesheet">
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
<script src="assets/javascript/game.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="heading col-md-12">
<h1>CRYSTAL COLLECTOR</h1>
</div>
</div>
<div class="row">
<div class="rules">
<h2>Rules</h2>
<p>You will be given a random number at the start of the game.</p>
<p>There are four crystals below. By clicking on a crystal you will add a specific amount of points to your
total score.</p>
<p>You win the game by matching your total score to the random number, you lose the game if your total score goes
above the random number.</p>
<p>The value of each crystal is hidden from you until you click on it.</p>
<p>Each time the game starts, the value of the crystals will change.</p>
<p>Good luck!</p>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="randomBox gameNums col-md-3 col-xs-6">
<h2>Random Number:
<p id="random-number"></p>
</h2>
</div>
<div class="total-score gameNums col-md-3 col-xs-6">
<h2>Your Total Score:
<p id="total-num"></p>
</h2>
</div>
<div class="winsBox gameNums col-md-3 col-xs-6">
<h2>Wins:
<br />
<br />
<p id="wins">0</p>
</h2>
</div>
<div class="lossesBox gameNums col-md-3 col-xs-6">
<h2>Losses:
<br />
<br />
<p id="losses">0</p>
</h2>
</div>
</div>
</div>
<div class="row">
<div class="crystals">
<audio id="crystalSound"><source src="assets/images/clink2.wav"></audio>
<div class="col-md-3 col-sm-3 col-xs-3">
<button class="button" id="blue" data-value="">
<img id="blueCrystal" src="assets/images/blue3.png" alt="blue gem" />
</button>
</div>
<div class="col-md-3 col-sm-3 col-xs-3">
<button class="button" id="green" data-value="">
<img id="greenCrystal" src="assets/images/green2.png" alt="green gem" />
</button>
</div>
<div class="col-md-3 col-sm-3 col-xs-3">
<button class="button" id="red" data-value="">
<img id="redCrystal" src="assets/images/red2.png" alt="red gem">
</button>
</div>
<div class="col-md-3 col-sm-3 col-xs-3">
<button class="button" id="purple" data-value="">
<img id="purpleCrystal" src="assets/images/purple2.png" alt="purple gem">
</button>
</div>
</div>
</div>
</div>
</body>
</html>