-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
205 lines (196 loc) · 8.8 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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=Oswald:wght@200;300;400;500;600;700&family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap"
rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/color.css">
<link rel="stylesheet" type="text/css" href="css/typography.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="css/form.css">
<script type="module" src="js/index.js"></script>
<title>Kunskapskontroll 3 - Vincent Sjögren</title>
</head>
<body>
<header>
<h1 class="page-title">Yatzy</h1>
</header>
<!-- MODAL POPUP -->
<aside class="start-modal">
<section class="modal-content">
<div class="modal-header">
<h2>Welcome to Yatzy!</h2>
<p>Please enter the names of the players.</p>
</div>
<form class="player-form">
<div class="input-container">
</div>
<div class="button-container">
<button class="add" type="button">Add player</button>
<button class="names-submit" disabled>Start Game</button>
</div>
</form>
</section>
</aside>
<main>
<!-- INFO ABOUT CURRENT PLAYER AND ROLLS LEFT -->
<section class="info">
<p class="current-player"></p>
<p class="rolls-left"></p>
</section>
<!-- ROLL BUTTON -->
<button class="roll">Roll</button>
<!-- SCORE TABLE -->
<section class="score">
<table class="score-table">
<thead class="players">
<tr class="player-names">
<th scope="row">Players</th>
</tr>
</thead>
<tbody class="upper">
<tr class="one">
<th scope="row">One</th>
</tr>
<tr class="two">
<th scope="row">Two</th>
</tr>
<tr class="three">
<th scope="row">Three</th>
</tr>
<tr class="four">
<th scope="row">Four</th>
</tr>
<tr class="five">
<th scope="row">Five</th>
</tr>
<tr class="six">
<th scope="row">Six</th>
</tr>
</tbody>
<tbody class="sum">
<tr class="upper-sum">
<th scope="row">Sum</th>
</tr>
<tr class="bonus">
<th scope="row">Bonus</th>
</tr>
</tbody>
<tbody class="lower">
<tr class="pair">
<th scope="row">Pair</th>
</tr>
<tr class="two-pair">
<th scope="row">Two pair</th>
</tr>
<tr class="three-of-kind">
<th scope="row">Three of a kind</th>
</tr>
<tr class="four-of-kind">
<th scope="row">Four of a kind</th>
</tr>
<tr class="full-house">
<th scope="row">Full house</th>
</tr>
<tr class="small-straight">
<th scope="row">Small straight</th>
</tr>
<tr class="large-straight">
<th scope="row">Large straight</th>
</tr>
<tr class="chance">
<th scope="row">Chance</th>
</tr>
<tr class="yatzy">
<th scope="row">Yatzy</th>
</tr>
</tbody>
<tfoot>
<tr class="total">
<th scope="row">Total</th>
</tr>
</tfoot>
</table>
</section>
<!-- DICE CONTAINER -->
<section class="dice">
<svg class="dice-icon" width="64" height="64" viewBox="0 0 64 64"
fill="none" xmlns="http://www.w3.org/2000/svg">
<rect class="dice-body" x="1.5" y="1.5" width="61" height="61"
rx="6.5" stroke-width="3" />
<circle class="dice-dot" cx="14" cy="14" r="6" />
<circle class="dice-dot" cx="50" cy="14" r="6" />
<circle class="dice-dot" cx="14" cy="32" r="6" />
<circle class="dice-dot" cx="32" cy="32" r="6" />
<circle class="dice-dot" cx="50" cy="32" r="6" />
<circle class="dice-dot" cx="14" cy="50" r="6" />
<circle class="dice-dot" cx="50" cy="50" r="6" />
</svg>
<svg class="dice-icon" width="64" height="64" viewBox="0 0 64 64"
fill="none" xmlns="http://www.w3.org/2000/svg">
<rect class="dice-body" x="1.5" y="1.5" width="61" height="61"
rx="6.5" stroke-width="3" />
<circle class="dice-dot" cx="14" cy="14" r="6" />
<circle class="dice-dot" cx="50" cy="14" r="6" />
<circle class="dice-dot" cx="14" cy="32" r="6" />
<circle class="dice-dot" cx="32" cy="32" r="6" />
<circle class="dice-dot" cx="50" cy="32" r="6" />
<circle class="dice-dot" cx="14" cy="50" r="6" />
<circle class="dice-dot" cx="50" cy="50" r="6" />
</svg>
<svg class="dice-icon" width="64" height="64" viewBox="0 0 64 64"
fill="none" xmlns="http://www.w3.org/2000/svg">
<rect class="dice-body" x="1.5" y="1.5" width="61" height="61"
rx="6.5" stroke-width="3" />
<circle class="dice-dot" cx="14" cy="14" r="6" />
<circle class="dice-dot" cx="50" cy="14" r="6" />
<circle class="dice-dot" cx="14" cy="32" r="6" />
<circle class="dice-dot" cx="32" cy="32" r="6" />
<circle class="dice-dot" cx="50" cy="32" r="6" />
<circle class="dice-dot" cx="14" cy="50" r="6" />
<circle class="dice-dot" cx="50" cy="50" r="6" />
</svg>
<svg class="dice-icon" width="64" height="64" viewBox="0 0 64 64"
fill="none" xmlns="http://www.w3.org/2000/svg">
<rect class="dice-body" x="1.5" y="1.5" width="61" height="61"
rx="6.5" stroke-width="3" />
<circle class="dice-dot" cx="14" cy="14" r="6" />
<circle class="dice-dot" cx="50" cy="14" r="6" />
<circle class="dice-dot" cx="14" cy="32" r="6" />
<circle class="dice-dot" cx="32" cy="32" r="6" />
<circle class="dice-dot" cx="50" cy="32" r="6" />
<circle class="dice-dot" cx="14" cy="50" r="6" />
<circle class="dice-dot" cx="50" cy="50" r="6" />
</svg>
<svg class="dice-icon" width="64" height="64" viewBox="0 0 64 64"
fill="none" xmlns="http://www.w3.org/2000/svg">
<rect class="dice-body" x="1.5" y="1.5" width="61" height="61"
rx="6.5" stroke-width="3" />
<circle class="dice-dot" cx="14" cy="14" r="6" />
<circle class="dice-dot" cx="50" cy="14" r="6" />
<circle class="dice-dot" cx="14" cy="32" r="6" />
<circle class="dice-dot" cx="32" cy="32" r="6" />
<circle class="dice-dot" cx="50" cy="32" r="6" />
<circle class="dice-dot" cx="14" cy="50" r="6" />
<circle class="dice-dot" cx="50" cy="50" r="6" />
</svg>
</section>
</main>
<!-- TEMPLATE FOR PLAYER INPUT -->
<template id="player-fieldset">
<fieldset class="player-fields" id="player-1">
<input class="name-input" type="text" id="playername-1"
value="Player One" maxlength="20">
<select class="type-select" id="playertype-1">
<option value="human" selected>Human</option>
<option value="ai">Computer</option>
</select>
<button class="delete-button" type="button">Delete</button>
</fieldset>
</template>
</body>
</html>