-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
64 lines (56 loc) · 3.28 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
<!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>Muslim Clock</title>
<link rel="stylesheet" href="style.css">
<script src="script.js" type="module"></script>
</head>
<body>
<main>
<div class="container">
<div class="clock">
<svg class="clockface" width="500" height="500" viewbox="-250 -250 500 500">
<defs>
<marker id="prayerMarker" viewBox="0 0 10 10" markerWidth="5" markerHeight="5" refX="5" refY="5"
fill="var(--highlight)">
<circle cx="5" cy="5" r="5" />
</marker>
</defs>
<circle class="ring ring--seconds" r="125" fill="transparent" pathlength="60" />
<circle class="ring ring--hours" r="125" pathlength="12" />
<text class="hour-number" transform="translate(0,-110) rotate(30)" transform-origin="0 110">1</text>
<text class="hour-number" transform="translate(0,-110) rotate(60)" transform-origin="0 110">2</text>
<text class="hour-number" transform="translate(0,-110) rotate(90)" transform-origin="0 110">3</text>
<text class="hour-number" transform="translate(0,-110) rotate(120)" transform-origin="0 110">4</text>
<text class="hour-number" transform="translate(0,-110) rotate(150)" transform-origin="0 110">5</text>
<text class="hour-number" transform="translate(0,-110) rotate(180)" transform-origin="0 110">6</text>
<text class="hour-number" transform="translate(0,-110) rotate(210)" transform-origin="0 110">7</text>
<text class="hour-number" transform="translate(0,-110) rotate(240)" transform-origin="0 110">8</text>
<text class="hour-number" transform="translate(0,-110) rotate(270)" transform-origin="0 110">9</text>
<text class="hour-number" transform="translate(0,-110) rotate(300)" transform-origin="0 110">10</text>
<text class="hour-number" transform="translate(0,-110) rotate(330)" transform-origin="0 110">11</text>
<text class="hour-number" transform="translate(0,-110)" transform-origin="0 110">12</text>
<line class="hand hand--minute" x1="0" y1="2" x2="0" y2="-105" />
<line class="hand hand--hour" x1="0" y1="2" x2="0" y2="-60" />
<line class="hand hand--second" x1="0" y1="12" x2="0" y2="-130" />
<circle class="ring ring--center" r="3" />
<path class="prayertime dhuhr-arc" id="dhuhr-arc" />
<path class="prayertime asr-arc" id="asr-arc" />
<path class="prayertime maghrib-arc" id="maghrib-arc" />
<path class="prayertime isha-arc" id="isha-arc" />
<path class="prayertime fajr-arc" id="fajr-arc" />
<circle id="prayer-tracker" r="5" fill="var(--secondary)" />
<text class="prayertime prayer--labels" id="dhuhr">الظهر</text>
<text class="prayertime prayer--labels" id="asr">العصر</text>
<text class="prayertime prayer--labels" id="maghrib">المغرب</text>
<text class="prayertime prayer--labels" id="isha">العشاء</text>
<text class="prayertime prayer--labels" id="fajr">الفجر</text>
</svg>
</div>
</div>
</main>
</body>
</html>