-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
52 lines (52 loc) · 2.14 KB
/
template.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
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="-1024 -1024 2048 2048" width="100%" height="100%">
<title>Swiss Railway Clock</title>
<style type="text/css">
.bg {stroke: none; fill: none;}
.fc {stroke: none; fill: black;}
.h1 {stroke: none; fill: black;}
.h2 {stroke: none; fill: #aa0000;}
</style>
<defs>
<path id="mark1" d="M -20,-1000 l 40,0 0,100 -40,0 z" />
<path id="mark2" d="M -40,-1000 l 80,0 0,240 -80,0 z" />
<path id="mark3" d="M -40,-1000 l 80,0 0,300 -80,0 z" />
<path id="handh" d="M -50,-600 l 50,-50 50,50 0,800 -100,0 z" />
<path id="handm" d="M -40,-900 l 40,-40 40,40 0,1180 -80,0 z" />
<g id="hands">
<path d="M -10,-910 l 10,-10 10,10 2,300 -24,0 z
M -13,-390 l 26,0 7,690 -40,0 z" />
<path d="M 0,-620 a 120,120 0 0 1 0,240
a 120,120 0 0 1 0,-240 z
M 0,-560 a 60,60 0 0 0 0,120
a 60,60 0 0 0 0,-120 z" />
</g>
<g id="face1">
<use xlink:href="#mark1" transform="rotate(06)" />
<use xlink:href="#mark1" transform="rotate(12)" />
<use xlink:href="#mark1" transform="rotate(18)" />
<use xlink:href="#mark1" transform="rotate(24)" />
</g>
<g id="face2">
<use xlink:href="#face1" />
<use xlink:href="#face1" transform="rotate(30)" />
<use xlink:href="#face1" transform="rotate(60)" />
<use xlink:href="#mark3" />
<use xlink:href="#mark2" transform="rotate(30)" />
<use xlink:href="#mark2" transform="rotate(60)" />
</g>
<g id="face">
<use xlink:href="#face2" />
<use xlink:href="#face2" transform="rotate(90)" />
<use xlink:href="#face2" transform="rotate(180)" />
<use xlink:href="#face2" transform="rotate(270)" />
</g>
</defs>
<circle class="bg" r="1024" />
<use xlink:href="#face" class="fc" />
<use xlink:href="#handh" class="h1 hr" transform="rotate(0)" />
<use xlink:href="#handm" class="h1 min" transform="rotate(0)" />
<use xlink:href="#hands" class="h2 sec" transform="rotate(0)" />
<!-- hands at 10:09:02 -->
</svg>