-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
716 lines (673 loc) · 30.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fitness Club</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" integrity="sha512-5A8nwdMOWrSz20fDsjczgUidUBR8liPYU+WymTZP1lmY9G6Oc7HlZv156XqnsgNUzTyMefFTcsFH/tnJE/+xBg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link href="https://fonts.googleapis.com/css2?family=Dosis:wght@200;300;400;500;600;700;800&family=Oswald:wght@200;300;400;500;600;700&family=Poppins:wght@100&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet"/>
<script src="https://kit.fontawesome.com/3b7003e6ac.js" crossorigin="anonymous"></script>
</head>
<body>
<header>
<div class="brand"><img src="img/LOGO4.png" alt="brand"></div>
<div class="menu">
<div class="btnnn">
<i class="fas fa-times close-btn" ></i>
</div>
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="Pricing.html">Pricing</a>
<a href="Contact.html">Contact</a>
<a href="login-form.html">Login</a>
</div>
<div class="btnnn">
<i class="fas fa-bars menu-btn" style="color:#000"></i>
</div>
<div class="social">
<a href="#"><i class="fa fa-facebook-f"></i></a>
<a href="#"><i class="fa fa-instagram"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
</div>
</header>
<section class="home">
<img class="img-slide active" src="img/about-us.jpg" alt="">
<img class="img-slide" src="img/bg.jpg" alt="">
<img class="img-slide" src="img/bg3.jpg" alt="">
<img class="img-slide" src="img/bg4.jpg" alt="">
<img class="img-slide" src="img/bg2.jpg" alt="">
<div class="SlideContent active">
<h1>Build your body.<br><span>no pain no gain</span></h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<a href="#">Read More</a>
</div>
<div class="SlideContent">
<h1>be strong.<br><span>by Boxing</span></h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<a href="#">Read More</a>
</div>
<div class="SlideContent">
<h1>Let's Do it.<br><span>Together</span></h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<a href="#">Read More</a>
</div>
<div class="SlideContent">
<h1>join us Now.<br><span>not Tomorrow!</span></h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<a href="#">Read More</a>
</div>
<div class="SlideContent">
<h1>Feel Healthy.<br><span>Relax</span></h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<a href="#">Read More</a>
</div>
<div class="slider-navigation">
<div class="nav-btn active"></div>
<div class="nav-btn"></div>
<div class="nav-btn"></div>
<div class="nav-btn"></div>
<div class="nav-btn"></div>
</div>
</section>
<!--WHY PEOPLE CHOOSE US START-->
<section class="dishes">
<div class="title">
<h1>WHY PEOPLE CHOOSE US?</h1>
<p>Our sport experts and latest sports equipment are the winning combination.</p>
</div>
<div class="wrapper">
<div class="card">
<img src="img/support.jpg" alt="">
<div class="info">
<h1>SUPPORT 24/24</h1>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Animi ab voluptate sit aspernatur.</p>
<a href="#" class="btn">Read More</a>
</div>
</div>
<div class="card">
<img src="img/Health.jpg" alt="">
<div class="info">
<h1>FOCUS ON YOUR HEALTH</h1>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Animi ab voluptate sit aspernatur.</p>
<a href="#" class="btn">Read More</a>
</div>
</div>
<div class="card">
<img src="img/Team.png" alt="">
<div class="info">
<h1>OUR TRAINERS</h1>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Animi ab voluptate sit aspernatur.</p>
<a href="#" class="btn">Read More</a>
</div>
</div>
</div>
</section>
<!--WHY PEOPLE CHOOSE US END-->
<!--Our Classes-->
<div class="Classes">
<h1>Our Classes</h1>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing.</p>
<div class="cen">
<div class="Classe">
<img src="img/boxing-gloves.png" alt="">
<h2>Boxing Fitness</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
<div class="Classe">
<img src="img/swimming.png" alt="">
<h2>Swimming</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
<div class="Classe">
<img src="img/yoga.png" alt="">
<h2>Yoga Programs</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
<div class="Classe">
<img src="img/bodybuilder.png" alt="">
<h2>Body Building</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
<div class="Classe">
<img src="img/cycling.png" alt="">
<h2>Cycling</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
<div class="Classe">
<img src="img/dancing.png" alt="">
<h2>Dancing</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
</div>
<a href="#" class="btn">Read more</a>
</div>
<!--end classes-->
<!--offer-->
<div class="offer_area offer_bg">
<div class="container3">
<div class="row justify-content-end">
<div class="col-lg-6">
<div class="offer_text">
<h4>A Big Offer for <br>
This Summer</h4>
<h3>50% Off</h3>
<p>There are many variations of passages of lorem Ipsum available, but the majority have suffered alteration.</p>
<a href="#" class="offer-btn">Join Now</a>
</div>
</div>
</div>
</div>
</div>
<!--offer end-->
<!--PROGRAM START-->
<section class="program-section">
<div class="program-title set-bg" data-setbg="img/red.jpg">
<div class="containerr">
<div class="row">
<div class="col-lg-7 m-auto text-center">
<div class="section-title">
<h2>Choose Your Program</h2>
<p>Our Crossfit experts can help you discover new training techniques and exercises that offer a dynamic and efficient full-body workout.</p>
</div>
</div>
</div>
</div>
</div>
<div class="Programs">
<div class="max-width">
<div class="contents">
<div class="p-card">
<div class="box">
<i class="fa fa-dumbbell"></i>
<h3>Build Body</h3>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Accusamus incidunt labore debitis ea repudiandae numquam.</p>
</div>
</div>
<div class="p-card">
<div class="box">
<i class="fa fa-heart-pulse"></i>
<h3>Cardio</h3>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Accusamus incidunt labore debitis ea repudiandae numquam.</p>
</div>
</div>
<div class="p-card">
<div class="box">
<i class="fa fa-bicycle"></i>
<h3>Bicycle</h3>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Accusamus incidunt labore debitis ea repudiandae numquam.</p>
</div>
</div>
<div class="p-card">
<div class="box">
<i class="fa fa-person-running"></i>
<h3>Running</h3>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Accusamus incidunt labore debitis ea repudiandae numquam.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!--PROGRAM END-->
<!--CLASS TIMETABLE START-->
<section class="trainer-schedule class-timetable spad">
<div class="container5">
<div class="rowss">
<div class="col-lg-12">
<div class="section-title">
<h2>Class Timetable</h2>
</div>
</div>
</div>
<div class="rowss">
<div class="col-lg-12">
<div class="schedule-table">
<table>
<thead>
<tr>
<th></th>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
<th>Thursday</th>
<th>Friday</th>
<th>Saturday</th>
<th>Sunday</th>
</tr>
</thead>
<tbody>
<tr>
<td class="workout-time">10.00</td>
<td class="gym ts-item" data-tsmeta="gym">
<h6>Gym</h6>
<span>10.00 - 11.00</span>
<div class="trainer-name">
John Smith
</div>
</td>
<td></td>
<td class="yoga ts-item" data-tsmeta="yoga">
<h6>Yoga</h6>
<span>10.00 - 12.00</span>
<div class="trainer-name">
Isabelle Wilson
</div>
</td>
<td></td>
<td class="body ts-item" data-tsmeta="body">
<h6>Body</h6>
<span>10.00 - 12.00</span>
<div class="trainer-name">
John Smith
</div>
</td>
<td></td>
<td class="cardio ts-item" data-tsmeta="cardio">
<h6>Cardio</h6>
<span>10.00 - 11.00</span>
<div class="trainer-name">
Daniel Matthew
</div>
</td>
</tr>
<tr>
<td class="workout-time">14.00</td>
<td></td>
<td class="running ts-item" data-tsmeta="running">
<h6>Running</h6>
<span>14.00 - 16.00</span>
<div class="trainer-name">
Isabelle Wilson
</div>
</td>
<td></td>
<td class="box ts-item" data-tsmeta="box">
<h6>Box</h6>
<span>14.00 - 15.00</span>
<div class="trainer-name">
Kayla Wood
</div>
</td>
<td></td>
<td class="gym ts-item" data-tsmeta="gym">
<h6>Gym</h6>
<span>14.00 - 16.00</span>
<div class="trainer-name">
John Smith
</div>
</td>
<td></td>
</tr>
<tr>
<td class="workout-time">16.00</td>
<td class="cardio ts-item" data-tsmeta="cardio">
<h6>Cardio</h6>
<span>16.00 - 18.00</span>
<div class="trainer-name">
Daniel Matthew
</div>
</td>
<td></td>
<td class="gym ts-item" data-tsmeta="gym">
<h6>Gym</h6>
<span>16.00 - 19.00</span>
<div class="trainer-name">
John Smith
</div>
</td>
<td></td>
<td class="yoga ts-item" data-tsmeta="yoga">
<h6>Yoga</h6>
<span>16.00 - 18.00</span>
<div class="trainer-name">
Isabelle Wilson
</div>
</td>
<td></td>
<td class="gym ts-item" data-tsmeta="gym">
<h6>Gym</h6>
<span>16.00 - 20.00</span>
<div class="trainer-name">
John Smith
</div>
</td>
</tr>
<tr>
<td class="workout-time">18.00</td>
<td class="box ts-item" data-tsmeta="box">
<h6>Box</h6>
<span>18.00 - 22.00</span>
<div class="trainer-name">
Kayla Wood
</div>
</td>
<td class="body ts-item" data-tsmeta="body">
<h6>Body</h6>
<span>18.00 - 20.00</span>
<div class="trainer-name">
John Smith
</div>
</td>
<td></td>
<td class="swimming ts-item" data-tsmeta="swimming">
<h6>swimming</h6>
<span>18.00 - 21.00</span>
<div class="trainer-name">
Daniel Matthew
</div>
</td>
<td></td>
<td class="cardio ts-item" data-tsmeta="cardio">
<h6>Cardio</h6>
<span>18.00 - 22.00</span>
<div class="trainer-name">
Daniel Matthew
</div>
</td>
<td></td>
</tr>
<tr>
<td class="workout-time">20.00</td>
<td></td>
<td class="gym ts-item" data-tsmeta="">
<h6>Gym</h6>
<span>20.00 - 22.00</span>
<div class="trainer-name">
John Smith
</div>
</td>
<td class="body ts-item" data-tsmeta="">
<h6>Body</h6>
<span>20.00 - 21.00</span>
<div class="trainer-name">
John Smith
</div>
</td>
<td></td>
<td class="cardio ts-item" data-tsmeta="">
<h6>Cardio</h6>
<span>20.00 - 22.00</span>
<div class="trainer-name">
Daniel Matthew
</div>
</td>
<td></td>
<td class="swimming ts-item" data-tsmeta="">
<h6>swimming</h6>
<span>20.00 - 21.00</span>
<div class="trainer-name">
Daniel Matthew
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
<!--CLASS TIMETABLE END-->
<!--MORE ABOUT US START-->
<section class="cta-section" >
<h2>Start Builing you Body with our Professional Trainers</h2>
<p>Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<a href="About.html" class="primary-btn">More about us</a>
</section>
<!--MORE ABOUT US END-->
<!--GALLERY START-->
<section class="gallery">
<div class="gallery-title">
<h2>OUR Gallery</h2>
</div>
<div class="image-gallery">
<div class="image-box">
<img src="img/3.png" alt="img.jpg" />
<div class="overlay">
<div class="details">
<h3 class="title">
<a href="#">Builing Body</a>
</h3>
<span class="category">
<a href="#">click for more detaills</a>
</span>
</div>
</div>
</div>
<div class="image-box">
<img src="img/gallery-3.jpg" alt="img.jpg" />
<div class="overlay">
<div class="details">
<h3 class="title">
<a href="#">cardio</a>
</h3>
<span class="category">
<a href="#">click for more detaills</a>
</span>
</div>
</div>
</div>
<div class="image-box">
<img src="img/gallery-6.jpg" alt="img.jpg" />
<div class="overlay">
<div class="details">
<h3 class="title">
<a href="#">Team</a>
</h3>
<span class="category">
<a href="#">click for more detaills</a>
</span>
</div>
</div>
</div>
<div class="image-box">
<img src="img/Running.jpg" alt="img.jpg" />
<div class="overlay">
<div class="details">
<h3 class="title">
<a href="#">Running</a>
</h3>
<span class="category">
<a href="#">click for more detaills</a>
</span>
</div>
</div>
</div>
<div class="image-box">
<img src="img/swimming.jpg" alt="img.jpg" />
<div class="overlay">
<div class="details">
<h3 class="title">
<a href="#">Swimming</a>
</h3>
<span class="category">
<a href="#">click for more detaills</a>
</span>
</div>
</div>
</div>
<div class="image-box">
<img src="img/workout.jpg" alt="img.jpg" />
<div class="overlay">
<div class="details">
<h3 class="title">
<a href="#">Workout</a>
</h3>
<span class="category">
<a href="#">click for more detaills</a>
</span>
</div>
</div>
</div>
<div class="image-box">
<img src="img/yoga.jpg" alt="img.jpg" />
<div class="overlay">
<div class="details">
<h3 class="title">
<a href="#">Yoga</a>
</h3>
<span class="category">
<a href="#">click for more detaills</a>
</span>
</div>
</div>
</div>
<div class="image-box">
<img src="img/Boxing.jpg" alt="img.jpg" />
<div class="overlay">
<div class="details">
<h3 class="title">
<a href="#">Boxing</a>
</h3>
<span class="category">
<a href="#">click for more detaills</a>
</span>
</div>
</div>
</div>
<div class="image-box">
<img src="img/cycling.jpg" alt="img.jpg" />
<div class="overlay">
<div class="details">
<h3 class="title">
<a href="#">Cycling</a>
</h3>
<span class="category">
<a href="#">click for more detaills</a>
</span>
</div>
</div>
</div>
</section>
<!--GALLERY END-->
<!--FOOTER START-->
<footer>
<div class="main-content">
<div class="left box">
<h2>About us</h2>
<div class="content">
<p>Lorem, ipsum, dolor sit amet consectetur adipisicing elit. Optio dolore id repudiandae accusamus qui! Nostrum, ex quasi modi consectetur quis numquam, corporis sit obcaecati dolor magnam perferendis asperiores similique cum.</p>
<div class="footsocial">
<a href="#"><span class="fa fa-facebook-f"></span></a>
<a href="#"><span class="fa fa-twitter"></span></a>
<a href="#"><span class="fa fa-instagram"></span></a>
<a href="#"><span class="fa fa-youtube"></span></a>
</div>
</div>
</div>
<div class="center box">
<h2>Address</h2>
<div class="Footercontent">
<div class="place">
<span class="fas fa-map-marker-alt"></span>
<span class="text">Morocco, Rabat</span>
</div>
<div class="phone">
<span class="fas fa-phone-alt"></span>
<span class="text">+212 06xxxxxx</span>
</div>
<div class="email">
<span class="fas fa-envelope"></span>
<span class="text">abc@example.com</span>
</div>
</div>
</div>
<div class="right box">
<h2>Contact us</h2>
<div class="Footercontent">
<form action="#">
<div class="email">
<div class="text">Email *</div>
<input type="email" required>
</div>
<div class="msg">
<div class="text">Message *</div>
<textarea rows="2" cols="25" required></textarea>
</div>
<div class="buttonn">
<button type="submit">Send</button>
</div>
</form>
</div>
</div>
</div>
<div class="bottom">
<center>
<span class="credit">Created By <a href="#">Soukaina Sbai</a> | </span>
<span class="far fa-copyright"></span><span> 2022 All rights reserved.</span>
</center>
</div>
</footer>
<!--FOOTER END-->
<script type="text/javascript">
//----------------------------------------------------------
//Javacript for img slider navigation
const btns = document.querySelectorAll(".nav-btn");
const slides = document.querySelectorAll(".img-slide");
const contents = document.querySelectorAll(".SlideContent");
var sliderNav = function(manual){
btns.forEach((btn) => {
btn.classList.remove("active");
});
slides.forEach((slide) => {
slide.classList.remove("active");
});
contents.forEach((content) => {
content.classList.remove("active");
});
btns[manual].classList.add("active");
slides[manual].classList.add("active");
contents[manual].classList.add("active");
}
btns.forEach((btn, i) => {
btn.addEventListener("click", () => {
sliderNav(i);
});
});
//---------------------------------------------------
//img slider autoplay
var playSlider;
var slideNumber = 0;
var numberOfSlides = 5;
var repeater = function(){
playSlider = setInterval(function(){
btns.forEach((btn) => {
btn.classList.remove("active");
});
slides.forEach((slide) => {
slide.classList.remove("active");
});
contents.forEach((content) => {
content.classList.remove("active");
});
slideNumber++;
if (slideNumber > (numberOfSlides - 1)){
slideNumber = 0;
}
btns[slideNumber].classList.add("active");
slides[slideNumber].classList.add("active");
contents[slideNumber].classList.add("active");
},5000);
}
repeater();
//-------------------------------------------------------------
//javascript for navigation bar effect on scroll
window.addEventListener("scroll", function(){
var header = document.querySelector("header");
header.classList.toggle('sticky', window.scrollY > 0);
});
//-------------------------------------------------------------
//javascript for responsive navigation sidebar menu
var menu = document.querySelector('.menu');
var menuBtn = document.querySelector('.menu-btn');
var closeBtn = document.querySelector('.close-btn');
menuBtn.addEventListener("click", () => {
menu.classList.add('active');
});
closeBtn.addEventListener("click", () => {
menu.classList.remove('active');
});
</script>
</body>
</html>