-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclock.html
More file actions
38 lines (38 loc) · 1.74 KB
/
clock.html
File metadata and controls
38 lines (38 loc) · 1.74 KB
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
<!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>Custom Analog clock</title>
<link rel="stylesheet" href="clock.css">
</head>
<body>
<div class="container">
<div class="clock">
<div class="pivot"></div>
<div class="hand" id="hrshand"><i></i></div>
<div class="hand" id="minhand"><i></i></div>
<div class="hand" id="sechand"><i></i></div>
<span style="--disp: 1"> <div class="hr"> 1 </div></span>
<span style="--disp: 2"> <div class="hr"> 2 </div></span>
<span style="--disp: 3"> <div class="hr"> 3 </div></span>
<span style="--disp: 4"> <div class="hr"> 4 </div></span>
<span style="--disp: 5"> <div class="hr"> 5 </div></span>
<span style="--disp: 6"> <div class="hr"> 6 </div></span>
<span style="--disp: 7"> <div class="hr"> 7 </div></span>
<span style="--disp: 8"> <div class="hr"> 8 </div></span>
<span style="--disp: 9"> <div class="hr"> 9 </div></span>
<span style="--disp: 10"> <div class="hr"> 10 </div></span>
<span style="--disp: 11"> <div class="hr"> 11 </div></span>
<span style="--disp: 12"> <div class="hr"> 12 </div></span>
</div>
<div class="digital">
<div class="dhrs"><span>00</span> <small><sub>hrs</sub></small> </div>
<div class="dmin"><span>00</span> <small><sub>min</sub></small> </div>
<div class="dsec"><span>01</span> <small><sub>sec</sub></small> </div>
</div>
</div>
<script src="./clock.js"></script>
</body>
</html>