-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (61 loc) · 2.33 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
<!DOCTYPE html>
<html>
<head>
<title>Crystal Collector</title>
<link rel="stylesheet" href="assets/css/reset.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<link rel="stylesheet" href="assets/css/style.css" />
<script
src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g="
crossorigin="anonymous"></script>
<script type="text/javascript" src="assets/javascript/game.js"></script>
</head>
<body>
<nav class="navbar navbar-light bg-light justify-content-center">
<h1>Crystal Collector Game</h1>
</nav>
<container>
<div class='row'>
<div class="col">
</div>
<div class='col-md-8'>
<div class="jumbotron">
<p class='info'>You will be given a random number at the start of the game.</p>
<p class='info'>There are four crystals. By clicking on a crystal, you will add a specific amount of points to your total score.</p>
<p class='info'>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 class='info'>The value of the crystal is unknown until you click on it.</p>
<p class='info'>Each time the game starts, the game will change the value of each crystal.</p>
</div>
</div>
<div class='col'>
</div>
</div>
<div class='row'>
<div class='col'></div>
<div class='col-md-2'>
<p class='tally'>Current Goal:</p>
<p class='tally' id="goal">99</p>
</div>
<div class='col-md-2'>
<p class='tally'>Wins:</p>
<p class='tally' id='Wins'>0</p>
<p class='tally'>Losses:</p>
<p class='tally' id='Losses'>0</p>
</div>
<div class='col-md-1 crystal' id='red'></div>
<div class='col-md-1 crystal' id='blue'></div>
<div class="col-md-1 crystal" id='green'></div>
<div class="col-md-1 crystal" id='yellow'></div>
<div class='col'></div>
</div>
<div class='row'>
<div class='col'></div>
<div class='col-md-4'>
<p class="tally">Current Score: <span id='current'>0</span></p>
</div>
<div class="col-md-1"></div>
</div>
</container>
</body>
</html>