-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
103 lines (101 loc) · 4.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Yatzy Scorecard</title>
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
</head>
<body>
<div style="text-align: center;">
<h2 style="display: inline;">Yatzy Scorecard</h2>
<select id="language-select" style="margin-left: 10px;" onchange="changeLanguage()">
<option value="en">English</option>
<option value="de">Deutsch</option>
<option value="kr">한국어</option>
</select>
</div>
<form>
<table>
<tr>
<th id="header-category">Category</th>
<th id="header-score">Score</th>
</tr>
<!-- Upper Section -->
<tr>
<td id="ones-label" onclick="crossOutField('ones-label','ones')">Ones</td>
<td><input type="number" id="ones" name="ones" ></td>
</tr>
<tr>
<td id="twos-label" onclick="crossOutField('twos-label','twos')">Twos</td>
<td><input type="number" id="twos" name="twos"></td>
</tr>
<tr>
<td id="threes-label" onclick="crossOutField('threes-label','threes')">Threes</td>
<td><input type="number" name="threes" id="threes" ></td>
</tr>
<tr>
<td id="fours-label" onclick="crossOutField('fours-label','fours')">Fours</td>
<td><input type="number" id="fours" name="fours"></td>
</tr>
<tr>
<td id="fives-label" onclick="crossOutField('fives-label','fives')">Fives</td>
<td><input type="number" id="fives" name="fives"></td>
</tr>
<tr>
<td id="sixes-label" onclick="crossOutField('sixes-label', 'sixes')">Sixes</td>
<td><input type="number" id="sixes" name="sixes"></td>
</tr>
<tr>
<td class="total" id="total-upper-label">Upper Section Total</td>
<td><input type="number" name="upperTotal" id="upperTotal" readonly></td>
</tr>
<tr>
<td class="bonus" id="bonus-label">Bonus (If total >= 63)</td>
<td><input type="number" id="bonus" name="bonus" readonly></td>
</tr>
<!-- Lower Section -->
<tr>
<td id="threeOfAKind-label" onclick="crossOutField('threeOfAKind-label', 'threeOfAKind')">Three of a Kind</td>
<td><input type="number" id="threeOfAKind" name="threeOfAKind" min="0"></td>
</tr>
<tr>
<td id="fourOfAKind-label" onclick="crossOutField('fourOfAKind-label', 'fourOfAKind')">Four of a Kind</td>
<td><input type="number" id="fourOfAKind" name="fourOfAKind" min="0"></td>
</tr>
<tr>
<td id="fullHouse-label" onclick="crossOutField('fullHouse-label', 'fullHouse')">Full House</td>
<td><input type="checkbox" id="fullHouse" ></td>
</tr>
<tr>
<td id="smallStraight-label" onclick="crossOutField('smallStraight-label', 'smallStraight')">Small Straight</td>
<td><input type="checkbox" id="smallStraight" ></td>
</tr>
<tr>
<td id="largeStraight-label" onclick="crossOutField('largeStraight-label', 'largeStraight')">Big Straight</td>
<td><input type="checkbox" id="largeStraight" ></td>
</tr>
<tr>
<td id="chance-label" onclick="crossOutField('chance-label', 'chance')">Chance</td>
<td><input type="number" id="chance" name="chance" min="0"></td>
</tr>
<tr>
<td id="yatzy-label" onclick="crossOutField('yatzy-label', 'yatzy')">Yatzy</td>
<td><input type="checkbox" id="yatzy" ></td>
</tr>
<tr>
<td class="total" id="total-lower-label">Lower Section Total</td>
<td><input type="number" id="lowerTotal" name="lowerTotal" readonly></td>
</tr>
<tr>
<td class="total" id="total-grand-label">Grand Total</td>
<td><input type="number" id="grandTotal" name="grandTotal" readonly></td>
</tr>
</table>
</form>
<p style="text-align: center;" id="tip-crossout">Click on a category to cross it out.</p>
<p style="text-align: center;">You can view the update changelog <a href="changelog.html">here</a></p>
<p style="text-align: center;">This is open source! Help improve this website <a href="https://github.com/sam-k0/Yatzy-web">here</a></p>
</body>
</html>