-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (78 loc) · 4.66 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="asset/style/style.css">
<title>Crystal Collector</title>
</head>
<body>
<div class="row d-flex justify-content-center">
<div class = "col-md-4">
<h1 class="text-center bg-warning" style="color:red">Crystal Collector</h1>
</div>
</div>
<main class="container">
<!--Rule section-->
<div class ="row d-flex justify-content-center pb-2">
<div class = "card col-md-8 bg-info border rounded text-dark" id="game-rule">
<h2 class = "card-title h4">The rule</h2>
<ol class = "card-body">
<li> You will be give a random number at the start of the game.</li>
<li> Your goals is to match that number using the value of the four crystals. You will fail if your score go higher.</li>
<li> Each crystals have a hidden value. You will have to click on them to reveal their value.</li>
<li> The values will reset themself each round.</li>
</ol>
</div>
</div>
<!---Score section-->
<div class = "row justify-content-center ">
<div class = "d-flex col-md-8 py-1 wraper">
<div class = "card col-md-5 rounded-left bg-primary text-light px-0">
<h3 class = "card-title h4 border-bottom border-light text-center mx-0"> Target</h3>
<div class = "card-body score-display" id="target-num"></div>
</div>
<div class ="col-md-2 ">
<div class = "text-center"id = "result"></div>
<div class = "row justify-content-center">
<button class = "button btn-warning center-block hidden"id="reset" >Reset</button>
</div>
</div>
<div class = "card rounded-right bg-light col-md-5 px-0">
<h3 class = "card-title h4 border-bottom border-primary text-center mx-0 "> Score</h3>
<div class = "card-body score-display" id="score-num"></div>
</div>
</div>
</div>
<!--Crystal section-->
<div class = "row justify-content-center">
<div class = "d-flex col-md-8 py-3 wraper" style="height:7em;color:yellow">
<div class = " button col-md-3 text-center crystal" id="crystal-1"><i class="fas fa-gem fa-5x bg-white p-1" style="color:green"></i></div>
<div class = " button col-md-3 text-center crystal" id="crystal-2"><i class="fas fa-gem fa-5x bg-white p-1" style="color:red"></i></div>
<div class = " button col-md-3 text-center crystal" id="crystal-3"><i class="fas fa-gem fa-5x bg-white p-1" style="color:blue"></i></div>
<div class = "button col-md-3 text-center crystal" id="crystal-4" ><i class="fas fa-gem fa-5x bg-white p-1" style = "color:blueviolet"></i></div>
</div>
</div>
<!--Console/comment section-->
<div class = "row justify-content-center">
<div class = "d-flex col-md-8 justify-content-between py-2 wraper">
<div class = "card col-md-5 px-0">
<div class = "bg-success card-title text-light text-center">Wins</div>
<div class = "bg-light card-body score-display" id="win-number">0</div>
</div>
<div class = "card col-md-5 px-0">
<div class = "bg-danger card-title text-light text-center">Loses</div>
<div class = "bg-light card-body score-display" id="lose-number">0</div>
</div>
</div>
</div>
</main>
<!-- jQuery first then game script -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="asset/javascript/game.js"></script>
</body>
</html>