-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
155 lines (140 loc) · 5.36 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
<!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" />
<title>Scoreboard</title>
<meta name="description" content="Simple Scoreboard with dark mode." />
<!-- icon -->
<link rel="icon" type="image/x-icon" href="assets/scoreboard.png" />
<!-- css -->
<link rel="stylesheet" href="styles/reset.css" type="text/css" />
<link rel="stylesheet" href="styles/light.css" id="theme" />
<!-- Google font -->
<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=Noto+Sans+TC&display=swap" rel="stylesheet" />
</head>
<body>
<!-- header -->
<div class="header">
<div class="logo">
<img src="assets/scoreboard2.svg" alt="random image">
</div>
<div class="text">
<p>Scoreboard</p>
</div>
<div class="reset">
</div>
<div class="btn-list">
<button id="reset" onclick="">Reset</button>
<button type="button" onclick="changeTheme()" class="theme-button">
<img src="assets/MoonIcon.svg" alt="Theme Icon" id="theme-icon" />
</button>
</div>
</div>
<!-- main -->
<div class="content">
<!-- red -->
<div class="red">
<div class="flag">
<div class="input-text">
<input id="red-name" type="text">
</div>
</div>
<div class="score">
<p id="red-score">0</p>
</div>
<div class="score-btn">
<button id="red-plus-one" onclick="redScorePlusOne()">+1</button>
<button id="red-plus-two" onclick="redScorePlusTwo()">+2</button>
<button id="red-plus-three" onclick="redScorePlusThree()">+3</button>
<button id="red-clear" onclick="redScoreClear()">Clear</button>
</div>
<div class="foul">
<p>Foul</p>
</div>
<div class="foul-num">
<p id="red-foul">0</p>
</div>
<div class="foul-btn">
<button id="red-foul-plus-one" onclick="redFoulPlusOne()">+1</button>
<button id="red-foul-clear" onclick="redFoulClear()">Clear</button>
</div>
</div>
<!-- middle -->
<div class="middle">
<div class="clock-div">
<div>
<input class="hours" id="hour" type="number" value="0" min="0" max="99">
</div>
<div>
<input class="minutes" id="minute" type="number" value="0" min="0" max="60">
</div>
<div>
<input class="seconds" id="second" type="number" value="0" min="0" max="60">
</div>
</div>
<div class="time-btn-list">
<button id="time-start">Start</button>
<button id="time-stop">Stop</button>
<button id="time-reset">Clear</button>
</div>
<div class="round">
<p>Round</p>
</div>
<div class="round-num">
<p id="round-num">0</p>
</div>
<div class="round-btn-list">
<button id="round-plus-one" onclick="roundNumPlusOne()">+1</button>
<button id="round-clear" onclick="roundNumClear()">clear</button>
</div>
</div>
<!-- blue -->
<div class="blue">
<div class="flag">
<div class="input-text">
<input id="blue-name" type="text">
</div>
</div>
<div class="score">
<p id="blue-score">0</p>
</div>
<div class="score-btn">
<button id="blue-plus-one" onclick="blueScorePlusOne()">+1</button>
<button id="blue-plus-two" onclick="blueScorePlusTwo()">+2</button>
<button id="blue-plus-three" onclick="blueScorePlusThree()">+3</button>
<button id="blue-clear" onclick="blueScoreClear()">Clear</button>
</div>
<div class="foul">
<p>Foul</p>
</div>
<div class="foul-num">
<p id="blue-foul">0</p>
</div>
<div class="foul-btn">
<button id="blue-foul-plus-one" onclick="blueFoulPlusOne()">+1</button>
<button id="blue-foul-clear" onclick="blueFoulClear()">clear</button>
</div>
</div>
</div>
<!-- footer -->
<div class="footer">
<div class="contact">
<p>Contact</p>
<a href="www.linkedin.com/in/yeh-hong-ping-14559b264" title="Linkedin">
<img src="assets/linkedin.svg" alt="Linkedin" id="linkedin-icon"></a>
<a href="https://github.com/KELLSPING" title="GitHub">
<img src="assets/github.svg" alt="GitHub" id="github-icon"></a>
</div>
<div class="copyright">
<p>© copyright 2023 by kells</p>
</div>
</div>
<!-- js -->
<script src="scripts/script.js">
</script>
</body>
</html>