-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (77 loc) · 2.89 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>KK Pig Dice Game</title>
<meta charset="utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="Pig Dice Game HTML, CSS, JavaScript" />
<meta name="author" content="Kestutis Kurienius" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body class="body">
<header class="header"><h1 class="header__text">Pig Dice Game</h1></header>
<div class="new-game-form" id="new-game-form">
<p>Winning condition <span id="winCondition"></span></p>
<label class="new-game-form__winning-score">
Set new winning condition
<input
class="new-game-form__input"
type="number"
id="newWinCondition"
min="10"
max="100"
step="10"
/>
</label>
<button type="number" class="btn-submit" id="setNewWinCondition">
Enter
</button>
</div>
<main class="main">
<section class="play-arena">
<article class="play-arena__player0 active">
<h2 class="play-arena__player0__player-name">Player 1</h2>
<p class="play-arena__player0__points-earned" id="total--0">0</p>
<div class="current">
<p class="current__label">Now rolled</p>
<p class="current__score" id="current--0">0</p>
</div>
<div class="projection">
<p class="projection__label">Would by if hold</p>
<p class="projection__score" id="projection--0">0</p>
</div>
</article>
<article class="play-arena__player1">
<h2 class="play-arena__player1__player-name">Player 2</h2>
<p class="play-arena__player1__points-earned" id="total--1">0</p>
<div class="current">
<p class="current__label">Now rolled</p>
<p class="current__score" id="current--1">0</p>
</div>
<div class="projection">
<p class="projection__label">Would by if hold</p>
<p class="projection__score" id="projection--1">0</p>
</div>
</article>
<article class="control-panel">
<div class="control-panel__placeholder">
<img
src=""
alt="dice"
class="control-panel__dice-pic hidden move1"
/>
</div>
<div class="control-panel__btn">
<button class="control-panel__btn--roll">Roll</button>
<button class="control-panel__btn--hold">Hold</button>
<button class="control-panel__btn--new-game">New game</button>
</div>
</article>
</section>
</main>
<footer class="footer"><span>Kęstutis Kurienius 2021</span></footer>
<script src="js/script.js"></script>
</body>
</html>