-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
292 lines (270 loc) · 15.7 KB
/
index.html
File metadata and controls
292 lines (270 loc) · 15.7 KB
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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prayer Hub</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap">
</head>
<body class="dark">
<div class="container">
<!-- hna lheader w navbar -->
<header>
<h1 class="logo"><a href="#" style="text-decoration: none; color: var(--accent-color);"> Prayer Hub </a></h1>
<div class="endnav">
<a href="#" id="prayer-times-link" class="btn active">Prayer Times</a>
<a href="#" id="hadiths-link" class="btn">Hadiths</a>
<button id="theme-toggle" aria-label="Toggle theme">
<svg id="sun-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
<svg id="moon-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon hidden">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
</button></div>
</header>
<!-- Prayer Times Section -->
<div id="prayer-times-section">
<div class="hero">
<h1>Prayer Hub</h1>
<p>Consultez les horaires de prière en temps réel</p>
<div class="location-selector">
<button id="location-button">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path>
<circle cx="12" cy="10" r="3"></circle>
</svg>
<span id="selected-location">Mecca, Saudi Arabia</span>
</button>
<div id="location-dropdown" class="dropdown hidden">
<h3>Select Location</h3>
<div class="popular-locations">
<button data-city="Mecca" data-country="Saudi Arabia">Mecca, Saudi Arabia</button>
<button data-city="Medina" data-country="Saudi Arabia">Medina, Saudi Arabia</button>
<button data-city="Alger" data-country="Algeria">Alger, Algeria</button>
<button data-city="Cairo" data-country="Egypt">Cairo, Egypt</button>
<button data-city="Istanbul" data-country="Turkey">Istanbul, Turkey</button>
<button data-city="Dubai" data-country="UAE">Dubai, UAE</button>
<button data-city="London" data-country="France">Paris, France</button>
</div>
<div class="custom-location">
<div class="input-group">
<label for="city">City</label>
<input type="text" id="city" value="Mecca">
</div>
<div class="input-group">
<label for="country">Country</label>
<input type="text" id="country" value="Saudi Arabia">
</div>
</div>
<button id="apply-location" class="btn-primary">Apply</button>
</div>
</div>
<div class="datetime">
<p id="current-date" class="date"></p>
<p id="current-time" class="time"></p>
</div>
<div class="date-selector">
<button id="date-button">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
<rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
<line x1="16" x2="16" y1="2" y2="6"></line>
<line x1="8" x2="8" y1="2" y2="6"></line>
<line x1="3" x2="21" y1="10" y2="10"></line>
</svg>
<span id="selected-date"></span>
</button>
<div id="date-dropdown" class="dropdown hidden">
<h3>Select Date</h3>
<input type="date" id="date-picker">
<div class="date-actions">
<button id="today-button" class="btn-secondary">Today</button>
<button id="apply-date" class="btn-primary">Apply</button>
</div>
</div>
</div>
</div>
<div id="islamic-date" class="islamic-date">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
<rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
<line x1="16" x2="16" y1="2" y2="6"></line>
<line x1="8" x2="8" y1="2" y2="6"></line>
<line x1="3" x2="21" y1="10" y2="10"></line>
</svg>
<span></span>
</div>
<h2 class="section-title">Horaires de prière</h2>
<div class="prayer-grid">
<div class="prayer-card">
<div class="card-header">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
<rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
<line x1="16" x2="16" y1="2" y2="6"></line>
<line x1="8" x2="8" y1="2" y2="6"></line>
<line x1="3" x2="21" y1="10" y2="10"></line>
</svg>
<h3>Prières quotidiennes</h3>
</div>
<div id="daily-prayers" class="prayer-list">
<div class="prayer-item" data-prayer="Fajr">
<div class="prayer-name">
<span>Fajr</span>
<span class="arabic">الفجر</span>
</div>
<div class="prayer-time">--:--</div>
</div>
<div class="prayer-item" data-prayer="Dhuhr">
<div class="prayer-name">
<span>Dhuhr</span>
<span class="arabic">الظهر</span>
</div>
<div class="prayer-time">--:--</div>
</div>
<div class="prayer-item" data-prayer="Asr">
<div class="prayer-name">
<span>Asr</span>
<span class="arabic">العصر</span>
</div>
<div class="prayer-time">--:--</div>
</div>
<div class="prayer-item" data-prayer="Maghrib">
<div class="prayer-name">
<span>Maghrib</span>
<span class="arabic">المغرب</span>
</div>
<div class="prayer-time">--:--</div>
</div>
<div class="prayer-item" data-prayer="Isha">
<div class="prayer-name">
<span>Isha</span>
<span class="arabic">العشاء</span>
</div>
<div class="prayer-time">--:--</div>
</div>
</div>
</div>
<div class="prayer-card">
<div class="card-header">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
<circle cx="12" cy="12" r="10"></circle>
<polyline points="12 6 12 12 16 14"></polyline>
</svg>
<h3>Horaires importants</h3>
</div>
<div id="important-times" class="prayer-list">
<div class="prayer-item" data-prayer="Sunrise">
<div class="prayer-name">
<span>Sunrise</span>
<span class="arabic">الشروق</span>
</div>
<div class="prayer-time">--:--</div>
</div>
<div class="prayer-item" data-prayer="Sunset">
<div class="prayer-name">
<span>Sunset</span>
<span class="arabic">الغروب</span>
</div>
<div class="prayer-time">--:--</div>
</div>
<div class="prayer-item" data-prayer="Imsak">
<div class="prayer-name">
<span>Imsak</span>
<span class="arabic">الإمساك</span>
</div>
<div class="prayer-time">--:--</div>
</div>
<div class="prayer-item" data-prayer="Iftar">
<div class="prayer-name">
<span>Iftar (Maghrib)</span>
<span class="arabic">الإفطار</span>
</div>
<div class="prayer-time">--:--</div>
</div>
<div class="prayer-item" data-prayer="Midnight" style="display: none;">
<div class="prayer-name">
<span>Midnight</span>
<span class="arabic">منتصف الليل</span>
</div>
<div class="prayer-time">--:--</div>
</div>
</div>
</div>
</div>
<div class="tabs">
<button id="daily-tab" class="tab active" style="display: none;">Daily</button>
<button id="monthly-tab" class="tab" style="display: none;">Monthly</button>
</div>
<div id="monthly-view" class="monthly-view hidden">
<div class="month-navigation">
<button id="prev-month">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
<polyline points="15 18 9 12 15 6"></polyline>
</svg>
</button>
<h3 id="month-year">March 2025</h3>
<button id="next-month">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</button>
</div>
<div class="table-container">
<table id="monthly-table">
<thead>
<tr>
<th>Date</th>
<th>Fajr</th>
<th>Sunrise</th>
<th>Dhuhr</th>
<th>Asr</th>
<th>Maghrib</th>
<th>Isha</th>
<th>Imsak</th>
<th>Midnight</th>
</tr>
</thead>
<tbody id="monthly-tbody">
<tr>
<td colspan="9" class="loading">Loading monthly data...</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- Hadiths Section -->
<div id="hadiths-section" class="hidden">
<div class="hadiths-container">
<h1 class="hadiths-title">Hadiths</h1>
<p class="hadiths-subtitle">Découvrez les hadiths classés par narrateurs</p>
<div class="narrators-tabs">
<button class="narrator-tab" data-narrator="bukhari">Bukhari</button>
<button class="narrator-tab active" data-narrator="muslim">Muslim</button>
<button class="narrator-tab" data-narrator="tirmidhi">At-Tirmidhi</button>
<button class="narrator-tab" data-narrator="abu-dawud">Abu Dawud</button>
</div>
<div id="hadiths-list" class="hadiths-list">
<!-- Hadiths is here -->
</div>
</div>
</div>
<footer>
<p>Prayer Hub © 2025 | Made by Dhyaa & Nizar</p>
</footer>
</div>
<div id="loading-overlay" class="loading-overlay">
<div class="spinner"></div>
<p id="loading-text">Loading prayer times...</p>
</div>
<script src="script.js"></script>
</body>
</html>