-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassma.html
368 lines (309 loc) · 15.6 KB
/
assma.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
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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
<!DOCTYPE html>
<html dir="rtl" lang="ar">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="color-scheme" content="light dark">
<link rel="shortcut icon" href="favicon.ico">
<link rel="icon" href="images/logo.png" type="image/png">
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="images/salah-icon-152.png">
<link rel="manifest" href="manifest.json">
<title>أسماء الله الحسني </title>
<meta name="description" content="أسماء الله الحسني ">
<meta name="keywords" content="أسماء الله الحسني">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.10.5/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.rtl.min.css" integrity="sha384-+qdLaIRZfNu4cVPK/PxJJEy0B0f3Ugv8i482AKY7gwXwhaCroABd086ybrVKTa0q" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@100;300;400&family=Reem+Kufi&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<nav class="navbar fixed-top justify-content-center">
<div class="btn-group" role="group" aria-label="Basic example">
<a href="index.html" data-bs-toggle="tooltip" title="مواقيت الصلاة اليوم" data-bs-placement="bottom" class="btn btn-info"><i class="icons bi bi-alarm-fill"></i></a>
<a href="months.html" data-bs-toggle="tooltip" title="مواقيت الشهر" data-bs-placement="bottom" class="btn btn-info"><i class="icons bi bi-calendar-check-fill"></i></a>
<div class="btn-group" role="group">
<button id="btnGroupDrop1" type="button" class="btn btn-info active dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
<i class="icons bi bi-book"></i>
</button>
<ul class="dropdown-menu" aria-labelledby="btnGroupDrop1">
<li><a class="dropdown-item" href="azkarsabah.html">أذكار الصباح</a></li>
<li><a class="dropdown-item" href="azkarmassa.html">أذكار المساء</a></li>
<li><a class="dropdown-item" href="assma.html">أسماء الله الحسني</a></li>
</ul>
</div>
<a href="kibla.html" data-bs-toggle="tooltip" title="إتجاه القبلة" data-bs-placement="bottom" class="btn btn-info"><i class="icons bi bi-compass"></i></a>
<a class="btn btn-info" data-bs-toggle="modal" data-bs-target="#exampleModal">
<i class="icons bi bi-geo-alt-fill"></i></a>
<a data-bs-toggle="modal" data-bs-target="#settingsModal" title="إعدادات" class="btn btn-info text-danger-hover"><i class="icons bi bi-gear"></i></a>
<a href="#" id="shareBtn" data-bs-toggle="tooltip" title="شارك" data-bs-placement="bottom" class="btn btn-info"><i class="icons bi bi-share-fill"></i></a>
</div>
</nav>
<div class="container-fluid" id="deviceready">
<div class="row justify-content-center">
<div class="col-md-8 mt-5 mb-5 header">
<div class="alert alert-success text-center mt-5" role="alert">
<h1 class="h4">أسماء الله الحسني </h1>
</div>
<p id="assma"></p>
<!-- Modal -->
<div class="modal fade" id="exampleModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">إعدادات مواقيت صلاة </h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form id="searchData" class="d-flex" role="search" >
<input class="form-control w-75 me-2" type="search" name="search" id="search" placeholder="أدخل إسم المدينة" aria-label="Search">
<button class="btn btn-outline-success" id="submit" type="button">إبحث</button>
</form>
<div class="d-flex justify-content-center">
<div class="loader spinner-border text-success" style="display: none;" role="status">
<span class="visually-hidden">Loading...</span></div>
</div>
<ul class="list-group w-75" id="result"></ul>
<form class="needs-validation" >
<div class="mb-3">
<input type="hidden" id="regionname">
<input type="hidden" id="latitude">
<input type="hidden" id="longitude">
<input type="hidden" id="timezonename">
<input type="hidden" id="fajr">
<input type="hidden" id="dhuhr">
<input type="hidden" id="asr">
<input type="hidden" id="maghrib">
<input type="hidden" id="isha">
</div>
<label for="prayerMethod" class="form-label">طريقة الحساب:</label>
<select class="form-select form-select-sm mb-3" id="prayerMethod" required>
<option selected disabled value=""> طريقة الحساب </option>
<option value="0">رابطة العالم الإسلامي(MWL)</option>
<option value="1">الهيئة العامة المصرية للمساحة</option>
<option value="2">كراتشي - جامعة العلوم الإسلامية</option>
<option value="3">مكه - ام القرى</option>
<option value="4">دبي</option>
<option value="5">Moon sighting Committee</option>
<option value="6">الجمعية الإسلامية لأمريكا الشمالية (ISNA)</option>
<option value="7">الكويت</option>
<option value="8">قطر</option>
<option value="9">هيئة المجلس الإسلامي السنغافوري (مویس)</option>
<option value="10">جامعة طهران - معهد الجيوفيزياء</option>
<option value="11">الشؤون الدينية التركية</option>
<option value="12">وزارة الشؤون الدينية والأوقاف الجزائرية</option>
</select>
<div class="invalidprayerMethod"></div>
<div class="invalid-feedback">
طريقة الحساب
</div>
<label for="asrMethod" class="form-label"> مذهب حساب العصر : </label>
<select class="form-select form-select-sm mb-3" id="asrMethod" required>
<option selected disabled value="">إختر طريقة حساب العصر</option>
<option value="0">شافعي، حنبلي، مالكي</option>
<option value="1">حنفي</option>
</select>
<div class="invalid-feedback">
إختر طريقة حساب العصر.
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">غلق</button>
<button type="button" id="btn_btn_update" class="btn btn-primary">حفظ الإعدادات</button>
</div>
</form>
</div>
</div>
</div>
<!-- settings Modal -->
<div class="modal fade" id="settingsModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">تعديل أوقات الصلاة </h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="bd-example">
<nav>
<div class="nav nav-tabs mb-2" id="nav-tab" role="tablist">
<button class="nav-link active" id="nav-home-tab" data-bs-toggle="tab" data-bs-target="#nav-home" type="button" role="tab" aria-controls="nav-home" aria-selected="true">تعديل الوقت</button>
<button class="nav-link" id="nav-profile-tab" data-bs-toggle="tab" data-bs-target="#nav-profile" type="button" role="tab" aria-controls="nav-profile" aria-selected="false">طريقة الحساب</button>
<button class="nav-link" id="nav-contact-tab" data-bs-toggle="tab" data-bs-target="#nav-contact" type="button" role="tab" aria-controls="nav-contact" aria-selected="false">مذهب العصر</button>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab">
<div class="row">
<div class="col-md-6">
<div class="card text-center text-dark bg-warning mb-2" style="width: 18rem;">
<h5 class="card-header text-dark">تعديل وقت الفجر</h5>
<div class="card-body">
<input type="number" class="form-control" id="fajr_s" min="-20" max="20">
</div>
</div>
</div>
<!-- -->
<div class="col-md-6">
<div class="card text-center text-dark bg-warning mb-2" style="width: 18rem;">
<h5 class="card-header text-dark">تعديل وقت الظهر </h5>
<div class="card-body">
<input type="number" class="form-control" id="dhuhr_s" min="-20" max="20">
</div>
</div>
</div>
<!-- -->
<div class="col-md-6">
<div class="card text-center text-dark bg-warning mb-2" style="width: 18rem;">
<h5 class="card-header text-dark">تعديل وقت العصر </h5>
<div class="card-body">
<input type="number" class="form-control" id="asr_s" min="-20" max="20">
</div>
</div>
</div>
<!-- -->
<div class="col-md-6">
<div class="card text-center text-dark bg-warning mb-2" style="width: 18rem;">
<h5 class="card-header text-dark"> تعديل وقت المغرب </h5>
<div class="card-body">
<input type="number" class="form-control" id="maghrib_s" min="-20" max="20">
</div>
</div>
</div>
<!-- -->
<div class="col-md-6">
<div class="card text-center text-dark bg-warning mb-2" style="width: 18rem;">
<h5 class="card-header text-dark"> تعديل وقت العشاء </h5>
<div class="card-body">
<input type="number" class="form-control" id="isha_s" min="-20" max="20">
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab">
<!-- -->
<div class="card text-center text-white bg-success mb-5">
<h5 class="card-header text-dark"> طريقة الحساب: </h5>
<div class="card-body">
<select class="form-select form-select-sm mb-3" id="prayerMethod_s" required>
<option selected disabled value=""> طريقة الحساب </option>
<option value="0">رابطة العالم الإسلامي(MWL)</option>
<option value="1">الهيئة العامة المصرية للمساحة</option>
<option value="2">كراتشي - جامعة العلوم الإسلامية</option>
<option value="3">مكه - ام القرى</option>
<option value="4">دبي</option>
<option value="5">Moon sighting Committee</option>
<option value="6">الجمعية الإسلامية لأمريكا الشمالية (ISNA)</option>
<option value="7">الكويت</option>
<option value="8">قطر</option>
<option value="9">هيئة المجلس الإسلامي السنغافوري (مویس)</option>
<option value="10">جامعة طهران - معهد الجيوفيزياء</option>
<option value="11">الشؤون الدينية التركية</option>
<option value="12">وزارة الشؤون الدينية والأوقاف الجزائرية</option>
</select> </div>
</div>
</div>
<div class="tab-pane fade" id="nav-contact" role="tabpanel" aria-labelledby="nav-contact-tab">
<!-- -->
<div class="card text-center text-dark bg-info mb-5">
<h5 class="card-header text-dark"> مذهب حساب العصر : </h5>
<div class="card-body">
<select class="form-select form-select-sm mb-3" id="asrMethod_s" required>
<option selected disabled value="">إختر طريقة حساب العصر</option>
<option value="0">شافعي، حنبلي، مالكي</option>
<option value="1">حنفي</option>
</select>
</div>
</div>
<!-- -->
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">غلق</button>
<button type="button" id="settingsModal_update" class="btn btn-success">حفظ الإعدادات</button>
</div>
</div>
</div>
</div>
<!-- settings Modal -->
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/gh/manuelmhtr/countries-and-timezones/dist/index.js" type="text/javascript"></script>
<script src="js/store.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.nice-number.min.js"></script>
<script src="js/settings.js"></script>
<script src="js/webshare.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/clipboard.min.js"></script>
<script>
$(function(){
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var myObj = JSON.parse(this.responseText);
//alert(JSON.stringify(myObj));
var i;
var out = '';
for(i = 0; i < myObj.names.length; i++) {
var name = myObj.names[i].name;
var meaning = myObj.names[i].meaning;
out += '<div class="card mb-5 border rounded text-center lh-lg fw-bold bg-warning"> <div class="card-body"><p class="card-text h1">'+ name+'</p><p class="card-text">'+ meaning+'</p><div class="btn-group" role="group" aria-label="share text"><button type="button" class="btn btn-danger" id="resulttext" data-clipboard-text="'+ meaning+'"><i class="icons bi bi-share-fill me-2"></i>نسخ</button><button type="button" class="btn btn-success" id="sharetext" data-text="'+ meaning+'"><i class="icons bi bi-share-fill me-2"></i>شارك</button></div></div></div>';
}
document.getElementById("assma").innerHTML = out;
}
};
xmlhttp.open("GET", "azkar/names_of_allah.json", true);
xmlhttp.send();
});
</script>
<script>
/*document.addEventListener('deviceready', onDeviceReady, false);
function onDeviceReady() {
screen.orientation.lock('portrait');
screen.orientation.unlock();
}*/
</script>
<script>
$(function(){
$(document).on("click", "#sharetext", function(){
var text = $(this).attr('data-text');
var dir = document.documentElement.getAttribute('dir');
console.log(dir);
var description = document.getElementsByTagName('meta')[6];
console.log(description.content);
description.setAttribute('content',text);
console.log(description.content);
// alert(text);
if (navigator.share) {
navigator.share({
//title: 'مواقيت الصلاة ',
text: ''+text+'',
//url: 'https://salah.netlify.app'
}).then(() => {
console.log('Thanks for sharing!');
})
.catch(console.error);
} else {
console.log('error');
}
});
$(document).on("click", "#resulttext", function(){
var clipboardtext = $(this).attr('data-clipboard-text');
//alert(clipboardtext);
const textCopied = ClipboardJS.copy(clipboardtext);
console.log('copied!', textCopied);
alert('تم نسخ الذكر يمكنك لصقه ');
});
});
</script>
</body>
</html>