/
index.html
53 lines (33 loc) · 1.73 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
<!DOCTYPE html>
<html>
<head>
<title>Crystals Collector</title>
<link rel="stylesheet" type="text/css" href="assets/css/reset.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<!--Fonts-->
<link href="https://fonts.googleapis.com/css?family=Days+One" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Jacques+Francois+Shadow" rel="stylesheet">
</head>
<body>
<h1>Crystals Collector Game</h1>
<p>You will be given a random number at the beginning of the game.</p>
<p>There are 4 crystals below. Each crystal has a different value. Clicking on a crystal will add a specific amount of points to your total score.</p>
<p>To win you need to match your total score to the random number to guess. You lose if your total score goes above the random number to guess.</p>
<p>The value of each crystal is hidden until you click on it.</p>
<p>Each time the game starts, the values of each crystal will change and your score will reset to zero.</p>
<div id="guessnumber">Random Number to Guess:</div>
<span id="numberToGuess"></span>
<div class="scorestyle">Your Total Score is:</div>
<span id="totalscore"></span>
<!-- Empty until win or loss message is triggered-->
<div class="scorestyle"><span id="statusMsg"></span></div>
<div class="scorestyle">Wins: <span id="wins"></span></div>
<div class="scorestyle">Losses: <span id="losses"></span></div>
<!-- Empty div to be filled dynamiclly-->
<div id="crystals"></div>
<span class="crystalImage"></span>
<!--Call JS and jQuery-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<script type="text/javascript" src="assets/javascript/game.js"></script>
</body>
</html>