-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
892 lines (859 loc) · 27.1 KB
/
index.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
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
<!DOCTYPE html>
<html lang="en">
<head>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Group 2 Brilliance Hub</title>
<!-- Link to the favicon -->
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="images/.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Group 2 Brilliance Hub!</title>
<link href="https://fonts.googleapis.com/css2?family=Kelly+Slab&display=swap" rel="stylesheet">
<style>
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Kelly Slab', sans-serif;
}
/* Background Gradient and Waves */
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
overflow: auto;
background: linear-gradient(315deg, rgba(101, 0, 94, 1) 3%, rgba(60, 132, 206, 1) 38%, rgba(48, 238, 226, 1) 68%, rgba(255, 25, 25, 1) 98%);
animation: gradient 15s ease infinite;
background-size: 400% 400%;
background-attachment: fixed;
position: relative;
min-height: 100vh;
}
@keyframes gradient {
0% {
background-position: 0% 0%;
}
50% {
background-position: 100% 100%;
}
100% {
background-position: 0% 0%;
}
}
/* Wave Animation */
.wave {
background: rgb(255 255 255 / 25%);
border-radius: 1000% 1000% 0 0;
position: fixed;
width: 200%;
height: 12em;
animation: wave 10s -3s linear infinite;
transform: translate3d(0, 0, 0);
opacity: 0.8;
bottom: 0;
left: 0;
z-index: -1;
}
.wave:nth-of-type(2) {
bottom: -1.25em;
animation: wave 18s linear reverse infinite;
opacity: 0.8;
}
.wave:nth-of-type(3) {
bottom: -2.5em;
animation: wave 20s -1s reverse infinite;
opacity: 0.9;
}
@keyframes wave {
2% {
transform: translateX(1);
}
25% {
transform: translateX(-25%);
}
50% {
transform: translateX(-50%);
}
75% {
transform: translateX(-25%);
}
100% {
transform: translateX(1);
}
}
/* Breadcrumb Styles */
.breadcrumb {
display: flex;
justify-content: center;
list-style: none;
padding: 10px 0;
margin: 20px 0;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.breadcrumb-item {
margin: 0 10px;
}
.breadcrumb-item a {
text-decoration: none;
color: #607d8b;
font-size: 1.2rem;
transition: color 0.3s ease;
}
.breadcrumb-item a:hover {
color: #490099;
}
/* Layout and Body Styling */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
}
h1 {
text-align: center;
font-size: 2.5rem;
margin-bottom: 20px;
color: #607d8b;
}
.content-item {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 40px;
transition: all 0.5s ease-in-out;
}
.content-img {
width: 45%;
height: auto;
opacity: 0;
transform: translateX(100px);
transition: opacity 1s, transform 1s;
}
.content-img img {
width: 100%;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
/* Frosted Glass Effect for Cards */
.content-description {
width: 45%;
padding: 20px;
background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
border-radius: 10px;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); /* Smokey shadow */
backdrop-filter: blur(10px); /* Frosted glass effect */
transform: translateX(-100px); /* Initially hidden and shifted to the left */
opacity: 0; /* Initially hidden */
transition: transform 1s, opacity 1s; /* Smooth transition for both transform and opacity */
}
.content-description h2 {
font-size: 2rem;
margin-bottom: 10px;
color: #ffffff;
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3); /* Light shadow for the text */
}
.content-description p {
font-size: 1rem;
line-height: 1.6;
color: #ffffff;
}
/* Animation Triggers */
.content-item.visible .content-img {
opacity: 1;
transform: translateX(0);
}
.content-item.visible .content-description {
transform: translateX(0); /* Move the description into place */
opacity: 1; /* Fade it in */
}
/* Smooth Scrolling */
html {
scroll-behavior: smooth;
}
</style>
</head>
<body>
<!-- Background Waves -->
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="container">
<h1>Welcome To Group 2 Brilliance Hub!</h1>
<!-- Breadcrumb Navigation -->
<ul class="breadcrumb">
<li class="breadcrumb-item"><a href="#home">Home</a></li>
<li class="breadcrumb-item"><a href="#quiz-countdown">Quiz Schedules</a></li>
<li class="breadcrumb-item"><a href="#assignments-homeworks">Assignments & Homeworks</a></li>
<li class="breadcrumb-item"><a href="#social-media">Socials & Contacts</a></li>
</ul>
<!-- Weekly Planner -->
<div id="weekly-planner" class="content-item">
<div class="content-img">
<img src="study1.jpg" alt="Weekly Planner">
</div>
<div class="content-description">
<h2>A Student’s Vision for Group 2</h2>
<p>"This is the first-ever website made by a student (Walid AKA cryzlenn) specifically for group 2, helping everyone to improve their learning experience."</p>
</div>
</div>
<!-- Class Students -->
<div id="class-students" class="content-item">
<div class="content-description">
<h2>Why Group 2 is the Best?</h2>
<p>"Group 2 students are not just smart and hardworking.. they're also great and adorable, each contributing their unique charm and energy to our class - SLAY."</p>
</div>
<div class="content-img">
<img src="study2.jpg" alt="Class Students">
</div>
</div>
<!-- Quiz Schedule -->
<div id="quiz-schedule" class="content-item">
<div class="content-img">
<img src="study3.jpg" alt="Quiz Schedule">
</div>
<div class="content-description">
<h2>Towards Academic Success!</h2>
<p>"This website was made to provide tools, updates, and resources to help group 2 students achieve academic excellence, with continuous improvements to support our journey."</p>
</div>
</div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quiz Schedule with Countdown</title>
<link href="https://fonts.googleapis.com/css2?family=Kelly+Slab&display=swap" rel="stylesheet">
<style>
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Kelly Slab', sans-serif;
}
body {
background-color: #f1f8e9;
color: #333;
overflow-x: hidden;
font-family: 'Kelly Slab', sans-serif;
padding: 20px;
}
h1 {
text-align: center;
font-size: 2.5rem;
margin-bottom: 20px;
color: #607d8b;
}
.quiz-schedule {
background: rgba(255, 255, 255, 0.9);
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
padding: 20px;
margin: 20px auto;
max-width: 800px;
text-align: center;
}
.quiz-schedule h2 {
font-size: 1.8rem;
margin-bottom: 15px;
color: #455a64;
}
.quiz-list {
list-style: none;
padding: 0;
margin-bottom: 20px;
}
.quiz-item {
background: rgba(0, 0, 0, 0.1);
border-radius: 8px;
margin: 10px 0;
padding: 15px;
color: #ffffff;
font-size: 1.2rem;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.countdown {
font-size: 1.5rem;
color: #ff9800;
font-weight: bold;
margin-top: 10px;
}
/* Frosted Glass Effect */
.content-description {
padding: 20px;
background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
border-radius: 10px;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
backdrop-filter: blur(10px); /* Frosted glass effect */
color: white;
}
.content-description h2 {
font-size: 2rem;
margin-bottom: 10px;
}
</style>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Assignments & Homeworks</title>
<style>
/* Assignments & Homeworks Section */
#assignments-homeworks {
background: #f0f4f8;
border-radius: 15px;
padding: 30px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
max-width: 600px;
margin: 30px auto;
animation: fadeIn 1s ease-out;
}
#assignments-homeworks .section-title {
text-align: center;
font-size: 2rem;
color: #3e3e3e;
margin-bottom: 20px;
animation: slideIn 1.5s ease-out;
}
#assignments-homeworks .message-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}
#assignments-homeworks .message {
font-size: 1.5rem;
color: #ff4081;
margin-bottom: 10px;
animation: pulse 1.5s infinite;
}
#assignments-homeworks .message-subtext {
font-size: 1rem;
color: #555;
animation: fadeInUp 1s ease-out;
}
/* Homework List Section */
.assignments-list {
margin-top: 30px;
display: flex;
flex-direction: column;
gap: 15px;
}
.assignment-item {
background: #ffffff;
border-radius: 10px;
padding: 15px 20px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
animation: fadeInUp 1s ease-out;
}
.assignment-item:hover {
transform: scale(1.02);
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
transition: all 0.3s ease;
}
.assignment-item h3 {
margin: 0;
font-size: 1.3rem;
color: #3e3e3e;
}
.assignment-item p {
margin: 5px 0 0;
font-size: 1rem;
color: #555;
}
/* Keyframe animations */
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes slideIn {
0% { transform: translateY(-20px); opacity: 0; }
100% { transform: translateY(0); opacity: 1; }
}
@keyframes fadeInUp {
0% { opacity: 0; transform: translateY(10px); }
100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.1); opacity: 0.7; }
100% { transform: scale(1); opacity: 1; }
}
</style>
</head>
<body>
<div id="assignments-homeworks" class="section-container">
<h2 class="section-title">Assignments & Homeworks</h2>
<div class="message-container">
<div class="message">📝 Check Out Your Assignments 📝</div>
<div class="message-subtext">Stay focused and organized! 📚✨</div>
</div>
<!-- Assignments List -->
<div class="assignments-list">
<div class="assignment-item">
<h3>Study Skills</h3>
<p>Task: Write a report introduction</p>
</div>
<!-- Add more assignments here if needed -->
</div>
</div>
</body>
</html>
<!-- Quiz Countdown Section -->
<div id="quiz-countdown" class="quiz-schedule">
<h2>Upcoming Quizzes</h2>
<div class="quiz-container">
<div class="quiz-card">
<div class="quiz-header">
<h3>Monday 18/11/2024 : Linguistics at 11:30</h3>
<div class="quiz-icon"><i class="fas fa-calendar-day"></i></div>
</div>
<div class="countdown" id="countdown1">Loading...</div>
<div class="progress-bar">
<div class="progress" id="progress1"></div>
</div>
</div>
<div class="quiz-card">
<div class="quiz-header">
<h3>Tuesday 19/11/2024 : Grammar at 10:00</h3>
<div class="quiz-icon"><i class="fas fa-calendar-day"></i></div>
</div>
<div class="countdown" id="countdown2">Loading...</div>
<div class="progress-bar">
<div class="progress" id="progress2"></div>
</div>
</div>
<div class="quiz-card">
<div class="quiz-header">
<h3>Wednesday 20/11/2024 : Text Study at 11:30</h3>
<div class="quiz-icon"><i class="fas fa-calendar-day"></i></div>
</div>
<div class="countdown" id="countdown3">Loading...</div>
<div class="progress-bar">
<div class="progress" id="progress3"></div>
</div>
</div>
<div class="quiz-card">
<div class="quiz-header">
<h3>Thursday 21/11/2024: Written Expression at 10:00</h3>
<div class="quiz-icon"><i class="fas fa-calendar-day"></i></div>
</div>
<div class="countdown" id="countdown4">Loading...</div>
<div class="progress-bar">
<div class="progress" id="progress4"></div>
</div>
</div>
</div>
</div>
<!-- Add FontAwesome CDN for Icons -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
<!-- Styling for the Quiz Section -->
<style>
.quiz-schedule {
background: rgba(255, 255, 255, 0.9);
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
padding: 20px;
margin: 20px auto;
max-width: 900px;
text-align: center;
}
.quiz-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 20px;
}
.quiz-card {
background-color: #fff;
border-radius: 10px;
padding: 20px;
width: 22%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease-in-out;
text-align: left;
position: relative;
}
.quiz-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.quiz-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.quiz-header h3 {
font-size: 1.2rem;
color: #333;
}
.quiz-icon {
font-size: 1.5rem;
color: #607d8b;
}
.countdown {
font-size: 1.2rem;
color: #ff9800;
font-weight: bold;
margin-top: 10px;
}
.progress-bar {
width: 100%;
background-color: #f0f0f0;
border-radius: 5px;
height: 8px;
margin-top: 10px;
position: relative;
}
.progress {
background-color: #4caf50;
height: 100%;
width: 0%;
border-radius: 5px;
transition: width 1s ease;
}
</style>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Website</title>
<link href="https://fonts.googleapis.com/css2?family=Kelly+Slab&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Kelly Slab', sans-serif;
margin: 0;
padding: 0;
background-color: #f8f9fa;
min-height: 100vh; /* Ensure body takes at least the full height of the viewport */
display: flex;
flex-direction: column; /* Ensure the layout grows vertically */
justify-content: flex-start; /* Aligns content to top */
}
#social-media {
background: #ffffff;
border-radius: 15px;
padding: 30px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 800px;
text-align: center;
margin-top: auto; /* Pushes the social media section to the bottom */
margin-left: auto;
margin-right: auto; /* Centers horizontally */
animation: fadeIn 1.5s ease-out;
}
#social-media .section-title {
font-size: 2rem;
color: #3e3e3e;
margin-bottom: 20px;
animation: slideIn 1.5s ease-out;
}
#social-media .link-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
animation: fadeIn 1.5s ease-out;
}
.social-link {
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
color: #333;
background: #f0f4f8;
padding: 15px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
width: 200px;
font-size: 1.2rem;
transition: transform 0.3s, box-shadow 0.3s;
}
.social-link:hover {
transform: scale(1.05);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.social-icon {
margin-right: 10px;
font-size: 1.5rem;
}
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes slideIn {
0% { transform: translateY(-20px); opacity: 0; }
100% { transform: translateY(0); opacity: 1; }
}
</style>
</head>
<body>
<!-- Your other website content here -->
<div id="social-media">
<h2 class="section-title">Social Media Sites & Contacts</h2>
<div class="link-container">
<a href="https://www.facebook.com/profile.php?id=61566591980436" class="social-link" target="_blank">
<span class="social-icon">📘</span> University Facebook Page 1
</a>
<a href="https://www.facebook.com/letters.UbmaOfficial" class="social-link" target="_blank">
<span class="social-icon">📘</span> University Facebook Page 2
</a>
<a href="https://www.facebook.com/meriem.bouallaga.94" class="social-link" target="_blank">
<span class="social-icon">📘</span> Meriem Bouallaga Facebook
</a>
<a href="https://www.youtube.com/@meriembrahim9607" class="social-link" target="_blank">
<span class="social-icon">📺</span> Meriem Brahim YouTube Channel
</a>
<a href="mailto:[email protected]" class="social-link" target="_blank">
<span class="social-icon">📧</span> Mallem (Written Expression)
</a>
<a href="mailto:[email protected]" class="social-link" target="_blank">
<span class="social-icon">📧</span> Guellati (Text Study & Study Skills)
</a>
<a href="mailto:[email protected]" class="social-link" target="_blank">
<span class="social-icon">📧</span> Diafi (Grammar)
</a>
<a href="mailto:[email protected]" class="social-link" target="_blank">
<span class="social-icon">📧</span> Guebla (Literature)
</a>
<a href="mailto:[email protected]" class="social-link" target="_blank">
<span class="social-icon">📧</span> Ait Youcef (Oral Expression)
</a>
<a href="https://drive.google.com/drive/folders/15i96jFeuW3aL1saJBF-sFBU3FMPZ9u2M?usp=drive_link" class="social-link" target="_blank">
<span class="social-icon">📂</span> Lessons on Google Drive
</a>
<a href="https://www.youtube.com/playlist?list=PLTnLt7kV_1q6a_kz2mmVENqgsx2NGGS9o" class="social-link" target="_blank">
<span class="social-icon">🎥</span> Lessons on YouTube Playlist
</a>
</div>
</div>
</body>
<!-- Your other website content here -->
</body>
</html>
<!DOCTYPE html>
<html lang="ar">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>أذكار إسلامية</title>
<style>
/* Adhkar Widget Styling */
#adhkar-widget {
position: fixed;
bottom: 20px;
right: 20px;
background: linear-gradient(145deg, #f3f4f6, #e2e4e8); /* Subtle gradient */
color: #2f4f4f; /* Dark slate gray for elegant text */
font-family: "Kelly Slab", cursive; /* Modern and artistic font */
font-size: 1.2rem;
padding: 15px 20px;
border-radius: 15px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
animation: fadeIn 1s ease-out;
z-index: 1000;
text-align: center;
max-width: 300px;
opacity: 0.95;
direction: rtl;
display: flex;
flex-direction: column;
gap: 10px;
}
#adhkar-widget:hover {
transform: scale(1.05); /* Slight zoom effect on hover */
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
#adhkar-widget button {
position: absolute;
top: 5px;
left: 5px;
border: none;
background: none;
color: #999;
font-size: 1.2rem;
cursor: pointer;
}
#adhkar-widget p {
margin: 0;
line-height: 1.8;
font-size: 1.3rem;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
#adhkar-widget p span {
font-size: 1.5rem; /* Emoji size */
}
@keyframes fadeIn {
from {
transform: translateY(30px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 0.95;
}
}
</style>
</head>
<body>
<!-- Adhkar Widget -->
<div id="adhkar-widget">
<button onclick="closeAdhkar()">×</button>
<p id="adhkar-text"><span>🌙</span> سبحان الله وبحمده، سبحان الله العظيم</p>
</div>
<script>
// List of Adhkar in Arabic
const phrases = [
"⭐ سبحان الله وبحمده، سبحان الله العظيم",
"⭐ لا إله إلا الله وحده لا شريك له، له الملك وله الحمد وهو على كل شيء قدير",
"⭐ اللهم صلِّ وسلم على نبينا محمد",
"⭐ أستغفر الله وأتوب إليه",
"⭐ حسبي الله لا إله إلا هو عليه توكلت وهو رب العرش العظيم",
"⭐ اللهم اجعلني من التوابين واجعلني من المتطهرين",
"⭐ ربنا آتنا في الدنيا حسنة وفي الآخرة حسنة وقنا عذاب النار"
];
let currentIndex = 0;
// Function to update Adhkar text
function updateAdhkar() {
const adhkarText = document.getElementById("adhkar-text");
adhkarText.innerHTML = phrases[currentIndex]; // Update the text with the next adhkar
currentIndex = (currentIndex + 1) % phrases.length; // Cycle through adhkar
}
// Function to close the widget temporarily
function closeAdhkar() {
const widget = document.getElementById("adhkar-widget");
widget.style.display = "none"; // Hide widget
// Show it again after 4 seconds with a new adhkar
setTimeout(() => {
updateAdhkar();
widget.style.display = "flex"; // Show widget
}, 4000); // Show after 4 seconds
}
// Update Adhkar every 4 seconds (even if closed)
setInterval(() => {
updateAdhkar();
const widget = document.getElementById("adhkar-widget");
if (widget.style.display === "none") {
setTimeout(() => {
widget.style.display = "flex"; // Show widget again after being closed
}, 4000); // Show after 4 seconds
}
}, 4000);
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Class Forum</title>
<style>
/* Styling for the comment and reply section */
.comment {
border: 1px solid #ccc;
margin: 10px 0;
padding: 10px;
border-radius: 5px;
}
.comment-header h3 {
margin: 0;
font-size: 1.2em;
}
.comment-header p {
margin: 5px 0;
}
.reply-form input,
.reply-form textarea {
width: 100%;
margin: 5px 0;
}
.reply {
margin-left: 20px;
padding: 5px;
border-left: 3px solid #ccc;
}
.details {
margin-top: 10px;
}
.comment-form input,
.comment-form textarea {
width: 100%;
margin: 5px 0;
}
.comment-form button {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
}
.comment-form button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<!-- JavaScript for Countdown and Progress Bar -->
<script>
// Function to calculate time remaining
function getCountdown(targetDate, targetElementId, progressElementId) {
const target = new Date(targetDate).getTime();
setInterval(function () {
const now = new Date().getTime();
const distance = target - now;
if (distance < 0) {
document.getElementById(targetElementId).innerHTML = "Quiz has passed";
document.getElementById(progressElementId).style.width = "100%";
return;
}
const totalDuration = target - new Date().getTime();
const timeElapsed = totalDuration - distance;
const progress = (timeElapsed / totalDuration) * 100;
const days = Math.floor(distance / (1000 * 60 * 60 * 24));
const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((distance % (1000 * 60)) / 1000);
document.getElementById(targetElementId).innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s ";
document.getElementById(progressElementId).style.width = progress + "%";
}, 1000);
}
// Initialize countdown timers and progress bars for each quiz
getCountdown("November 18, 2024 11:30:00", "countdown1", "progress1");
getCountdown("November 19, 2024 10:00:00", "countdown2", "progress2");
getCountdown("November 20, 2024 11:30:00", "countdown3", "progress3");
getCountdown("November 21, 2024 10:00:00", "countdown4", "progress4");
</script>
</body>
</html>
</div>
<script>
// Function to trigger animation when sections are in view
function revealContent() {
const items = document.querySelectorAll('.content-item');
items.forEach(item => {
const itemPosition = item.getBoundingClientRect().top;
const screenPosition = window.innerHeight;
if (itemPosition < screenPosition) {
item.classList.add('visible');
}
});
}
window.addEventListener('scroll', revealContent);
window.addEventListener('load', revealContent);
</script>
</body>
</html>