/
index.html
91 lines (87 loc) · 4.16 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
80
81
82
83
84
85
86
87
88
89
90
91
<!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">
<!-- ===CSS LINKS=== -->
<!-- RESET -->
<link rel="stylesheet" href="assets/css/reset.css">
<!-- BOOTSTRAP -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<!-- MAIN -->
<link rel="stylesheet" href="assets/css/main.css">
<!-- ===JS LINKS=== -->
<!-- BOOTSTRAP -->
<script defer src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous">
</script>
<script defer src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous">
</script>
<!-- jQUERY -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- GAME -->
<script defer src="assets/javascript/game.js"></script>
<!-- ===FONT LINK=== -->
<link href="https://fonts.googleapis.com/css?family=Courgette|Girassol&display=swap" rel="stylesheet">
<title>Crystal Collector</title>
</head>
<body>
<div class="container">
<header>
<div class="jumbotron">
<h1 class="display-4 page-heading">Crystal Collector</h1>
<hr class="my-4">
<p>Welcome to Crystal Collector, a number guessing game. Before you begin playing, please take a moment to look over the rules.</p>
<h5 id="rules-heading">Rules</h5>
<ul>
<li>💎 At the beginning of each round, the computer will generate a random number.</li>
<li>💎 At the same time, all four crystals on the page will be given a random number value between 1 and 12.</li>
<li>💎 Your goal as the player, is to raise your score to match but not exceed the computers number.</li>
<li>💎 Each time you click a crystal, that crystal's subsequent value will be added to your overall score for the round.</li>
</ul>
<p>To begin playing simply click a crystal.</p>
</div>
</header>
<main>
<div class="row">
<div class="col-lg-6">
<h3>The computer's number is: <span id="computer-number-display"></span></h3>
</div>
<div class="col-lg-6">
<h3>Wins: <span id="win-count-display">0</span></h3>
<h3>Losses: <span id="loss-count-display">0</span></h3>
</div>
</div>
<div class="row">
<div class="col-lg-3">
<input class="crystal-btn" type="image" src="assets/images/ruby.png" width="150px" height="auto">
</div>
<div class="col-lg-3">
<input class="crystal-btn" type="image" src="assets/images/Sapphire.png" width="150px"
height="auto">
</div>
<div class="col-lg-3">
<input class="crystal-btn" type="image" src="assets/images/yellowopal.png" width="150px"
height="auto">
</div>
<div class="col-lg-3">
<input class="crystal-btn" type="image" src="assets/images/emerald.png" width="150px" height="auto">
</div>
</div>
<div class="row">
<div class="col-lg-12">
<h3>Your score is: <span id="user-score-display">0</span></h3>
</div>
</div>
</main>
<footer>
</footer>
</div>
<div id="copyright-text">
<h6>copyright ©</h6>
</div>
</body>
</html>