-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompass.html
138 lines (136 loc) · 6.15 KB
/
compass.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
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="compass.css" rel="stylesheet">
</head>
<body>
<div class="container noselect" style="--bodycolor:rgb(219, 215, 179);--bgcolor:rgb(12, 23, 29);">
<div class="heading"></div>
<div class="compass">
<div class="moving">
<div class="outer"></div>
<div class="inner">
<!-- degrees -->
<div class="degs">
<span style="--i:0;"></span>
<span style="--i:1;"></span>
<span style="--i:2;"></span>
<span style="--i:3;"></span>
<span style="--i:4;"></span>
<span style="--i:5;"></span>
<span style="--i:6;"></span>
<span style="--i:7;"></span>
<span style="--i:8;"></span>
<span style="--i:9;"></span>
<span style="--i:10;"></span>
<span style="--i:11;"></span>
<span style="--i:12;"></span>
<span style="--i:13;"></span>
<span style="--i:14;"></span>
<span style="--i:15;"></span>
<span style="--i:16;"></span>
<span style="--i:17;"></span>
<span style="--i:18;"></span>
<span style="--i:19;"></span>
<span style="--i:20;"></span>
<span style="--i:21;"></span>
<span style="--i:22;"></span>
<span style="--i:23;"></span>
<span style="--i:24;"></span>
<span style="--i:25;"></span>
<span style="--i:26;"></span>
<span style="--i:27;"></span>
<span style="--i:28;"></span>
<span style="--i:29;"></span>
<span style="--i:30;"></span>
<span style="--i:31;"></span>
<span style="--i:32;"></span>
<span style="--i:33;"></span>
<span style="--i:34;"></span>
<span style="--i:35;"></span>
</div>
<div class="degcircshape">
<span style="--i:1;">10</span>
<span style="--i:2;">20</span>
<span style="--i:3;">30</span>
<span style="--i:4;">40</span>
<span style="--i:5;">50</span>
<span style="--i:6;">60</span>
<span style="--i:7;">70</span>
<span style="--i:8;">80</span>
<span style="--i:10;">100</span>
<span style="--i:11;">110</span>
<span style="--i:12;">120</span>
<span style="--i:13;">130</span>
<span style="--i:14;">140</span>
<span style="--i:15;">150</span>
<span style="--i:16;">160</span>
<span style="--i:17;">170</span>
<span style="--i:19;">190</span>
<span style="--i:20;">200</span>
<span style="--i:21;">210</span>
<span style="--i:22;">220</span>
<span style="--i:23;">230</span>
<span style="--i:24;">240</span>
<span style="--i:25;">250</span>
<span style="--i:26;">260</span>
<span style="--i:28;">280</span>
<span style="--i:29;">290</span>
<span style="--i:30;">300</span>
<span style="--i:31;">310</span>
<span style="--i:32;">320</span>
<span style="--i:33;">330</span>
<span style="--i:34;">340</span>
<span style="--i:35;">350</span>
</div>
<!-- quarters -->
<div class="quarters">
<span style="--i:0;"></span>
<span style="--i:9;"></span>
<span style="--i:18;"></span>
<span style="--i:27;"></span>
</div>
<div class="quartercircshape">
<span style="--i:0;">000</span>
<span style="--i:9;">090</span>
<span style="--i:18;">180</span>
<span style="--i:27;">270</span>
</div>
<div class="needle">
<div class="circle"></div>
<span></span>
</div>
</div>
</div>
<!-- static needle -->
<div class="static">
<div class="axis"></div>
<div class="arrow">
<div class="head"></div>
<div class="body"></div>
</div>
<!-- gauge shine -->
<div class="gauge-shine"></div>
</div>
</div>
<div class="gear-container">
<div class="gear">
<div class="center">
<div class="outerarrow"></div>
<div class="innerarrow"></div>
</div>
<div class="tooth" style="--i:0;"></div>
<div class="tooth" style="--i:1;"></div>
<div class="tooth" style="--i:2;"></div>
<div class="tooth" style="--i:3;"></div>
<div class="tooth" style="--i:4;"></div>
<div class="tooth" style="--i:5;"></div>
</div>
</div>
</div>
</body>
<script defer src="compass.js"></script>
</html>