-
Notifications
You must be signed in to change notification settings - Fork 51
/
pbd.html
647 lines (630 loc) · 30.9 KB
/
pbd.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
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<!-- Favicon -->
<link rel="icon" href="Images/favicon.jpg" type="image/png" />
<script src="https://cdn.tailwindcss.com"></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css"
/>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
<title>My Favorite Books Music App</title>
</head>
<body
class="bg-gray-900 text-gray-300 dark-theme d-flex flex-column min-vh-100"
>
<div id="loader" class="spinner-container">
<div
class="spinner-border"
role="status"
style="width: 4rem; height: 4rem; color: #1db954"
>
<span class="visually-hidden">Loading...</span>
</div>
</div>
<!-- Navbar -->
<!-- <div id="header-placeholder" class="sticky top-0 z-20"></div> -->
<header class="sticky top-0 z-20 bg-gray-800 p-4 shadow-sm">
<nav class="">
<div
class="container mx-auto flex justify-between items-center"
>
<!-- Logo -->
<a
class="logo-text h3 font-bold d-inline-flex"
href="./index.html"
>
<img
src="./Images/lisbook-logo-1.png"
alt="Logo"
width="40"
height="auto"
class="align-text-center me-2"
/>
Lisbook
</a>
<!-- Menu Links and Theme Toggle -->
<div
id="menu"
class="fixed inset-0 bg-gray-900 w-full h-full flex flex-col items-center justify-center space-y-8 transform scale-0 transition-transform duration-300 ease-in-out lg:relative lg:flex lg:items-end lg:justify-end lg:space-y-0 lg:bg-transparent lg:scale-100 lg:flex-row lg:space-x-4 z-20"
>
<div
id="menu-close"
class="text-gray-300 lg:hidden absolute top-5 right-5 cursor-pointer"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M6 18L18 6M6 6l12 12"
/>
</svg>
</div>
<a
href="./index.html"
class="text-gray-300 hover:text-green-500"
>Home</a
>
<a
href="./about.html"
class="text-gray-300 hover:text-green-500"
>About</a
>
<a
href="./contact.html"
class="text-gray-300 hover:text-green-500"
>Contact</a
>
<a
href="./faq.html"
class="text-gray-300 hover:text-green-500"
>FAQs</a
>
<button
id="theme-toggle"
class="text-gray-300 hover:text-green-500"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"
/>
</svg>
</button>
</div>
<!-- Mobile Menu Toggle Button -->
<div
id="menu-toggle"
title="Menu"
class="text-gray-300 lg:hidden cursor-pointer"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M4 6h16M4 12h16m-7 6h7"
/>
</svg>
</div>
</div>
</nav>
</header>
<!-- Social Share Modal -->
<div
class="modal fade"
id="exampleModalToggle"
aria-hidden="true"
aria-labelledby="exampleModalToggleLabel"
tabindex="-1"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content modal-background">
<div class="modal-header">
<h1
class="modal-title fs-5"
id="exampleModalToggleLabel"
>
Share it on :
</h1>
<button
type="button"
class="btn-close rounded-5"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<!-- Modale body -->
<div class="modal-body">
<div class="flex justify-center space-x-4 mt-4">
<a
href="https://www.facebook.com/sharer/sharer.php?u=http://127.0.0.1:5500/Lisbook/pbd.html&text=Lisbook+god Delusion"
target="_blank"
>
<img
src="https://upload.wikimedia.org/wikipedia/commons/5/51/Facebook_f_logo_%282019%29.svg"
alt="Share on Facebook"
style="width: 24px; height: 24px"
/>
</a>
<a
href="https://twitter.com/intent/tweet?url=http://127.0.0.1:5500/Lisbook/pbd.html&text=Lisbook+god Delusion"
target="_blank"
>
<img
src="https://cdn4.iconfinder.com/data/icons/social-media-black-white-2/1227/X-512.png"
alt="Share on X"
style="width: 24px; height: 24px"
/>
</a>
<a
href="https://api.whatsapp.com/send?text=http://127.0.0.1:5500/Lisbook/pbd.html"
target="_blank"
>
<img
src="https://cdn3.iconfinder.com/data/icons/social-media-2169/24/social_media_social_media_logo_whatsapp-512.png"
alt="Share on WhatsApp"
style="width: 24px; height: 24px"
/>
</a>
</div>
</div>
<!-- <div class="modal-footer">
<button
class="btn btn-primary"
data-bs-target="#exampleModalToggle2"
data-bs-toggle="modal"
>
Open second modal
</button>
</div> -->
</div>
</div>
</div>
<!-- Social Share Modal end -->
<main class="container my-5">
<!-- Book Card Display -->
<section class="row d-flex align-items-stretch rounded-5 p-5">
<div class="col-12 col-lg-4 mb-5 mb-lg-0">
<div
class="features-card border rounded-5 p-4 text-center h-100"
>
<!-- Cover Image -->
<div
class="card-cover-container rounded-4 d-flex align-items-center border"
style="height: 16rem"
>
<img
id="img"
src="./Images/cs.jpg"
alt="God Delusion Cover"
class="card-img-top img-fluid"
/>
</div>
<!-- Book Details -->
<div class="mt-4">
<h1 class="text-2xl font-bold text-green-500">
Pale Blue Dot
</h1>
<h3 class="text-lg mt-2">By Carl Sagan</h3>
<p class="text-sm mt-2">
Pale Blue Dot Sagan traces the spellbinding
history of our launch into the cosmos and
assesses the future that looms before us as we
move out into our own solar system and on to
distant galaxies beyond.
</p>
</div>
<hr class="opacity-50 w-60 mt-4 mx-auto" />
<!-- Favorite, share, comment Buttons -->
<div
class="mt-3 flex justify-center icon-action-btn-container"
>
<i
class="bi bi-heart mx-4 icon-action-btn tooltip-parent tooltip-bottom"
id="favourite-btn"
><span class="tooltip"
>Save to Favourites</span
></i
>
<i
class="bi bi-share mx-4 icon-action-btn tooltip-parent tooltip-bottom"
id="share-btn"
data-bs-target="#exampleModalToggle"
data-bs-toggle="modal"
><span class="tooltip">Share</span></i
>
<i
class="bi bi-chat mx-4 icon-action-btn tooltip-parent tooltip-bottom"
id="view-comments-btn"
><span class="tooltip">View comments</span></i
>
</div>
</div>
</div>
<!-- playlist -->
<div class="col-12 col-lg-8 ps-4">
<div
class="eatures-card border rounded-5 p-4 text-center h-100"
>
<ul
id="playlist"
class="playlist list-none text-left overflow-auto m-2 mb-4"
>
<li
class="adiobk-sub-item d-flex justify-content-between flex-column"
data-src="audio/PaleBlueDot/Introduction.mp3"
>
<div class="d-flex justify-content-between">
<p>Introduction</p>
<a
href="audio/PaleBlueDot/Introduction.mp3"
download
><i
class="bi bi-cloud-arrow-down-fill"
></i
></a>
</div>
<div
class="bg-gray-700 flex-1 rounded-full ring-1"
>
<div
class="progress-bar bg-red bg-white rounded-full"
></div>
</div>
</li>
<li
class="adiobk-sub-item d-flex justify-content-between flex-column"
data-src="audio/PaleBlueDot/chap-1_you_are_here.mp3"
>
<div class="d-flex justify-content-between">
<p>Chapitre 1: You are here</p>
<a
href="audio/PaleBlueDot/chap-1_you_are_here.mp3"
download
><i
class="bi bi-cloud-arrow-down-fill"
></i
></a>
</div>
<div
class="bg-gray-700 flex-1 rounded-full ring-1"
>
<div
class="progress-bar bg-red bg-white rounded-full"
></div>
</div>
</li>
<li
class="adiobk-sub-item d-flex justify-content-between flex-column"
data-src="audio/PaleBlueDot/Chap-2_aberrations of light.mp3"
>
<div class="d-flex justify-content-between">
<p>Chapitre 2: Aberrations of light</p>
<a
href="audio/PaleBlueDot/Chap-2_aberrations of light.mp3"
download
><i
class="bi bi-cloud-arrow-down-fill"
></i
></a>
</div>
<div
class="bg-gray-700 flex-1 rounded-full ring-1"
>
<div
class="progress-bar bg-red bg-white rounded-full"
></div>
</div>
</li>
<li
class="adiobk-sub-item d-flex justify-content-between flex-column"
data-src="audio/PaleBlueDot/chap-3_the great demotions.mp3"
>
<div class="d-flex justify-content-between">
<p>Chapitre 3: The great demotions</p>
<a
href="audio/PaleBlueDot/chap-3_the great demotions.mp3"
download
><i
class="bi bi-cloud-arrow-down-fill"
></i
></a>
</div>
<div
class="bg-gray-700 flex-1 rounded-full ring-1"
>
<div
class="progress-bar bg-red bg-white rounded-full"
></div>
</div>
</li>
<li
class="adiobk-sub-item d-flex justify-content-between flex-column"
data-src="audio/PaleBlueDot/chap-4_a universe not made for us.mp3"
>
<div class="d-flex justify-content-between">
<p>
Chapitre 4: A universe not made for us
</p>
<a
href="audio/PaleBlueDot/chap-4_a universe not made for us.mp3"
download
><i
class="bi bi-cloud-arrow-down-fill"
></i
></a>
</div>
<div
class="bg-gray-700 flex-1 rounded-full ring-1"
>
<div
class="progress-bar bg-red bg-white rounded-full"
></div>
</div>
</li>
<li
class="adiobk-sub-item d-flex justify-content-between flex-column"
data-src="audio/PaleBlueDot/chap-5_is there intelligent life on earth.mp3"
>
<div class="d-flex justify-content-between">
<p>
Chapitre 5: Is there intelligent life on
earth?
</p>
<a
href="audio/PaleBlueDot/chap-5_is there intelligent life on earth.mp3"
download
><i
class="bi bi-cloud-arrow-down-fill"
></i
></a>
</div>
<div
class="bg-gray-700 flex-1 rounded-full ring-1"
>
<div
class="progress-bar bg-red bg-white rounded-full"
></div>
</div>
</li>
<li
class="adiobk-sub-item d-flex justify-content-between flex-column"
data-src="audio/PaleBlueDot/chap-6_the triumph of voyager.m4b"
>
<div class="d-flex justify-content-between">
<p>Chapitre 06: The triumph of voyager</p>
<a
href="audio/PaleBlueDot/chap-6_the triumph of voyager.mp3"
download
><i
class="bi bi-cloud-arrow-down-fill"
></i
></a>
</div>
<div
class="bg-gray-700 flex-1 rounded-full ring-1"
>
<div
class="progress-bar bg-red bg-white rounded-full"
></div>
</div>
</li>
<li
class="adiobk-sub-item d-flex justify-content-between flex-column"
data-src="audio/PaleBlueDot/chap-6_the triumph of voyager.mp3"
>
<div class="d-flex justify-content-between">
<p>
Chapitre 07: Among the moons of saturn
</p>
<a
href="audio/PaleBlueDot/chap-7_among the moons of saturn.mp3"
download
><i
class="bi bi-cloud-arrow-down-fill"
></i
></a>
</div>
<div
class="bg-gray-700 flex-1 rounded-full ring-1"
>
<div
class="progress-bar bg-red bg-white rounded-full"
></div>
</div>
</li>
<li
class="adiobk-sub-item d-flex justify-content-between flex-column"
data-src="audio/PaleBlueDot/chap-8_the first new planet.mp3"
>
<div class="d-flex justify-content-between">
<p>Chapitre 08: The first new planet</p>
<a
href="audio/PaleBlueDot/chap-8_the first new planet.mp3"
download
><i
class="bi bi-cloud-arrow-down-fill"
></i
></a>
</div>
<div
class="bg-gray-700 flex-1 rounded-full ring-1"
>
<div
class="progress-bar bg-red bg-white rounded-full"
></div>
</div>
</li>
</ul>
<div class="player container rounded-5">
<audio
id="audio-player"
class="mt-4 mx-auto"
></audio>
<span id="currentTime">0:00</span>
<input
type="range"
id="seekSlider"
min="0"
value="0"
/>
<span id="duration">0:00</span>
<!-- Speed control -->
<div class="relative inline-block">
<span id="speedButton" class="cursor-pointer text-green-300 font-semibold rounded-lg py-1 px-3 hover:text-green-200 transition">1x</span>
<!-- Dropdown Menu -->
<ul id="speedDropdown" class="absolute hidden bg-gray-800 shadow-md rounded-xl mt-2 w-20">
<li class="px-4 py-2 cursor-pointer hover:bg-gray-700 rounded-xl text-green-300" data-speed="0.5">0.5x</li>
<li class="px-4 py-2 cursor-pointer hover:bg-gray-700 rounded-xl text-green-300" data-speed="1">1x</li>
<li class="px-4 py-2 cursor-pointer hover:bg-gray-700 rounded-xl text-green-300" data-speed="1.5">1.5x</li>
<li class="px-4 py-2 cursor-pointer hover:bg-gray-700 rounded-xl text-green-300" data-speed="2">2x</li>
</ul>
</div>
</div>
<!-- Audio Players Controls Buttons -->
<div
class="ctrl-player mt-4 px-5 mx-auto"
id="ctrl-player"
>
<div
class="ctrl-buttons d-flex justify-content-evenly align-items-center"
>
<div
class="ctrl-button ctrl-button-small"
id="volume-down"
>
<i class="bi bi-volume-down-fill"></i>
</div>
<div
class="ctrl-button ctrl-button-medium"
id="fast-backward"
>
<span>-30</span>
</div>
<div
class="ctrl-button ctrl-button-large"
id="ctrl-play"
>
<i class="bi bi-play-fill"></i>
</div>
<div
class="ctrl-button ctrl-button-medium"
id="fast-forward"
>
<span>+30</span>
</div>
<div
class="ctrl-button ctrl-button-small"
id="volume-up"
>
<i class="bi bi-volume-up-fill"></i>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Book buttons navigations -->
<section
class="row d-flex align-items-stretch rounded-5 p-5 my-5 gx-5 text-center"
>
<div class="col-md-6">
<a
href="./index.html"
class="text-gray-300 hover:text-green-500 border p-3 d-block rounded-start-5"
>Previous Book</a
>
</div>
<div class="col-md-6">
<a
href="./fs.html"
class="text-gray-300 hover:text-green-500 p-3 border d-block rounded-end-5"
>Next Book</a
>
</div>
</section>
<!-- Book buttons navigations end -->
<!-- Comments Section -->
<section class="row rounded-5 p-5 mt-5">
<div class="container mx-auto p-6 rounded-lg">
<h2 class="display-5 page-title fw-semibold mb-6">
Share Your Comments
</h2>
<form id="comment-form" class="space-y-4 mt-5">
<div>
<label for="username" class="form-label"
>Your Name:</label
>
<input
type="text"
id="username"
class="form-control mt-2 rounded-5 bg-body-tertiary border"
required
/>
</div>
<div>
<label for="comment" class="form-label"
>Your Comment:</label
>
<textarea
id="comment"
class="form-control mt-2 rounded-5 bg-body-tertiary border"
rows="6"
required
></textarea>
</div>
<div class="text-center">
<button
type="submit"
class="bg-green-500 text-white py-2 px-6 rounded-full hover:bg-green-600"
>
Share comment
</button>
</div>
</form>
<div id="comments-list" class="mt-10 space-y-4"></div>
</div>
</section>
</main>
<!-- Footer -->
<div id="footer-placeholder" class="mt-auto"></div>
<!-- JavaScript -->
<script src="./script.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
</body>
</html>