-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
104 lines (100 loc) · 3.76 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
92
93
94
95
96
97
98
99
100
101
102
103
104
<!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" />
<meta
name="description"
content="A simplified Sic bo game written by JavaScript."
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Nunito&display=swap"
rel="stylesheet"
/>
<link rel="manifest" href="manifest.json" />
<link rel="icon" href="icon/favicon.ico" sizes="any" />
<link rel="apple-touch-icon" href="icon/apple-touch-icon.png" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/queries.css" />
<title>Simple Sic bo</title>
</head>
<body>
<main>
<section class="player player--0 player--active">
<h2 class="name" id="name--0">Player 1</h2>
<p class="score" id="score--0">5</p>
<div class="guess">
<p class="current-label">Current</p>
<p class="current-score" id="current--0">WIN!</p>
</div>
</section>
<section class="player player--1">
<h2 class="name" id="name--1">Player 2</h2>
<p class="score" id="score--1">3</p>
<div class="guess">
<p class="current-label">Current</p>
<p class="current-score" id="current--1">LOSE...</p>
</div>
</section>
<img
src="img/dice-1.png"
alt="Playing dice 1"
class="dice dice--0 hidden"
/>
<img
src="img/dice-2.png"
alt="Playing dice 2"
class="dice dice--1 hidden"
/>
<img
src="img/dice-3.png"
alt="Playing dice 3"
class="dice dice--2 hidden"
/>
<img
src="img/dice-4.png"
alt="Preload dice 4"
class="dice hidden"
/>
<img
src="img/dice-5.png"
alt="Preload dice 5"
class="dice hidden"
/>
<img
src="img/dice-6.png"
alt="Preload dice 6"
class="dice hidden"
/>
<button class="btn btn--new">🔄 New game</button>
<button class="btn btn--new media">🔄 New</button>
<button class="btn btn--ai">🤖 AI</button>
<button class="btn btn--big">🎲 Big</button>
<button class="btn btn--small">🎲 Small</button>
<button class="btn btn--rule">📕 Rule</button>
</main>
<div class="rule-modal hidden">
<button class="close-modal">×</button>
<h1>Simple Sic Bo Rules 📕</h1>
<ol>
<li>
Hit Big button to roll dices, if the combination of 3 dices
greater than or equal 11, you get 1 score!
</li>
<li>
Hit Small button to roll dices, if the combination of 3
dices less than or equal 10, you get 1 score!
</li>
<li>
The first player who gets 10 scores will become the winner
🎉
</li>
</ol>
</div>
<div class="rule-overlay hidden"></div>
<script src="script.js"></script>
</body>
</html>