-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (61 loc) · 2.41 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="dice.ico">
<link
href="https://fonts.googleapis.com/css?family=Lato:100,200,300,600"
rel="stylesheet"
type="text/css"
/>
<link type="text/css" rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>Dice Game</title>
</head>
<body>
<div class="game-wrapper">
<div class="wrapper clearfix">
<div class="player-0-panel active">
<div class="player-name" id="name-0">Player 1</div>
<div class="player-score" id="score-0">43</div>
<div class="player-current-box">
<div class="player-current-label">Current</div>
<div class="player-current-score" id="current-0">11</div>
</div>
</div>
<div class="player-1-panel">
<div class="player-name" id="name-1">Player 2</div>
<div class="player-score" id="score-1">72</div>
<div class="player-current-box">
<div class="player-current-label">Current</div>
<div class="player-current-score" id="current-1">0</div>
</div>
</div>
<button class="btn-new">
<i class="fa-sharp fa-solid fa-circle-plus"></i>New game
</button>
<div class="dice-container">
<img src="dice-5.png" alt="Dice" class="dice" id="dice-1" />
<img src="dice-5.png" alt="Dice" class="dice" id="dice-2" />
</div>
</div>
<div class="roll-hold-container">
<button class="btn-roll"><i class="fa-sharp fa-solid fa-dice"></i>Roll dice</button>
<button class="btn-hold">
<i class="fa-sharp fa-solid fa-download"></i>Hold
</button>
</div>
<div class="instruction">
<p>Press Hold to Save the current Score</p>
</div>
<input
type="text"
placeholder="Set the winning score"
class="final-score"
/>
</div>
<script defer src="app.js" type="module"></script>
</body>
</html>