-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
90 lines (83 loc) · 2.42 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
<!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>Analog Clock</title>
<link rel="stylesheet" href="./index.css" />
</head>
<body>
<div class="time-container">
<div class="clock-container">
<svg width="200" height="200" viewBox="-100 -100 200 200">
<circle r="97" class="clock-background" />
<text x="0" y="0" font-size="20px" dx="-10px" dy="-55px">12</text>
<text x="0" y="0" font-size="20px" dx="60px" dy="6px">3</text>
<text x="0" y="0" font-size="20px" dx="-5px" dy="70px">6</text>
<text x="0" y="0" font-size="20px" dx="-70px" dy="6px">9</text>
<circle
class="minute_marker"
r="90"
pathlength="60"
fill="transparent"
stroke="#0f0e0e"
stroke-width="7"
stroke-dasharray="0.2 0.8"
stroke-dashoffset="0.1"
/>
<circle
class="hour_marker"
r="88"
;
pathlength="60"
;
fill="transparent"
stroke-width="12"
stroke-dasharray="0.5 4.5"
stroke-dashoffset="0.3"
/>
<g class="hour_hand">
<line
class="hand hand--thick hour--design"
x1="0"
y1="20"
x2="0"
y2="-50"
/>
</g>
<g class="minute_hand">
<line
class="hand hand--thick minute--design"
x1="0"
y1="20"
x2="0"
y2="-80"
/>
</g>
<g class="second_hand">
<line class="hand hand--second" x1="0" y1="12" x2="0" y2="-80" />
</g>
</svg>
</div>
<div class="display"></div>
</div>
<div class="credit">
<div>
<span> Thanks to </span>
<span>
<a
class="link"
href="https://www.freecodecamp.org/news/author/hunor/"
target="_blank"
rel="noopener noreferrer"
>
<strong>Hunor Márton Borbély</strong>
</a>
</span>
</div>
</div>
<!-- javascript -->
<script type="text/javascript" src="./index.js"></script>
</body>
</html>