-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
191 lines (191 loc) · 15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="Wasiu Ramoni" />
<meta
name="description"
content="A well-structured JavaScript code snippet for a dynamic clock application with real-time ticking sound, customizable color themes, and interactive settings."
/>
<link rel="stylesheet" href="src/styles/main.css" />
<script src="https://kit.fontawesome.com/af277e2749.js" crossorigin="anonymous"></script>
<script defer type="module" src="src/scripts/main.js"></script>
<title>Wall Clock</title>
</head>
<body>
<main class="container-fluid">
<svg class="clock" version="1.1" x="0px" y="0px" viewBox="0 0 708.25 709.24" style="enable-background: new 0 0 708.25 709.24" xml:space="preserve">
<g id="designer">
<text transform="matrix(1 -7.300000e-04 7.300000e-04 1 253.9561 265.9548)">Waiz</text>
</g>
<g id="numbers">
<text transform="matrix(1 0 0 1 338.4059 64.9749)">12</text>
<text transform="matrix(1 0 0 1 199.2762 109.2302)">11</text>
<text transform="matrix(1 0 0 1 82.6861 207.9412)">10</text>
<text transform="matrix(1 0 0 1 38.2313 367.5968)">9</text>
<text transform="matrix(1 0 0 1 89.3358 520.0314)">8</text>
<text transform="matrix(1 0 0 1 192.276 626.9127)">7</text>
<text transform="matrix(1 0 0 1 342.9442 665.8023)">6</text>
<text transform="matrix(0.749 0 0 1 500.9962 633.1027)">5</text>
<text transform="matrix(1 0 0 1 603.0563 518.0313)">4</text>
<text transform="matrix(1 0 0 1 653.2472 368.597)">3</text>
<text transform="matrix(1 0 0 1 603.0563 210.9923)">2</text>
<text transform="matrix(1 0 0 1 492.9959 97.3524)">1</text>
</g>
<g id="hoursBars">
<path d="M354.6,28.91L354.6,28.91c-2.29,0-4.17-1.88-4.17-4.17V4.67c0-2.29,1.88-4.17,4.17-4.17h0c2.29,0,4.17,1.88,4.17,4.17v20.07C358.76,27.03,356.89,28.91,354.6,28.91z"/>
<path d="M354.6,708.74L354.6,708.74c2.29,0,4.17-1.88,4.17-4.17v-20.07c0-2.29-1.88-4.17-4.17-4.17l0,0c-2.29,0-4.17,1.88-4.17,4.17v20.07C350.43,706.87,352.3,708.74,354.6,708.74z"/>
<path d="M636.15,191.9L636.15,191.9c1.15,1.99,3.71,2.67,5.69,1.53l17.38-10.04c1.99-1.15,2.67-3.71,1.53-5.69l0,0c-1.15-1.99-3.71-2.67-5.69-1.53l-17.38,10.04C635.69,187.36,635,189.92,636.15,191.9z"/>
<path d="M49.41,530.65L49.41,530.65c1.15,1.99,3.71,2.67,5.69,1.53l17.38-10.04c1.99-1.15,2.67-3.71,1.53-5.69h0c-1.15-1.99-3.71-2.67-5.69-1.53l-17.38,10.04C48.95,526.11,48.27,528.67,49.41,530.65z"/>
<path d="M0.5,354.84L0.5,354.84c0.1,2.29,2.06,4.08,4.35,3.98l20.05-0.88c2.29-0.1,4.08-2.06,3.98-4.35v0c-0.1-2.29-2.06-4.08-4.35-3.98l-20.05,0.88C2.19,350.59,0.4,352.55,0.5,354.84z"/>
<path d="M48.41,177.74L48.41,177.74c-1.15,1.99-0.46,4.55,1.53,5.69l17.38,10.04c1.99,1.15,4.55,0.46,5.69-1.53h0c1.15-1.99,0.46-4.55-1.53-5.69l-17.38-10.04C52.12,175.07,49.56,175.76,48.41,177.74z"/>
<path d="M637.15,518.07L637.15,518.07c-1.15,1.99-0.46,4.55,1.53,5.69l17.38,10.04c1.99,1.15,4.55,0.46,5.69-1.53l0,0c1.15-1.99,0.46-4.55-1.53-5.69l-17.38-10.04C640.86,515.4,638.29,516.08,637.15,518.07z"/>
<path d="M679.36,354.84L679.36,354.84c0.1,2.29,2.06,4.08,4.35,3.98l20.05-0.88c2.29-0.1,4.08-2.06,3.98-4.35v0c-0.1-2.29-2.06-4.08-4.35-3.98l-20.05,0.88C681.05,350.59,679.26,352.55,679.36,354.84z"/>
<path d="M193.55,72.98L193.55,72.98c-1.94,1.23-4.53,0.64-5.75-1.29l-10.73-16.96c-1.23-1.94-0.64-4.53,1.29-5.75v0c1.94-1.23,4.53-0.64,5.75,1.29l10.73,16.96C196.07,69.17,195.49,71.75,193.55,72.98z"/>
<path d="M533.47,660.73L533.47,660.73c-1.94,1.23-4.53,0.64-5.75-1.29l-10.73-16.96c-1.23-1.94-0.64-4.53,1.29-5.75l0,0c1.94-1.23,4.53-0.64,5.75,1.29l10.73,16.96C535.99,656.92,535.41,659.51,533.47,660.73z"/>
<path d="M178.53,662.62L178.53,662.62c-2.08-0.96-3-3.45-2.03-5.53l8.42-18.22c0.96-2.08,3.45-3,5.53-2.03h0c2.08,0.96,3,3.45,2.03,5.53l-8.42,18.22C183.1,662.67,180.61,663.59,178.53,662.62z"/>
<path d="M518.92,72.87L518.92,72.87c-2.08-0.96-3-3.45-2.03-5.53l8.42-18.22c0.96-2.08,3.45-3,5.53-2.03v0c2.08,0.96,3,3.45,2.03,5.53l-8.42,18.22C523.49,72.91,521,73.83,518.92,72.87z"/>
</g>
<g id="minsBars">
<line x1="636.8" y1="148.67" x2="629.66" y2="153.86"/>
<line x1="78.12" y1="554.75" x2="69.48" y2="561.03"/>
<line x1="319.44" y1="693.84" x2="318.26" y2="704.92"/>
<line x1="392.39" y1="7.48" x2="391.51" y2="15.82"/>
<line x1="702.58" y1="317.55" x2="693.18" y2="318.54"/>
<line x1="15.03" y1="389.45" x2="5.04" y2="390.49"/>
<line x1="463.38" y1="22.79" x2="460.76" y2="30.79"/>
<line x1="248.38" y1="678.85" x2="244.92" y2="689.41"/>
<line x1="428.31" y1="13.29" x2="426.54" y2="21.5"/>
<line x1="282.76" y1="688.09" x2="280.41" y2="698.97"/>
<line x1="497" y1="35.79" x2="493.54" y2="43.5"/>
<line x1="214.66" y1="665.82" x2="210.13" y2="675.93"/>
<line x1="559.53" y1="71.91" x2="554.49" y2="78.83"/>
<line x1="153.18" y1="630.06" x2="146.74" y2="638.91"/>
<line x1="588" y1="94.88" x2="582.21" y2="101.3"/>
<line x1="125.65" y1="607.65" x2="118.37" y2="615.73"/>
<line x1="613.54" y1="120.24" x2="607.06" y2="126.09"/>
<polyline points="101.35,583.36 93.35,590.59 93.34,590.6"/>
<line x1="673.49" y1="211.29" x2="665.23" y2="215"/>
<line x1="43.01" y1="494.11" x2="33.46" y2="498.39"/>
<line x1="317.78" y1="15.73" x2="316.9" y2="7.35"/>
<line x1="390.26" y1="704.87" x2="389.1" y2="693.82"/>
<line x1="696.71" y1="281.39" x2="687.59" y2="283.33"/>
<line x1="20.63" y1="425.4" x2="10.65" y2="427.52"/>
<line x1="686.83" y1="245.3" x2="678.09" y2="248.13"/>
<line x1="29.31" y1="458.28" x2="19.49" y2="461.46"/>
<line x1="426.6" y1="699.19" x2="424.31" y2="688.36"/>
<line x1="283" y1="21.25" x2="281.24" y2="12.97"/>
<line x1="248.87" y1="30.37" x2="246.21" y2="22.29"/>
<line x1="464.9" y1="688.83" x2="461.46" y2="678.36"/>
<line x1="215.53" y1="43.18" x2="212" y2="35.36"/>
<line x1="500.45" y1="674.76" x2="495.95" y2="664.8"/>
<line x1="561.72" y1="638.6" x2="555.38" y2="629.91"/>
<line x1="153.53" y1="79.08" x2="148.37" y2="72.01"/>
<line x1="589.26" y1="616.1" x2="582.15" y2="608.15"/>
<line x1="127.66" y1="99.95" x2="121.76" y2="93.35"/>
<line x1="615.3" y1="589.92" x2="607.46" y2="582.86"/>
<line x1="100.84" y1="126.6" x2="94.18" y2="120.6" />
<line x1="638.24" y1="561.47" x2="629.83" y2="555.31"/>
<line x1="79.69" y1="152.51" x2="72.37" y2="147.15"/>
<line x1="675.87" y1="495.47" x2="666.58" y2="491.35"/>
<line x1="43.23" y1="214.78" x2="34.69" y2="210.99"/>
<line x1="687.97" y1="463.31" x2="678.44" y2="460.17"/>
<line x1="30.69" y1="246.88" x2="21.67" y2="243.92"/>
<line x1="697.48" y1="427.13" x2="687.8" y2="425.06"/>
<line x1="20.9" y1="282.7" x2="11.49" y2="280.69"/>
<line x1="702.89" y1="391.7" x2="693.2" y2="390.66"/>
<line x1="15.22" y1="318.15" x2="5.51" y2="317.12"/>
</g>
<g id="hourHand">
<linearGradient id="linear-gradient" gradientUnits="userSpaceOnUse" x1="2373.8569" y1="-975.8845" x2="2579.5" y2="-975.8845" gradientTransform="matrix(3.467851e-03 -1 1 3.467851e-03 1321.8618 2747.7175)">
<stop offset="0.3988" style="stop-color: #a700e9" />
<stop offset="1" style="stop-color: #ff1528" />
</linearGradient>
<path d="M351.66,197.87c-0.99,0.01-6.19,0.3-9.16,4.91c-0.01,0.02-0.86,1.76-3.02,2.27c-0.47,0.11-0.71,0.4-0.7,0.82c0.05,1.53,4,4.98,9.52,5.96c-0.47,1.68-4.28,14.88-7.62,16.69l-6.11,1.09l0.09,0.2
c0.02,0.04,1.76,3.6,5.36,6.82c0.14,0.41,1.31,4.02-0.26,5.94c-0.87,1.06-2.43,1.43-4.66,1.1c-0.06-0.01-5.63-0.5-8.89,5.11c-0.47,0.81-0.88,1.56-1.27,2.28c-2.3,4.22-3.7,6.77-10.16,7.93l-0.08,0.01l-0.04,0.07c-0.02,0.03-0.38,0.76,0.04,1.79
c0.44,1.08,1.83,2.65,5.96,4.02c0.14,1.17,1.64,11.32,10.58,13.17c-0.17,1.24-1.12,8.96,1.77,10.29c1.78,0.82,4.62-1.01,8.43-5.42c1.16,0.97,10.11,8.8,9.46,19.39c-0.52,8.49-6.94,16.53-19.08,23.9l-0.08,0.05l0,0.09
c0,0.12,0.06,2.89,1.96,4.68c1.07,1.01,2.51,1.49,4.28,1.43c0.15,1.2,1.29,9.01,6.46,10.96c0.2,0.3,1.45,2.26,0.74,3.7c-0.5,1.03-1.88,1.6-4.1,1.69l-0.34,0.01l0.23,0.26c0.03,0.03,1.81,2.03,5.46,3.68c-1.7,1.87-2.75,4.36-2.76,7.09
c-0.02,5.85,4.72,10.62,10.56,10.64c5.85,0.02,10.62-4.72,10.64-10.56c0.01-2.73-1.02-5.22-2.71-7.11c3.66-1.62,5.46-3.61,5.48-3.64l0.23-0.26l-0.34-0.02c-2.22-0.11-3.59-0.68-4.09-1.72c-0.7-1.45,0.56-3.4,0.77-3.7
c5.18-1.92,6.38-9.72,6.53-10.92c1.77,0.07,3.21-0.4,4.29-1.4c1.91-1.77,1.99-4.55,2-4.67l0-0.09l-0.08-0.05c-12.09-7.45-18.45-15.54-18.91-24.03c-0.57-10.59,8.43-18.36,9.59-19.32c3.78,4.44,6.61,6.28,8.39,5.48
c2.89-1.3,2-9.04,1.84-10.28c8.95-1.79,10.51-11.93,10.66-13.1c4.14-1.34,5.55-2.9,5.99-3.98c0.16-0.38,0.21-0.71,0.21-0.99c0-0.48-0.15-0.78-0.16-0.8l-0.04-0.07l-0.08-0.02c-6.46-1.21-7.83-3.76-10.11-8c-0.39-0.73-0.79-1.48-1.26-2.29
c-3.23-5.63-8.8-5.18-8.87-5.17c-2.22,0.31-3.79-0.07-4.65-1.14c-1.55-1.93-0.36-5.53-0.22-5.94c3.63-3.19,5.39-6.75,5.41-6.78l0.1-0.2l-6.1-1.13c-3.33-1.83-7.04-15.05-7.5-16.74c5.53-0.94,9.5-4.36,9.56-5.89c0.02-0.41-0.23-0.71-0.7-0.83
c-2.15-0.52-2.99-2.27-3.01-2.31c-2.92-4.61-8.12-4.93-9.11-4.95l-0.96-33.04l-2.08-0.01l-2.08-0.01L351.66,197.87zM360.05,359.91c-0.01,3.2-2.62,5.79-5.82,5.78c-3.2-0.01-5.79-2.62-5.78-5.82c0.01-2.43,1.52-4.51,3.65-5.36
c0.63,0.11,1.29,0.21,1.99,0.28l0.18,0.02l0.18-0.02c0.69-0.06,1.35-0.15,1.99-0.26C358.56,355.39,360.06,357.48,360.05,359.91zM354.46,310.7c7.39,9.93,10.01,17.28,7.8,21.86c-2.05,4.24-7.71,4.46-7.76,4.46l-0.16,0l-0.16-0.01c-0.06,0-5.71-0.26-7.73-4.51
c-2.18-4.59,0.49-11.93,7.95-21.81l0.03-0.04L354.46,310.7z M337.39,267.08c-2.34,0.14-4.36,2.11-6.01,5.84c-1.01-0.9-6.21-5.88-5.78-11.9c0.28-4.08,3.07-7.8,8.25-11.02c0.09-0.04,9.42-3.7,14.42,3.65l0.02,0.03
c0.04,0.04,4.03,3.87,4.01,9.37c0,0.02,0,0.04,0,0.06c-0.03,3.83-1.97,7.55-5.76,11.07C345.82,273.01,341.8,266.81,337.39,267.08z M375.42,250.14c5.17,3.27,7.93,7,8.18,11.08c0.37,6.01-4.85,10.96-5.87,11.86c-1.63-3.74-3.63-5.72-5.98-5.88
c-4.41-0.3-8.47,5.87-9.19,7.02c-3.77-3.54-5.68-7.28-5.68-11.11c0-0.02,0-0.04,0-0.06c0.02-5.5,4.03-9.3,4.07-9.34l0.02-0.03C365.95,246.5,375.02,249.98,375.42,250.14z M361.87,231.63c1.02,0.13,1.85,0.79,2.45,1.94c2.79,5.31-9.49,14.51-9.61,14.61
l-0.07,0.05l-0.09,25.8l0.02,0.07c1.57,3.42,5.4,6.2,6.32,6.84c-2.13,1.55-6.18,7.48-6.36,7.74l-0.03,0.04l-0.03-0.04c-0.18-0.26-4.19-6.22-6.31-7.78c0.93-0.63,4.77-3.39,6.37-6.8l0.1-25.87l-0.07-0.05c-0.12-0.09-12.34-9.38-9.51-14.67
c0.61-1.15,1.44-1.79,2.46-1.92c3.02-0.38,6.84,3.77,6.87,3.81l0.29,0.31l0.29-0.31C355.01,235.35,358.85,231.23,361.87,231.63zM354.76,212.31l1.94,0.01c-0.58,4.56,3.57,10.91,4.4,12.13l-6.39,1.67l-6.38-1.71c0.84-1.21,5.03-7.54,4.49-12.1L354.76,212.31z"/>
</g>
<g id="minHand">
<path d="M354.65,111.28c1.5,19.79-6.71,42.25-6.71,42.25c6.29-1.17,5.71,1.83,5.71,1.83c4.52,16.35-12.45,54.22-12.45,54.22c-2.02,14.41,2.33,19.46,2.33,19.46c-9.8,3.91,0.42,5.7,0.42,5.7
c28.39,4.06,11.05,28.83,11.05,28.83c-20.17,21.69-10.43,48.13-10.43,48.13l-3.72,1.09c2.62,0.45,2.6,5.28,2.6,5.28c-1.97,1.97-1.32,3.07-1.32,3.07c2.4,1.11,1.3,3.96,1.3,3.96c-4.61,6.79,0.84,9.67,0.84,9.67l-1.1,1.75
c-3.67,5.92,2.06,12.86,4.56,15.45c-2.18,1.93-3.56,4.75-3.57,7.89c-0.02,5.85,4.72,10.62,10.56,10.64c5.85,0.02,10.62-4.72,10.64-10.56c0.01-3.88-2.07-7.28-5.18-9.14c8.47-5.42,8.14-18.3,8.14-18.3
c-4.56-6.32,3.54-12.63,3.54-12.63s-11.34-7.59-8.04-13.13c3.3-5.54,2.02-13.37,0.94-18.91c-1.07-5.54,5.05-8.14,4.19-9.88c-0.86-1.75-1.09-1.09-4.79-5.88s-1.29-7.18-1.29-7.18c12.74-16.92-10.56-39.61-10.56-39.61c-12.8-25.29,11.46-27.54,11.46-27.54
c-4.72-1.94-2.44-7.87-2.37-8.06c-5.03,1.96-5.46-1.53-5.46-1.53l2.3-33.13l5.68-0.41c0,0,0,0-3.03-7.2c-3.03-7.21-3.91-68.56-3.91-68.56l-2.26-0.01L354.65,111.28z M360.57,359.91c-0.01,3.2-2.62,5.79-5.82,5.78
c-3.2-0.01-5.79-2.62-5.78-5.82c0.01-3.2,2.62-5.79,5.82-5.78C357.99,354.1,360.58,356.71,360.57,359.91z M362.03,333.89c4.31,16.87-12.29,14.56-12.29,14.56c-7.86-3.09,0.89-4.15,1.55-6.77c0.66-2.62-3.27-3.76-3.27-3.76c5.94-5.04,2.2-5.64,2.2-5.64
c-3.93-1.11-3.92-3.95-3.92-3.95C361.84,324.24,362.03,333.89,362.03,333.89z M357.85,277.69c6.54,5.7-2.58,24.24-2.76,27.52c-0.18,3.28,7.73,12.48,7.73,12.48s2.1,1.46-2.27,3.01c0,0-14.84-5.91-13.05-18.58C349.29,289.46,351.32,271.98,357.85,277.69z"/>
</g>
<g id="secHand">
<line x1="353.85" y1="404.18" x2="354.61" y2="146.01" />
<circle cx="354.5" cy="358.24" r="11.21" />
</g>
</svg>
<aside class="setting-container">
<!-- toggle switches -->
<div class="switches-container">
<div class="toggle">
<label for="sound-checkbox">Sound Off</label>
<input
id="sound-checkbox"
type="checkbox"
class="sound-checkbox"
role="button"
aria-label="toggle button"
aria-discribe="clock sound toggle button"
/>
</div>
<div class="toggle">
<label for="color-checkbox">Light Mode</label>
<input
id="color-checkbox"
type="checkbox"
class="color-checkbox"
role="button"
aria-label="toggle button"
aria-discribe="light and darkmode toggle button"
/>
</div>
</div>
<!-- toggle switch end -->
<!-- settings start -->
<svg
class="setting-icon"
role="button"
aria-label="setting button"
version="1.1"
id="Layer_2"
x="0px"
y="0px"
role="button"
viewBox="0 0 276 254.11"
style="enable-background: new 0 0 276 254.11"
xml:space="preserve"
>
<g id="setting-icon">
<path d="M273.01,99.01c-3.23,0.7-6.57,1.07-10.01,1.07c-25.96,0-47-21.04-47-47c0-10.82,3.66-20.79,9.8-28.73C212.13,13.52,196.25,5.16,178.91,0c-5.94,19.16-23.8,33.08-44.91,33.08c-20.24,0-37.48-12.78-44.11-30.72
c-16.88,6.02-32.2,15.13-45.21,26.61C50.53,36.81,54,46.54,54,57.08c0,25.96-21.04,47-47,47c-1.68,0-3.33-0.09-4.97-0.26c-1.34,7.4-2.03,15-2.03,22.76c0,10.54,1.28,20.79,3.7,30.62c1.09-0.08,2.19-0.12,3.3-0.12c25.96,0,47,21.04,47,47
c0,8.34-2.17,16.17-5.98,22.96c13.24,10.95,28.67,19.52,45.57,25.03c8.19-13.77,23.22-22.99,40.41-22.99c18.02,0,33.68,10.14,41.56,25.03c17.59-4.76,33.75-12.79,47.73-23.36c-5.23-7.58-8.29-16.76-8.29-26.67c0-25.96,21.04-47,47-47
c3.45,0,6.82,0.37,10.06,1.08c2.57-10.12,3.94-20.7,3.94-31.58C276,117.13,274.97,107.9,273.01,99.01z M136.5,197.08c-37.83,0-68.5-30.67-68.5-68.5c0-37.83,30.67-68.5,68.5-68.5s68.5,30.67,68.5,68.5C205,166.41,174.33,197.08,136.5,197.08z"/>
<circle cx="137" cy="129.08" r="47" />
</g>
</svg>
<!-- settings end -->
</aside>
</main>
<aside class='error-container'>
<button class="close">✕</button>
</aside>
</body>
</html>