-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadkarg.html
71 lines (70 loc) · 2.59 KB
/
adkarg.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
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>أذكار الصباح والمساء</title>
<style>
body {
font-family: 'Amiri', serif;
background: url('https://web.opendrive.com/api/v1/download/file.json/ODZfNjkwMzQ1NzNf?temp_key=%AD%A9%9Au%A9%F6%D3yZ%9E%D7%AB%9F%5D%FA%EB%1E%FA%F2%3A%60&inline=1');
background-blend-mode: multiply;
background-size: cover;
text-align: center;
color: #ffffff;
backdrop-filter: blur(3px);
overflow: hidden;
font-size: 30px;
}
.main-content {
overflow-y: auto;
max-height: 100vh;
padding: 1.5rem;
}
.container {
background: rgba(0, 0, 0, 0.6);
padding: 20px;
border-radius: 15px;
margin: 20px;
box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}
h1 {
font-size: 3em;
color: #ac9408;
text-align: center;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div class="main-content">
<h1>أذكار الصباح والمساء</h1>
<div id="adkar-container" class="container"></div>
<script>
async function fetchAdkar() {
try {
const response = await fetch('https://www.hisnmuslim.com/api/ar/27.json');
const data = await response.json();
const adkarContainer = document.getElementById('adkar-container');
data['أذكار الصباح والمساء'].forEach(dhikr => {
const dhikrDiv = document.createElement('div');
dhikrDiv.classList.add('mb-6', 'p-4', 'border', 'border-yellow-400', 'rounded-lg');
dhikrDiv.innerHTML = `
<p class="text-xl mb-2">${dhikr.ARABIC_TEXT}</p>
<audio controls>
<source src="${dhikr.AUDIO}" type="audio/mpeg">
متصفحك لا يدعم عنصر الصوت.
</audio>
`;
adkarContainer.appendChild(dhikrDiv);
});
} catch (error) {
console.error('Erreur lors du chargement des adhkars:', error);
}
}
fetchAdkar();
</script>
</div>
</body>
</html>