-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfinder.html
625 lines (573 loc) · 27.9 KB
/
finder.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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Kuran Rehberi</title>
<link rel="stylesheet" href="./style/introJs.css">
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<script
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="./style/common.css">
<link rel="icon" href="images/search.png">
<link rel="manifest" href="manifest.json">
<style>
#introjs-button #introjs-nextbutton{
user-select: none;
}
</style>
</head>
<body>
<!-- from bootstrap examples -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" style="user-select: none;" href="./"></a>
<button id=helpButton class=yellowButton onclick="doIntro()"></button>
<button id=langButton class=yellowButton onclick="nextLanguage()"></button>
<span id="version" class="navbar-text"></span>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link disabled" href="./finder.html" aria-disabled="true"
>Ara<span class="sr-only">(current)</span></a
>
</li>
<li class="nav-item">
<a class="nav-link" href="./reader.html"
>Oku</a
>
</li>
<li class="nav-item">
<a class="nav-link" href="./simi.html"
>Simi</a
>
</li>
<li class="nav-item">
<button
data-toggle="modal"
data-target="#FeedBackModal"
class="btn nav-link"
type="submit"
>
📝 İletişim
</button>
</li>
<li class="nav-item">
<button
data-toggle="modal"
data-target="#settingsModel"
class="btn nav-link"
type="submit"
>
⚙️ Ayarlar
</button>
</li>
<li class="nav-item">
<button onclick="toggleDarkMode()" class="btn nav-link" >
Dark Mode
</button>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDropdown"
role="button"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>
Other
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="./Projectproposal.html">Proposal</a>
<a class="dropdown-item" href="https://github.com/Okuyun/Rehber">Source Code</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="http://a0m0rajab.github.io/">About me</a>
</div>
</li>
</ul>
</div>
</nav>
<br />
<div class="container">
<div id="stickySearch" class="row sticky-top" style="z-index: 2;">
<div class="input-group">
<input
dir="rtl"
list="suggestions"
class="arabic form-control text-right"
value="بسم الله"
onchange="sugOnKeyUp(searchQue.value)"
onkeyup="sugOnKeyUp(searchQue.value)"
id="searchQue"
type="text"
aria-label="Search"
/>
<div class="input-group-append" id="button-addon4">
<button
data-toggle="modal"
data-target="#speechSettings"
class="btn btn-outline-success"
type="submit"
>
🎤
</button>
</div>
</div>
<div class="input-group" >
<!-- class add input-group-text to change the colour... -->
<!-- can change to text center, would not it be better? -->
<!-- //onclick="SearchVoice()" -->
<datalist id="suggestions">
<option value="بسم الله الرحمن"></option>
<option value="بسم الله مجراها"></option>
</datalist>
</div>
<!-- <div class=col> -->
<div>
<div class="custom-control custom-radio custom-control-inline">
<input onchange="displayState(1)" type="radio" id="state1" name="state" class="custom-control-input">
<label class="custom-control-label" for="state1">Show all</label>
</div>
<div class="custom-control custom-radio custom-control-inline">
<input onchange="displayState(2)" type="radio" id="state2" name="state" class="custom-control-input">
<label class="custom-control-label" for="state2">Only arabic</label>
</div>
<div class="custom-control custom-radio custom-control-inline">
<input onchange="displayState(3)" type="radio" id="state3" name="state" class="custom-control-input">
<label class="custom-control-label" for="state3">Only Oneline</label>
</div>
</div>
<!-- </div> -->
</div>
<div id="finderMessage"></div>
<div class="row">
<div class="col-12 table-responsive overflow">
<table id="dTable" class="table table-sm table-hover">
<caption id="caption_text" style=" caption-side:top;">
<span id="wordNumber">3</span>
<span id="txtWordFound">ayet</span>
</caption>
<thead>
<tr>
<th id="translationHeader" colspan="2" class="tableTranslation justify-content-space-between">
<div class="row justify-content-between">
<div id="col_tefsir" class="col">
<div class="btn-group">
<button id="THtext" type="button" class="btn badge badge-white align-text-bottom dropdown-toggle dropdown-toggle-split translation" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Türkçe: Diyanet Meali
</button>
<div class="dropdown-menu" id="translationMenu">
<template id="translationButton">
<button class="dropdown-item"></button>
</template>
</div>
</div>
</div>
<div id="col_arabic" class="col">
<span id="arabicHeader" class="float-right">عربي </span>
</div>
</div>
</th>
<!-- TODO: implement tefsir source here as well, it will be helpful to compare. -->
</tr>
</thead>
<tbody><tr><td>
<!-- Example split danger button -->
<div class="btn-group">
<button type="button" class="btn badge badge-light align-text-bottom" onclick="lastOne('1:1')">Al-Faatiha 1:1</button>
<button type="button" class="btn badge badge-light align-text-bottom dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
<button class="dropdown-item" onclick="openCorpus('1:1')">Corpus</button>
<button class="dropdown-item" onclick="openQuran('1:1')">Quran</button>
<button class="dropdown-item" onclick="openMeali('1:1')">Meali</button>
<div class="dropdown-divider"></div>
<button class="dropdown-item" onclick="openIqra('1:1')">Reader</button>
</div>
</div>
<span class="translation">«بسم الله الرحمن الرحيم»</span></td><td scope="col" class="text-right"><span class="arabic"><great onclick="openIqra(`1:1`)">بسم الله</great> الرحمن الرحيم</span>
<!-- Example split danger button -->
<div class="btn-group">
<button type="button" class="btn badge badge-light align-text-bottom" onclick="lastOne('1:1')">الفاتحة 1:1</button>
<button type="button" class="btn badge badge-light align-text-bottom dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
<button class="dropdown-item" onclick="openCorpus('1:1')">Corpus</button>
<button class="dropdown-item" onclick="openQuran('1:1')">Quran</button>
<button class="dropdown-item" onclick="openMeali('1:1')">Meali</button>
<div class="dropdown-divider"></div>
<button class="dropdown-item" onclick="openIqra('1:1')">Reader</button>
</div>
</div>
</td></tr><tr><td>
<!-- Example split danger button -->
<div class="btn-group">
<button type="button" class="btn badge badge-light align-text-bottom" onclick="lastOne('11:41')">Hud 11:41</button>
<button type="button" class="btn badge badge-light align-text-bottom dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
<button class="dropdown-item" onclick="openCorpus('11:41')">Corpus</button>
<button class="dropdown-item" onclick="openQuran('11:41')">Quran</button>
<button class="dropdown-item" onclick="openMeali('11:41')">Meali</button>
<div class="dropdown-divider"></div>
<button class="dropdown-item" onclick="openIqra('11:41')">Reader</button>
</div>
</div>
<span class="translation">«وقال» نوح «اركبوا فيها بسم الله مجراها ومرساها» بفتح الميمين وضمهما مصدران أي جريها ورسوها أي منتهى سيرها «إن ربي لغفور رحيم» حيث لم يهلكنا.</span></td><td scope="col" class="text-right"><span class="arabic">وقال اركبوا فيها <great onclick="openIqra(`11:41`)">بسم الله</great> مجراها ومرساها إن ربي لغفور رحيم</span>
<!-- Example split danger button -->
<div class="btn-group">
<button type="button" class="btn badge badge-light align-text-bottom" onclick="lastOne('11:41')">هود 11:41</button>
<button type="button" class="btn badge badge-light align-text-bottom dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
<button class="dropdown-item" onclick="openCorpus('11:41')">Corpus</button>
<button class="dropdown-item" onclick="openQuran('11:41')">Quran</button>
<button class="dropdown-item" onclick="openMeali('11:41')">Meali</button>
<div class="dropdown-divider"></div>
<button class="dropdown-item" onclick="openIqra('11:41')">Reader</button>
</div>
</div>
</td></tr><tr><td>
<!-- Example split danger button -->
<div class="btn-group">
<button type="button" class="btn badge badge-light align-text-bottom" onclick="lastOne('27:30')">An-Naml 27:30</button>
<button type="button" class="btn badge badge-light align-text-bottom dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
<button class="dropdown-item" onclick="openCorpus('27:30')">Corpus</button>
<button class="dropdown-item" onclick="openQuran('27:30')">Quran</button>
<button class="dropdown-item" onclick="openMeali('27:30')">Meali</button>
<div class="dropdown-divider"></div>
<button class="dropdown-item" onclick="openIqra('27:30')">Reader</button>
</div>
</div>
<span class="translation">«إنه من سليمان وإنه» أي مضمونه «بسم الله الرحمن الرحيم».</span></td><td scope="col" class="text-right"><span class="arabic">إنه من سليمان وإنه <great onclick="openIqra(`27:30`)">بسم الله</great> الرحمن الرحيم</span>
<!-- Example split danger button -->
<div class="btn-group">
<button type="button" class="btn badge badge-light align-text-bottom" onclick="lastOne('27:30')">النمل 27:30</button>
<button type="button" class="btn badge badge-light align-text-bottom dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
<button class="dropdown-item" onclick="openCorpus('27:30')">Corpus</button>
<button class="dropdown-item" onclick="openQuran('27:30')">Quran</button>
<button class="dropdown-item" onclick="openMeali('27:30')">Meali</button>
<div class="dropdown-divider"></div>
<button class="dropdown-item" onclick="openIqra('27:30')">Reader</button>
</div>
</div>
</td></tr></tbody>
</table>
</div>
</div>
<!-- pagination -->
<div id=PaginationMenu aria-label="Page navigation example " class="row justify-content-center">
<ul class="pagination justify-content-center">
<li class="page-item">
<button id=pagePrev class="page-link" aria-label="Previous">
<span aria-hidden="true">«</span>
<span class="sr-only">Previous</span>
</button>
</li>
<li class="page-item"><button id=firstPage class="page-link" >1</button></li>
<!-- <li class="page-item"><button class="page-link" href="#">2</button></li>
<li class="page-item"><button class="page-link" href="#">3</button></li>
<li class="page-item"><button class="page-link" href="#">4</button></li> -->
<!-- <li class="page-item"><button class="page-link" href="#">...</button></li> -->
<li class="page-item"><input id=choosenPage type="number" class="page-link" placeholder="Page" value="0"></input></li>
<!-- <li class="page-item"><button class="page-link" href="#">7</button></li>
<li class="page-item"><button class="page-link" href="#">8</button></li>
<li class="page-item"><button class="page-link" href="#">9</button></li>-->
<li class="page-item"><button id=lastPage class="page-link">10</buton></li>
<li class="page-item">
<button id=pageNext class="page-link" aria-label="Next">
<span aria-hidden="true">»</span>
<span class="sr-only">Next</span>
</button>
</li>
</ul>
</div>
<!-- end of pagination -->
</div>
<!-- Modal Settings-->
<div class="modal fade" id="settingsModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="settingsModelTitle">Preference</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<label for="fontType">Font type</label>
<select onchange="getFontType()" id="fontType" name="fontType" class="select col-3">
<option value="Zekr" selected>Zekr</option>
<option value="ZekrBold">ZekrBold</option>
<option value="me_quran">me quran</option>
</select>
<hr>
<span id=fontAr>font size</span> <br>
<button type="button" class="btn btn-outline-primary" onclick="changeFont(`arabic`,5)">+</button>
<button type="button" onclick="setFontToDefault('arabic',20)" class="btn btn-outline-warning" >Default</button>
<button type="button" class="btn btn-outline-primary" onclick="changeFont(`arabic`,-5)">-</button>
<br>
<div class="container input-group">
<div class="btn">
<p class="arabic input-form">
<great>بِسْمِ ٱللَّهِ</great> ٱلرَّحْمَٰنِ ٱلرَّحِيمِ
</p>
</div>
</div>
<br>
<span id=txtTrans>Translation:</span><br>
<button type="button" class="btn btn-outline-primary" onclick="changeFont(`x`,5)">+</button>
<button type="button" onclick="setFontToDefault('x',20)" class="btn btn-outline-warning">Default</button>
<button type="button" class="btn btn-outline-primary" onclick="changeFont(`x`,-5)">-</button>
<br>
<p class="translation">Rahman ve Rahim olan Allah'ın adıyla:</p>
<br>
<label for="" id=markColour> Mark Colour: </label>
<input id="greatColour" type="color" class="form-control col-4" name="favcolor" value="#ffff00" onchange="changeColour(this.value)">
<hr>
<label for="dataAmount">Number of Verse in page</label>
<select id="dataAmount" name="dataAmount" class="select col-3">
<option value="10" selected>10</option>
<option value="20">20</option>
<option value="50">50</option>
<option value="100">100</option>
<option value="All">All</option>
</select>
<hr>
<!-- if you want to choose from multiple add only this keyword before class.. -->
Tefsir cumbo box - how many times should it be
pagination - for tefsir.
</div>
<div class="modal-footer">
<button id=txtModelClose type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal Speech API-->
<div class="modal fade" id="speechSettings" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="modelVoiceControl" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modelVoiceControl_text">Voice control</h5>
<!-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button> -->
</div>
<div class="modal-body">
<center>
<button id="btnOtherLang" type="button" class="btn btn-primary" onclick="SearchVoice()" >Other Lang</button>
<button id="btnArabic" type="button" class="btn btn-primary" onclick="SearchVoice(`ar-AR`)">Arabic</button>
</center>
<hr>
<center>
<div id=loading hidden=true>
<span id=loadText>listening</span>
<br>
<div class="spinner-border text-info" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</center>
</div>
<div class="modal-footer">
<button id="btnClose_voice_control" type="button" class="btn btn-secondary" data-dismiss="modal" onclick="speechCancel()">Cancel</button>
</div>
</div>
</div>
</div>
<!-- Modal FeedBack-->
<div class="modal fade" id="FeedBackModal" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="FeedBackModal" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modelVoiceControl">Feed Back/contact us</h5>
<!-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button> -->
</div>
<div class="modal-body">
<!-- <center> -->
<div class="form-group">
<label for="inputEmail">Email address</label>
<input type="email" class="form-control" id="inputEmail" aria-describedby="emailHelp">
<small id="emailHelp" class="form-text text-muted">Just to tell you about the process.</small>
</div>
<div class="form-group">
<label for="feedBackMessage">Your message</label>
<textarea class="form-control" id="feedBackMessage" rows="3"></textarea>
</div>
<!-- </center> -->
</div>
<div class="modal-footer">
<button id="btnClose" type="button" class="btn btn-secondary" data-dismiss="modal" onclick="cancelFeedBack()">Cancel</button>
<button type="submit" class="btn btn-primary" onclick="submitFeedBack()">Submit</button>
</div>
</div>
</div>
</div>
<div class="dropdown-menu dropdown-menu-sm" id="contextMenu">
<ul class="menu-options">
<li class="menu-option dropdown-item" value=2 id="contextMenuCopy">Copy</li>
<li class="menu-option dropdown-item" value=0 id="contextMenuFindWord">Find Word</li>
<li class="menu-option dropdown-item" value=3 id="contextMenuFindRoot">Find Root</li>
<li class="menu-option dropdown-item" value=1 id="contextMenuGoogleSearch">Google Search</li>
</ul>
</div>
<!-- <script src="./Iqra3/code/common.js"></script> -->
<!-- <script src="./Iqra3/code/mujam.js"></script> -->
<!-- <script src="./Iqra3/code/common.js"></script> -->
<script src="code/common.js"></script>
<script src="./code/utilities.js"></script>
<script src="./code/mujam.js"></script>
<script src="code/language.js"></script>
<script src="code/buckwalter.js"></script>
<script src="code/finder.js"></script>
<script src="code/quran-data.js"></script>
<script src="code/quran-sura.js"></script>
<script src="code/script.js"></script>
<script src="code/presentation.js"></script>
<script src="./code/config.js"></script>
<script src="./code/introJs.js"></script>
<script src="./code/translations.js"></script>
<script>
if ('serviceWorker' in navigator) {
if (location.protocol.startsWith('http'))
navigator.serviceWorker.register('sw.js')
.then(reg => { console.log('SW Registered', reg.scope) })
.catch(alert)
}
window.name="finder";
timer("Loading Arabic",() => loadArabic().then(() => timer("Init finder",initFinder)))
// setVersePerPage()
version.innerText= config.version;
populateTranslationMenu("translationMenu","#translationButton","button", "onclick",finderCallBack);
document.onkeydown = (evt) => {
if (evt.key !== 'F1') return
evt.preventDefault(); doIntro()
}
function doIntro() {
let searchQueParent = document.querySelector("#stickySearch");
searchQueParent.classList.remove("sticky-top")
settings.prevstate = settings.dstate
displayState(1); startIntro()
}
const intro_str = {};
intro_str.en =
`You may search in the Noble Quran using Finder. Language selection is on the World icon.
You may do the search in Arabic or in the selected translation.
Audio search is here.
Three modes of display: Quran with or without translation, single-line mode.
You may select the translation using this menu.
You may select the resource to display the result.
You may display the verses using the last-selected resource.
You may display the verses directly by clicking the marked word.
When a word is selected, you have other options on a right-click.
You may start using the application.`;
intro_str.tr =
`Rehber yazılımı ile Kuran-ı Kerim'de kelime arayın. Dil seçimi Dünya simgesinde.
Aramak istediğiniz kelimeyi Kuran’da Arapça olarak veya tefsir içinde kendi dilinde aratabilirsiniz.
Sesli arama yapabilirsiniz.
Sonuçları görmek için üç mod: Tefsir ve Kuran, sadece Kuran, Kuran tek satır.
Bu menüden istediğiniz tefsiri seçebilirsiniz.
Bu menüden diğer kaynaklara yönlendirilirsiniz.
Buradan son kaynağınıza yönlendirilirsiniz.
İşaretli kelimeye tıkladığınızda ilgili sayfaya doğrudan yönlendirir.
Bir kelime seçtikten sonra, sağ tıklama ile diğer seçenekler açılır.
Uygulamayı kullanmaya başlayabilirsiniz.`;
intro_str.ar =
`يمكنك البحث في القرآن الكريم باستخدام الباحث القرآني. قم باختيار اللغة من هذه الأيقونة.
يمكنك البحث باللغة العربية أو في الترجمة المختارة.
البحث الصوتي.
ثلاثة أشكال للعرض: القرآن مع الترجمة أو بدونها ، حالة سطر واحد.
يمكنك اختيار الترجمة باستخدام هذه القائمة.
يمكنك التوجه لمصادر أخرى من هذه القائمة.
يمكنك عرض الآيات باستخدام آخر مصدر خارجي تم اختياره.
يمكنك عرض الآيات مباشرة عن طريق النقر فوق الكلمة المميزة.
يوجد العديد من الخيارات المختلفة عند النقر بالزر الأيمن على الكلمة المميزة
يمكنك البدء في استخدام التطبيق`;
function startIntro(){
let intro = introJs();
let steps = [
{ element: document.querySelector("#langButton") },
{ element: document.querySelector('#searchQue') },
{ element: document.querySelector("#button-addon4 > button") },
{ element: document.querySelector("#stickySearch > div:nth-child(3)") },
{ element: document.querySelector("#THtext") },
{ element: dTable.querySelector("td.text-right > .btn-group > button:nth-child(1)") },
{ element: dTable.querySelector("td.text-right > .btn-group > button:nth-child(2)") },
{ element: dTable.querySelector("td.text-right > span > span.fullText > great") },
{ element: dTable.querySelector("td.text-right > span") },
{ }
]
let A = intro_str[currentLanguage()].split('\n')
for (let i = 0; i < A.length; i++) steps[i].intro = A[i];
intro.setOptions({steps});
let labels = {
nextLabel: '→',
prevLabel: '←',
skipLabel: '␛', //ESC
doneLabel: '🆗' //OK
}
intro.setOptions(labels)
// intro.setOptions({overlayOpacity: 0})
intro.start();
intro.onexit(function(){
let searchQueParent = document.querySelector("#stickySearch");
searchQueParent.classList.add("sticky-top")
displayState(settings.prevstate)
});
}
</script>
</body>
</html>
<!-- TODO change and add the CSS for arabic shrink and full, Change the great thingy to make it based on Query
move to issues, heck emails.
Add SW, Write Thesis, Check Presentation, prepare tests (demo),
follow up with old stuff, show semi.
approach one: go from shrink/fulltext by CSS
Approach two: use wordlst without clearning the table. -->