forked from sidiqprihatno/doa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dzikir-sepanjang-waktu.html
186 lines (158 loc) · 8.42 KB
/
dzikir-sepanjang-waktu.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
<!DOCTYPE html>
<html lang="en" class="h-full scroll-smooth">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, height=device-height, minimum-scale=1.0, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Doa & Dzikir - Dzikir Sepanjang Waktu</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="style.css?v=23.04.21">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#a855f7">
<meta name="msapplication-TileColor" content="#a855f7">
</head>
<body id="body">
<article class="max-w-[800px] container mx-auto flex-col">
<div class="flex items-center gap-3 -mt-3">
<a href="./" class="back">
<span class="sr-only">Kembali</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6 h-6">
<path fill-rule="evenodd" d="M11.03 3.97a.75.75 0 010 1.06l-6.22 6.22H21a.75.75 0 010 1.5H4.81l6.22 6.22a.75.75 0 11-1.06 1.06l-7.5-7.5a.75.75 0 010-1.06l7.5-7.5a.75.75 0 011.06 0z" clip-rule="evenodd" />
</svg>
</a>
<h1>Dzikir Sepanjang Waktu</h1>
</div>
<section class="mb-8">
<div class="heading">
<span class="number">1</span>
<h3>Judul</h3>
</div>
<div class="card">
<p class="doa">Arabic</p>
<p class="latin">Latin</p>
<p class="mt-5">Arti</p>
<p class="dalil">Dalil</p>
</div>
</section>
<div class="card clickable mt-5" data-dzikir="3">
<button class="card-click-area"></button>
<div class="card-count">0</div>
<p class="doa">Arabic</p>
<p class="latin">Latin</p>
<p class="mt-5 text-slate-500">Dibaca 3x</p>
<p class="mt-5">"Arti"</p>
<p class="dalil">Dalil</p>
<span class="card-hint">Klick/Tap untuk menghitung dzikir</span>
</div>
<div class="mt-10 text-slate-600 dark:text-slate-500">
<h3>Hukum Memakai Tasbih Untuk Berdzikir</h3>
<p class="mt-5 italic">"Diperbolehkan menggunakan tasbih, akan tetapi yang lebih utama adalah bertasbih dengan jari-jari tangan, karena Nabi ﷺ bersabda "Hitunglah dengan jar-jari, karena ia nanti bisa berbicara".</p>
<p class="mt-5 italic">Dan karena membaca tasbih bisa jadi menimbulkan riya', karena sering bertasbih dengan tasbih biasanya hatinya tidak hadir, melihat kanan kiri, maka jari-jari adalah lebih utama. (Fatwa al-'Utsaimin)</p>
<p class="mt-5"><a href="https://bekalislam.firanda.com/5421-hukum-memakai-tasbih-untuk-berdzikir.html" class="underline">https://bekalislam.firanda.com/5421-hukum-memakai-tasbih-untuk-berdzikir.html</a></p>
</div>
</article>
<nav id="bottom-navbar" class="sticky bottom-0 bg-gradient-to-t dark:from-slate-950 from-slate-100 pb-5 pt-8 mt-auto z-40 -mx-5">
<div class="max-w-lg container mx-auto">
<div class="flex justify-center p-1 gap-3">
<div class="rounded-full dark:bg-white bg-black bg-opacity-10 dark:bg-opacity-10 backdrop-blur-xl flex items-center relative">
<div class="h-12 w-12 flex items-center justify-center dark:text-slate-950 text-slate-100">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607zM10.5 7.5v6m3-3h-6" />
</svg>
</div>
<button class="p-1 relative z-10" onclick="changeFontSize('doa-x1')">
<span class="change-size-item">
1<small class="ml-0.5">x</small>
</span>
</button>
<button class="p-1 relative z-10" onclick="changeFontSize('doa-x2')">
<span class="change-size-item">
2<small class="ml-0.5">x</small>
</span>
</button>
<button class="p-1 relative z-10" onclick="changeFontSize('doa-x3')">
<span class="change-size-item">
3<small class="ml-0.5">x</small>
</span>
</button>
<span class="change-size-state"></span>
</div>
<button class="w-12 h-12 rounded-full bg-black dark:bg-white bg-opacity-10 dark:bg-opacity-10 backdrop-blur-xl flex items-center justify-center" onclick="backTop()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 19.5v-15m0 0l-6.75 6.75M12 4.5l6.75 6.75" />
</svg>
</button>
</div>
</div>
<div id="hiddenDiv" class="fixed text-transparent"></div>
</nav> <footer class="footer ">
<p>Kumpulan teks do'a dan dzikir mayoritas diambil dari aplikasi BekalIslam oleh <a href="https://bekalislam.firanda.com/" class="underline" target="_blank">Al Ustadz Firanda Andirja</a></p>
<p class="mt-5">© 2023 <a href="https://www.abusofiya/" class="underline" target="_blank">Abu Sofiya</a></p>
</footer>
<script>
window.addEventListener("beforeinstallprompt", (beforeInstallPromptEvent) => {
beforeInstallPromptEvent.preventDefault(); // Prevents immediate prompt display
// Shows prompt after a user clicks an "install" button
installButton.addEventListener("click", (mouseEvent) => {
// you should not use the MouseEvent here, obviously
beforeInstallPromptEvent.prompt();
});
installButton.hidden = false; // Make button operable
});
let dzikir = document.getElementsByClassName('clickable button');
let counter = 0;
document.addEventListener('click', function(event){
let parent = event.target.parentElement;
let dzikirMax = parent.dataset.dzikir;
let dzikirCount = parent.querySelector('.card-count');
let dzikirCounter = parseInt(dzikirCount.innerHTML);
console.log(dzikirCount);
parent.classList.add('counted');
if (dzikirCounter < dzikirMax) {
dzikirCounter++;
dzikirCount.innerHTML = dzikirCounter;
parent.classList.add('clicked');
setTimeout(function() {
parent.classList.remove('clicked');
}, 100)
}
if (dzikirCounter == dzikirMax) {
parent.classList.add('completed');
parent.classList.remove('clickable');
dzikirCount.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5" /></svg>'
}
})
// prevent unwanted space when scrolling down on android
var repositionKey = false;
function onResize() {
repositionKey = !repositionKey;
document.getElementById("hiddenDiv").innerHTML = repositionKey;
}
addEventListener("resize", onResize);
// change arabic font size
var doa = document.getElementById('body');
function changeFontSize(size) {
if (size != '') {
doa.className = '';
doa.classList.add(size);
} else {
doa.className = '';
}
localStorage.setItem("fontSize", size);
}
var fontSize = localStorage.getItem("fontSize");
if (fontSize != '') {
doa.classList.add(fontSize);
}
// back to top
function backTop() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
};
</script>
</body>
</html>