-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
224 lines (208 loc) · 12 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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!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>Ramadhan 1443H</title>
<link rel="stylesheet" href="./style.css">
<link rel="apple-touch-icon" sizes="180x180" href="./assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./assets/favicon-16x16.png">
<link rel="manifest" href="./assets/site.webmanifest">
<link rel="mask-icon" href="./assets/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#20211e">
</head>
<body id='mouse'>
<main id="box">
<div class="layer star" id="star">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 319.19 336.46" fill="#E0C336">
<title>Star</title>
<g id="Layer_7" data-name="Layer 7">
<path class="cls-1"
d="M58.21,301.74a1.73,1.73,0,0,0-1.33,1.33,1.75,1.75,0,0,0-1.34-1.33,1.75,1.75,0,0,0,1.34-1.33A1.73,1.73,0,0,0,58.21,301.74Z" />
<path class="cls-1"
d="M109.18,331.13a1.74,1.74,0,0,0-1.33,1.33,1.74,1.74,0,0,0-1.33-1.33,1.74,1.74,0,0,0,1.33-1.33A1.74,1.74,0,0,0,109.18,331.13Z" />
<path class="cls-1"
d="M55.54,138.52a1.74,1.74,0,0,0-1.33,1.33,1.74,1.74,0,0,0-1.33-1.33,1.74,1.74,0,0,0,1.33-1.33A1.74,1.74,0,0,0,55.54,138.52Z" />
<path class="cls-1"
d="M242,335.13a1.75,1.75,0,0,0-1.34,1.33,1.74,1.74,0,0,0-1.33-1.33,1.74,1.74,0,0,0,1.33-1.33A1.75,1.75,0,0,0,242,335.13Z" />
<path class="cls-1"
d="M30.38,77.8A1.74,1.74,0,0,0,29,79.13a1.71,1.71,0,0,0-1.33-1.33A1.74,1.74,0,0,0,29,76.46,1.77,1.77,0,0,0,30.38,77.8Z" />
<path class="cls-1"
d="M311.31,121.31a1.73,1.73,0,0,0-1.33,1.33,1.75,1.75,0,0,0-1.34-1.33A1.75,1.75,0,0,0,310,120,1.73,1.73,0,0,0,311.31,121.31Z" />
<path class="cls-1"
d="M72.87,248.51a1.73,1.73,0,0,0-1.33,1.33,1.75,1.75,0,0,0-1.34-1.33,1.75,1.75,0,0,0,1.34-1.33A1.73,1.73,0,0,0,72.87,248.51Z" />
<path class="cls-1"
d="M60.88,72a1.77,1.77,0,0,0-1.34,1.34A1.74,1.74,0,0,0,58.21,72a1.71,1.71,0,0,0,1.33-1.33A1.74,1.74,0,0,0,60.88,72Z" />
<path class="cls-1"
d="M319.19,298.12a1.73,1.73,0,0,0-1.33,1.33,1.73,1.73,0,0,0-1.33-1.33,1.75,1.75,0,0,0,1.33-1.34A1.75,1.75,0,0,0,319.19,298.12Z" />
<path class="cls-1"
d="M139.78,101.83a1.73,1.73,0,0,0-1.33,1.33,1.73,1.73,0,0,0-1.33-1.33,1.75,1.75,0,0,0,1.33-1.34A1.75,1.75,0,0,0,139.78,101.83Z" />
<path class="cls-1"
d="M46.27,205.47a1.74,1.74,0,0,0-1.33,1.33,1.75,1.75,0,0,0-1.34-1.33,1.75,1.75,0,0,0,1.34-1.33A1.74,1.74,0,0,0,46.27,205.47Z" />
<path class="cls-1"
d="M2.67,232.67A1.74,1.74,0,0,0,1.33,234,1.71,1.71,0,0,0,0,232.67a1.74,1.74,0,0,0,1.33-1.34A1.77,1.77,0,0,0,2.67,232.67Z" />
<path class="cls-1"
d="M91.77,124a1.77,1.77,0,0,0-1.34,1.34A1.74,1.74,0,0,0,89.1,124a1.71,1.71,0,0,0,1.33-1.33A1.74,1.74,0,0,0,91.77,124Z" />
<path class="cls-1"
d="M127.26,235.33a1.74,1.74,0,0,0-1.33,1.34,1.77,1.77,0,0,0-1.34-1.34,1.74,1.74,0,0,0,1.34-1.33A1.71,1.71,0,0,0,127.26,235.33Z" />
<path class="cls-1"
d="M153.64,303.07a1.77,1.77,0,0,0-1.34,1.34,1.75,1.75,0,0,0-1.33-1.34,1.73,1.73,0,0,0,1.33-1.33A1.74,1.74,0,0,0,153.64,303.07Z" />
<path class="cls-1"
d="M19.64,333.8a1.73,1.73,0,0,0-1.33,1.33A1.73,1.73,0,0,0,17,333.8a1.75,1.75,0,0,0,1.33-1.34A1.75,1.75,0,0,0,19.64,333.8Z" />
<path class="cls-1"
d="M174.92,58.21a1.74,1.74,0,0,0-1.33,1.34,1.77,1.77,0,0,0-1.34-1.34,1.74,1.74,0,0,0,1.34-1.33A1.71,1.71,0,0,0,174.92,58.21Z" />
<path class="cls-1"
d="M167.31,4A1.74,1.74,0,0,0,166,5.33,1.74,1.74,0,0,0,164.65,4,1.74,1.74,0,0,0,166,2.67,1.74,1.74,0,0,0,167.31,4Z" />
<path class="cls-1"
d="M253.49,190.49a1.75,1.75,0,0,0-1.33,1.34,1.75,1.75,0,0,0-1.33-1.34,1.74,1.74,0,0,0,1.33-1.33A1.74,1.74,0,0,0,253.49,190.49Z" />
<path class="cls-1"
d="M316.53,198.3a1.74,1.74,0,0,0-1.33,1.34,1.77,1.77,0,0,0-1.34-1.34A1.74,1.74,0,0,0,315.2,197,1.71,1.71,0,0,0,316.53,198.3Z" />
<path class="cls-1"
d="M281.94,59.55a1.74,1.74,0,0,0-1.33,1.33,1.74,1.74,0,0,0-1.33-1.33,1.75,1.75,0,0,0,1.33-1.34A1.75,1.75,0,0,0,281.94,59.55Z" />
<path class="cls-1"
d="M310,245a1.74,1.74,0,0,0-1.34,1.33,1.73,1.73,0,0,0-1.33-1.33,1.75,1.75,0,0,0,1.33-1.34A1.77,1.77,0,0,0,310,245Z" />
<path class="cls-1"
d="M195.19,214.75a1.74,1.74,0,0,0-1.33,1.34,1.77,1.77,0,0,0-1.34-1.34,1.74,1.74,0,0,0,1.34-1.33A1.71,1.71,0,0,0,195.19,214.75Z" />
<path class="cls-1"
d="M212.41,293.4a1.75,1.75,0,0,0-1.34,1.33,1.74,1.74,0,0,0-1.33-1.33,1.74,1.74,0,0,0,1.33-1.33A1.75,1.75,0,0,0,212.41,293.4Z" />
<path class="cls-1"
d="M259.29,125.31a1.73,1.73,0,0,0-1.33,1.33,1.75,1.75,0,0,0-1.34-1.33A1.77,1.77,0,0,0,258,124,1.74,1.74,0,0,0,259.29,125.31Z" />
<path class="cls-1"
d="M79.33,245a2.84,2.84,0,0,0-2.19,2.19A2.86,2.86,0,0,0,75,245a2.89,2.89,0,0,0,2.19-2.19A2.87,2.87,0,0,0,79.33,245Z" />
<path class="cls-1"
d="M237.1,77.8A2.83,2.83,0,0,0,234.91,80a2.86,2.86,0,0,0-2.19-2.19,2.89,2.89,0,0,0,2.19-2.19A2.86,2.86,0,0,0,237.1,77.8Z" />
<path class="cls-1"
d="M154.49,158.8A2.86,2.86,0,0,0,152.3,161a2.83,2.83,0,0,0-2.19-2.19,2.86,2.86,0,0,0,2.19-2.19A2.89,2.89,0,0,0,154.49,158.8Z" />
<path class="cls-1"
d="M279.28,272.18a2.83,2.83,0,0,0-2.19,2.19,2.86,2.86,0,0,0-2.19-2.19,2.89,2.89,0,0,0,2.19-2.19A2.86,2.86,0,0,0,279.28,272.18Z" />
<path class="cls-1"
d="M218,122.64a1.74,1.74,0,0,0-1.33,1.33,1.74,1.74,0,0,0-1.33-1.33,1.74,1.74,0,0,0,1.33-1.33A1.74,1.74,0,0,0,218,122.64Z" />
<path class="cls-1"
d="M239.76,73.3a1.73,1.73,0,0,0-1.33,1.33,1.73,1.73,0,0,0-1.33-1.33A1.75,1.75,0,0,0,238.43,72,1.75,1.75,0,0,0,239.76,73.3Z" />
<path class="cls-1"
d="M115.81,51a1.71,1.71,0,0,0-1.33,1.33A1.74,1.74,0,0,0,113.14,51a1.77,1.77,0,0,0,1.34-1.34A1.74,1.74,0,0,0,115.81,51Z" />
<path class="cls-1"
d="M47.6,1.33a1.75,1.75,0,0,0-1.33,1.34,1.75,1.75,0,0,0-1.33-1.34A1.73,1.73,0,0,0,46.27,0,1.73,1.73,0,0,0,47.6,1.33Z" />
</g>
</svg>
</div>
<div class="layer moon" id="moon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38.75 38.75">
<title>Moon</title>
<g id="Layer_2" data-name="Layer 2">
<g id="Layer_3" data-name="Layer 3">
<g>
<circle fill='#252623' class="cls-1" cx="19.37" cy="19.37" r="19.37" />
<path fill='#e0c336' class="cls-2"
d="M32.9,33.24a19.37,19.37,0,1,1-22.48-31,19.37,19.37,0,0,0,22.48,31Z" />
</g>
</g>
</g>
</svg>
</div>
<div class="layer mosque" id="mosque1">
<svg xmlns="http://www.w3.org/2000/svg" width="157.18" height="99.02" viewBox="0 0 157.18 99.02" fill='#272b3f'>
<title>Mosque2</title>
<g>
<path class="cls-1"
d="M133.47,99H23.71A23.71,23.71,0,0,1,0,75.31H0C0,47.78,22.93,31.22,49.86,25.46c22.34-4.79,28.73-13.1,28.73-13.1s6.69,8.31,28.73,13.1c26.91,5.83,49.86,22.32,49.86,49.85h0A23.7,23.7,0,0,1,133.47,99Z" />
<path class="cls-1"
d="M75.71,0a6.55,6.55,0,0,0,10,8.5,8.31,8.31,0,0,1-1.35.32,7.64,7.64,0,0,1-8.64-6.49A7.9,7.9,0,0,1,75.71,0Z" />
</g>
</svg>
</div>
<div class="layer mosque2" id="mosque2"><svg xmlns="http://www.w3.org/2000/svg" width="179.34" height="99.53"
viewBox="0 0 179.34 99.53" fill="#333a56">
<title>Mosque1</title>
<g>
<rect class="cls-1" x="1.83" y="21.58" width="32.09" height="77.95" />
<rect class="cls-1" y="19.95" width="35.74" height="4.32" />
<path class="cls-1"
d="M30.07,20.21H5.67A5.27,5.27,0,0,1,.4,14.94h0C.4,8.81,5.5,5.13,11.48,3.85,16.45,2.79,17.87,0,17.87,0s1.49,2.79,6.39,3.85c6,1.3,11.08,5,11.08,11.09h0A5.27,5.27,0,0,1,30.07,20.21Z" />
<path class="cls-1"
d="M158,99.53H59.26A21.33,21.33,0,0,1,37.93,78.2h0c0-24.77,20.63-39.67,44.85-44.85a73.74,73.74,0,0,0,16.76-5.5,21,21,0,0,1,18.29,0,74.91,74.91,0,0,0,16.65,5.51c24.21,5.25,44.86,20.08,44.86,44.85h0A21.33,21.33,0,0,1,158,99.53Z" />
</g>
</svg>
</div>
<div class="layer window" id="window">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 519.66 519.66" fill='#1f2028'>
<title>Window</title>
<g id="Layer_2" data-name="Layer 2">
<g id="Layer_5" data-name="Layer 5">
<path class="cls-1" d="M0,0V519.66H519.66V0ZM390.61,433.38H129.05V217.05a130.78,130.78,0,0,1,261.56,0Z" />
</g>
</g>
</svg>
</div>
</main>
<div class="text-wrap">
<div class="text right">
<p class="heading">Ramadhan</p>
<p>1443H / 2022M</p>
</div>
<p class="between"></p>
<div class="text">
<p class="heading">Count Down</p>
<p id='date'>00:00:00:00</p>
</div>
</div>
<footer>
created by <a href="https://github.com/angkasa27" target="_blank" rel="noreferrer">angkasa27</a>
</footer>
<script>
// Set the date we're counting down to
var countDownDate = new Date("Apr 22, 2022 20:00:00").getTime();
// Update the count down every 1 second
var x = setInterval(function () {
// Get today's date and time
var now = new Date().getTime();
// Find the distance between now and the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Output the result in an element with id="demo"
document.getElementById("date").innerHTML = days + "d " + hours + "h "
+ minutes + "m " + seconds + "s ";
// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("date").innerHTML = "EXPIRED";
}
}, 1000);
window.onload = function () {
var parallaxBox = document.getElementById('mouse');
var starLeft = document.getElementById('star').offsetLeft,
starTop = document.getElementById('star').offsetTop,
moonLeft = document.getElementById('moon').offsetLeft,
moonTop = document.getElementById('moon').offsetTop,
mosque1Left = document.getElementById('mosque1').offsetLeft,
mosque1Top = document.getElementById('mosque1').offsetTop,
mosque2Left = document.getElementById('mosque2').offsetLeft,
mosque2Top = document.getElementById('mosque2').offsetTop;
parallaxBox.onmousemove = function (event) {
event = event || window.event;
var x = event.clientX - parallaxBox.offsetLeft,
y = event.clientY - parallaxBox.offsetTop;
mouseParallax('star', starLeft, starTop, x, y, 20);
mouseParallax('moon', moonLeft, moonTop, x, y, 15);
mouseParallax('mosque1', mosque1Left, mosque1Top, x, y, 5);
mouseParallax('mosque2', mosque2Left, mosque2Top, x, y, 3);
}
}
function mouseParallax(id, left, top, mouseX, mouseY, speed) {
var obj = document.getElementById(id);
var parentObj = obj.parentNode,
containerWidth = parseInt(parentObj.offsetWidth),
containerHeight = parseInt(parentObj.offsetHeight);
obj.style.left = left + (((mouseX - (parseInt(obj.offsetWidth) / 2 + left)) / containerWidth) * speed) + 'px';
obj.style.top = top + (((mouseY - (parseInt(obj.offsetHeight) / 2 + top)) / containerHeight) * speed) + 'px';
}
</script>
</body>
</html>