-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (71 loc) · 3.24 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
<!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>Crystals Collector Game</title>
<!-- CSS-->
<link rel="stylesheet" href="assets/css/reset.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body class="py-md-3">
<div class="container ">
<div class="row">
<div class="col-2"></div>
<div class="col-8 justify-content-md-center py-md-3 fullshade">
<h1>Crystals Collector Game</h1>
</div>
<div class="col-2"></div>
</div>
<div class="row justify-content-md-center">
<div class="col-2"></div>
<div class="col-8 py-md-3 shade">
<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 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 when the game starts, the game will change the values of each crystal.</p>
</div>
<div class="col-2"></div>
</div>
<div class="row text-center">
<div class="col-2"></div>
<div class="col-4 bg-white pt-md-3">
<h3>Target #</h3>
</div>
<div class="col-4 bg-white pt-md-3">
<h3>Your #</h3>
</div>
<div class="col-2"></div>
</div>
<div class="row text-center bignum">
<div class="col-2 "></div>
<div id="targetNum" class="col-4 bg-white">?</div>
<div id="score" class="col-4 bg-white">0</div>
<div class="col-2"></div>
</div>
<div class="row">
<div class="col-2"></div>
<div class="col-8 bg-white">
<img src="assets/images/2078_205_FO_10_FV_MI_760x.jpg" alt="crystal-1" class="crystalimg" id="0">
<img src="assets/images/clear-quartz-300x284.jpg" alt="crystal-2" class="crystalimg" id="1">
<img src="assets/images/LightsaberCrystal-SWE.png" alt="crystal-3" class="crystalimg" id="2">
<img src="assets/images/purple-380x254.jpg" alt="crystal-4" class="crystalimg" id="3">
</div>
<div class="col-2"></div>
</div>
<div class="row text-center">
<div class="col-2"></div>
<div id="wins" class="col-4 shade score">Wins: 0</div>
<div id="losses" class="col-4 shade score">Losses: 0</div>
<div class="col-2"></div>
</div>
</div>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="assets/javascript/game.js"></script>
</body>
</html>