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
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Luxury Detailing Maine provides mobile professional car cleaning services in the Portland Area"
/>
<title>Luxury Detailing Maine</title>
<link href="css/style.css" rel="stylesheet" />
<link href="css/dropdown.css" rel="stylesheet" />
<link href="css/hamburger.css" rel="stylesheet" />
<style>
section {
max-width: 75%;
width: 75%;
gap: 2rem;
margin-top: 1rem;
}
#book-button {
background-color: var(--black);
color: var(--gold);
width: 50%;
border: 1px solid var(--dark-gold);
border-radius: 5rem;
padding: .5rem 1rem;
margin: 1rem 0 0 0;
font-size: 1rem;
text-decoration: none;
transition: 0.5s ease;
}
#book-button:hover {
cursor: pointer; background-color: #000;
box-shadow: 0px 0px 15px var(--gold);
}
#book-button:active {
background-color: var(--gold);
}
#book-link {
display: block;
width: 100%;
user-select: none;
}
/** Dropdown Menu Style Overrides */
.dropdown {
width: 100%;
border: 2px solid var(--gold);
border-radius: 1.25rem;
transition: 0.5s;
user-select: none;
}
.dropdown:hover {
border: 2px solid white;
}
/** Prevent nested dropdowns from having borders */
.dropdown .dropdown {
border-left: none;
border-right: none;
border-bottom: none;
border-radius: 1.25rem 1.25rem 0 0;
}
.dropdown-header {
align-items: center;
justify-content: flex-start;
gap: 1rem;
text-align: left;
background-color: var(--black);
color: var(--gold);
width: 100%;
height: 100%;
padding: 1.5rem 4rem 2rem 4rem;
border: none;
border-radius: 1.25rem;
transition: 2s;
}
.dropdown-header:hover {
border: none;
}
.dropdown-arrow {
transform: rotate(-90deg);
}
.dropdown-arrow.open {
transform: rotate(0deg);
}
.dropdown-header:hover span {
transform: rotate(-65deg); /** arrow hover effect */
}
.dropdown-header div {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.dropdown-content {
visibility: hidden;
text-align: left;
border: none;
/** closing speed */
transition: max-height .3s ease;
}
/** service section dropdowns that are v long */
.dropdown-content.open-longest {
visibility: visible;
max-height: 1100px;
/** opening speed */
transition: max-height 1s ease;
}
/** service section dropdowns */
.dropdown-content.open-long {
visibility: visible;
max-height: 1100px;
/** opening speed */
transition: max-height 1s ease;
}
/** dropdowns holding specific service info */
.dropdown-content.open {
visibility: visible;
max-height: 400px;
/** opening speed */
transition: max-height .5s ease;
}
.dropdown-body {
display: flex;
flex-direction: row;
justify-items: space-around;
align-items: flex-start;
flex-wrap: wrap;
margin: 1rem 1rem 0rem 6rem;
user-select: text;
}
.dropdown-body p {
padding-right: 4rem;
}
.dropdown-body-half {
flex-basis: 50%;
}
.dropdown-button {
margin: auto;
margin-bottom: 1.5rem;
width: 80%;
}
/** mobile rules */
/** MOBILE */
@media screen and (max-width: 850px) {
section {
width: 100%;
}
h1 {
font-size: 1.75rem;
}
h2 {
font-size: 1.5rem;
}
.dropdown-header {
padding: 1.5rem 1rem 2rem 1rem;
}
/** service section dropdowns that are v long */
.dropdown-content.open-longest {
max-height: 1700px;
/** opening speed */
transition: max-height 1s ease;
}
/** service section dropdowns */
.dropdown-content.open-long {
max-height: 1450px;
/** opening speed */
transition: max-height 1s ease;
}
/** dropdowns holding specific service info */
.dropdown-content.open {
max-height: 600px;
/** opening speed */
transition: max-height .5s ease;
}
.dropdown-body {
margin: 1rem 1rem 0rem 3rem;
flex-direction: column;
}
.dropdown-body span:not(:first-child) {
margin-top: 1.5rem;
}
.dropdown-body p {
padding-right: 0rem;
}
}
</style>
</head>
<body>
<a href="#main-content" class="skipLink">Skip to main content</a>
<header>
<div class="banner" role="banner">
<a href="index.html" class="logo" aria-label="Company Logo">LD</a>
<button
id="hamburger"
aria-label="Toggle mobile navigation menu"
aria-expanded="false"
>
<span></span>
<span></span>
<span></span>
</button>
<nav>
<a class="navLink" role="navigation" href="services.html">Services</a>
<a class="navLink" role="navigation" href="ceramic-coating.html">Ceramic Coating</a>
<a class="navLink" role="navigation" href="reviews.html">Reviews</a>
<a class="navLink" role="navigation" href="contact.html">About</a>
</nav>
</div>
</header>
<main id="main-content">
<!-- SERVICE PACKAGE SECTION -->
<section id="packages">
<div class="dropdown long" aria-expanded="false">
<button class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<h1>Service Packages</h1>
</button>
<div class="dropdown-content">
<!-- LEVEL ONE PACKAGE -->
<div class="dropdown" aria-expanded="false">
<button class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<div>
<h2>Level One</h2>
<p>Give your car the time, love, and care it deserves.</p>
</div>
</button>
<div class="dropdown-content">
<hr>
<div class="dropdown-body">
<span class="dropdown-body-half">
<h3>Interior</h3>
<ul>
<li>Vacuum & light carpet shampooing</li>
<li>Plastics, leather, and vinyls cleaning</li>
<li>Light seat shampooing</li>
<li>Interior & exterior window cleaning</li>
<li>Crack & crevice cleaning</li>
</ul>
</span>
<span class="dropdown-body-half">
<h3>Exterior</h3>
<ul>
<li>Hand wash & dry</li>
<li>Bug gut removal</li>
<li>Tire, wheel, and wheel well cleaning + tire shine</li>
<li>Window cleaning</li>
<li>Light door jam cleaning</li>
</ul>
</span>
</div>
<div class="dropdown-button">
<a target="_blank" class="book-link" tabindex="-1"
href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/XGQVAkJx15acdsEemvEr?productServiceId=sIUtLBqGS4mjAQNwHtI4&sku=rH37oV6muKqDXStXhH3k"
>
<button id="book-button">Book Level One Package Now</button>
</a>
</div>
</div>
</div>
<!-- LEVEL TWO PACKAGE -->
<div class="dropdown" aria-expanded="false">
<button class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<div>
<h2>Level Two</h2>
<p>Tell the world you're proud of your car.</p>
</div>
</button>
<div class="dropdown-content">
<hr>
<div class="dropdown-body">
<span class="dropdown-body-half">
<h3>Interior</h3>
<ul>
<li>Vacuum & light carpet shampooing</li>
<li>Plastics, leather, and vinyls cleaning</li>
<li>Light seat shampooing</li>
<li>Interior & exterior window cleaning</li>
<li>Crack & crevice cleaning</li>
</ul>
</span>
<span class="dropdown-body-half">
<h3>Exterior</h3>
<ul>
<li>Hand wash & dry</li>
<li>Bug gut removal</li>
<li>Tire, wheel, and wheel well cleaning + tire shine</li>
<li><em>Clay service to remove embedded contamination</em></li>
<li><em>3 to 6 month ceramic paint sealant: gloss, protection, hydrophobic & self-cleaning properties</em></li>
</ul>
</span>
</div>
<div class="dropdown-button">
<a target="_blank" class="book-link" tabindex="-1"
href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/XGQVAkJx15acdsEemvEr?productServiceId=ZUyqKhnZtS3uAT9Auo2I&sku=EsEnqIEVcVedKRDITk7e"
>
<button id="book-button">Book Level Two Package Now</button>
</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- CERAMIC COATING SECTION -->
<section id="ceramic">
<div class="dropdown longest" aria-expanded="false">
<button class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<h1>Ceramic Coating</h1>
</button>
<div class="dropdown-content">
question for aden: should clicking this just bring user to "ceramic coating" page?
<!-- ELITE COATING -->
<div class="dropdown" aria-expanded="false">
<button class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<div>
<h2>Elite Ceramic Coating</h2>
<p>Bring out and protect your car's shine for years to come.</p>
</div>
</button>
<div class="dropdown-content">
<hr>
<div class="dropdown-body">
<span class="dropdown-body-half">
<h3>Description</h3>
<p>
A protective layer on your vehicle's surface that repels water,
dirt, and contaminants, making cleaning easier and enhancing the
paint's durability and shine for 3-5 years.
</p>
</span>
<span class="dropdown-body-half">
<h3>Includes</h3>
<ul>
<li>Hand wash</li>
<li>Decontamination of paint & glass</li>
<li>1 Step polish to remove light swirls and enhance gloss</li>
</ul>
</span>
</div>
<div class="dropdown-button">
<a target="_blank" class="book-link" tabindex="-1"
href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/Z2TzVLNpkirBka11huXA?productServiceId=EpBxqPABGIwdF1f3ujqS&sku=Et0iAwD3vqAQYtcNo596">
<button id="book-button">Book Elite Coating</button>
</a>
</div>
</div>
</div>
<!-- COMPLETE COATING -->
<div class="dropdown" aria-expanded="false">
<button class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<div>
<h2>Complete Ceramic Coating</h2>
<p>Like a factory reset on your cars exterior, but 10x better.</p>
</div>
</button>
<div class="dropdown-content">
<hr>
<div class="dropdown-body">
<span class="dropdown-body-half">
<h3>Description</h3>
<p>
A protective layer on your vehicle's surface that repels water,
dirt, and contaminants, and UV rays, with insane gloss and shine
for 3-5 years.<br />
(Paint + Glass)
</p>
</span>
<span class="dropdown-body-half">
<h3>Includes</h3>
<ul>
<li>Hand wash & dry</li>
<li>Wheel cleaning</li>
<li>1 stage paint correction on all paint & glass</li>
<li>
<em>Free quarterly washes</em>
</li>
<li>
<em>Free annual decontamination and topper</em>
</li>
</ul>
</span>
</div>
<div class="dropdown-button">
<a target="_blank" class="book-link" tabindex="-1"
href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/Z2TzVLNpkirBka11huXA?productServiceId=EpBxqPABGIwdF1f3ujqS&sku=Et0iAwD3vqAQYtcNo596">
<button id="book-button">Book Complete Coating</button>
</a>
</div>
</div>
</div>
<!-- WHEEL WASH -->
<div class="dropdown" aria-expanded="false">
<button class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<div>
<h2>Wheel Wash</h2>
<p>Make your wheels glow and shine.</p>
</div>
</button>
<div class="dropdown-content">
<hr>
<div class="dropdown-body">
<span>
<h3>Disclaimer</h3>
<p>
Only available if the entire car receives a ceramic coating.
</p>
</span>
</div>
<div class="dropdown-button">
<a target="_blank" class="book-link" tabindex="-1"
href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/Z2TzVLNpkirBka11huXA?productServiceId=jFgdX1fB0AoMVmIhSSmP&sku=lCUwUjNUHf4NYqqKYRNS">
<button id="book-button">Book Wheel Wash</button>
</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- POLISHING + PAINT CORRECTION SECTION -->
<section id="polish">
<div class="dropdown long" aria-expanded="false">
<button class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<h1>Polishing & Paint Correction</h1>
</button>
<div class="dropdown-content">
<!-- PAINT ENHANCEMENT -->
<div class="dropdown" aria-expanded="false">
<button class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<div>
<h2>Paint Enhancement</h2>
<p>Bring back that gloss you know and love.</p>
</div>
</button>
<div class="dropdown-content">
<hr>
<div class="dropdown-body">
<span class="dropdown-body-half">
<h3>Disclaimer</h3>
<p>Must include an exterior wash & decontamination (price included).</p>
</span>
<span class="dropdown-body-half">
<h3>Includes</h3>
<ul>
<li>1-step polish to enhance gloss & reduce minor defects</li>
<li>Ceramic coating, sealant, or wax required after</li>
</ul>
</span>
</div>
<div class="dropdown-button">
<a target="_blank" class="book-link" tabindex="-1"
href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/W7MYzeflJr6yEAlpgreQ?productServiceId=CvJ0v88LfLS9De7I04qu&sku=EyZfDYm9fPEgr3FRl24h">
<button id="book-button">Book Paint Enhancement</button>
</a>
</div>
</div>
</div>
<!-- PAINT CORRECTION -->
<div class="dropdown" aria-expanded="false">
<button class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<div>
<h2>Paint Correction</h2>
<p>Give your paint a breath of fresh air.</p>
</div>
</button>
<div class="dropdown-content">
<hr>
<div class="dropdown-body">
<span class="dropdown-body-half">
<h3>Disclaimer</h3>
<p>Must include an exterior wash & decontamination (price included).</p>
</span>
<span class="dropdown-body-half">
<h3>Includes</h3>
<ul>
<li>2-step polish to eliminate 80-85% of defects </li>
<li>Restore shine and gloss</li>
<li>Ceramic coating, sealant, or wax required after</li>
</ul>
</span>
</div>
<div class="dropdown-button">
<a target="_blank" class="book-link" tabindex="-1"
href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/W7MYzeflJr6yEAlpgreQ?productServiceId=EDLsm6ynRPi4sKV0ajh1&sku=s1VcPPUMz3Y5n9B99e2F">
<button id="book-button">Book Paint Correction</button>
</a>
</div>
</div>
</div>
</div>
</div>
</section>
wip below
<!-- EXTERIOR DETAILING SECTION -->
<section id="exterior">
<div class="dropdown long" aria-expanded="false">
<button class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<h1>Exterior Detailing</h1>
</button>
<div class="dropdown-content">
<!-- LEVEL ONE EXTERIOR -->
<div class="dropdown" aria-expanded="false">
<button class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<div>
<h2>Level One Exterior</h2>
<p>A safe and meticulous hand wash to reveal the true shine of your car.</p>
</div>
</button>
<div class="dropdown-content">
<hr>
<div class="dropdown-body">
<ul>
<li>Hand wash & dry</li>
<li>Bug gut removal</li>
<li>Tire, wheel, wheel well cleaning, and tire shine</li>
<li>Window cleaning</li>
<li>Light door jam cleaning</li>
</ul></br>
<a target="_blank" class="book-link" tabindex="-1"
href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/yT4vtoWKB5qGaQMaxOdd?productServiceId=TFqzf6t8BKh7vTGxfNBy&sku=Czg1xQxpwwf5ninBF6xq">
<button id="book-button">Book Level One Exterior</button>
</a>
</div>
</div>
</div>
<!-- LEVEL TWO EXTERIOR -->
<div class="dropdown" aria-expanded="false">
<button class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<div>
<h2>Level Two Exterior</h2>
<p>Most popular.</p>
</div>
</button>
<div class="dropdown-content">
<hr>
<div class="dropdown-body">
<p>
For those who want their car to shine, be safe and protected
from harsh elements, self clean, and be a breeze to wash.
(Previously 'Wash, Clay, Seal')
</p><br />
<ul>
<li>Hand wash & dry</li>
<li>Bug gut removal</li>
<li>Tire, wheel, wheel well cleaning, and tire shine</li>
<li>Clay mitt to remove embedded contamination</li>
<li>3 to 6 month ceramic paint sealant: gloss, protection, hydrophobic & self-cleaning properties</li>
</ul></br>
<a target="_blank" class="book-link" tabindex="-1"
href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/yT4vtoWKB5qGaQMaxOdd?productServiceId=bc8YSJd6fl0CprnAY43r&sku=iUA7y7dwM4Kz51pBpQNI">
<button id="book-button">Book Level Two Exterior</button>
</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- INTERIOR DETAILING SECTION -->
<section id="interior">
<div class="dropdown long" aria-expanded="false">
<button class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<h1>Interior Detailing</h1>
</button>
<div class="dropdown-content">
<!-- LEVEL ONE INTERIOR -->
<div class="dropdown" aria-expanded="false">
<div class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<div>
<h2>Level One Interior</h2>
<p>Clean as a whistle!</p>
</div>
</div>
<div class="dropdown-content">
<hr>
<div class="dropdown-body">
<ul>
<li>Vacuum & light carpet shampooing</li>
<li>Plastics, leather, and vinyls cleaning</li>
<li>Light seat shampooing</li>
<li>Interior & exterior window cleaning</li>
<li>Crack & crevice cleaning</li>
</ul></br>
<a target="_blank" class="book-link" tabindex="-1"
href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/iy5yKtAhm0O0w0P05acA?productServiceId=3LCNMgeB58hjFwhg58BU&sku=MuCpgSMV0hU4sUdjAPBi">
<button id="book-button">Book Level One Interior</button>
</a>
</div>
</div>
</div>
<!-- LEVEL TWO INTERIOR -->
<div class="dropdown" aria-expanded="false">
<div class="dropdown-header" onclick="toggleDropdown(this)">
<span class="dropdown-arrow">▼</span>
<div>
<h2>Level Two Interior</h2>
<p>Bring back the interior you love & protect it for months.</p>
</div>
</div>
<div class="dropdown-content">
<hr>
<div class="dropdown-body">
<ul>
<li>Vacuum & carpet shampooing</li>
<li>Plastics, leather, and vinyls scrubbed</li>
<li>Leather conditioning for protection and suppleness</li>
<li>Upholstery shampooing</li>
<li>Crack & crevice cleaning</li>
<li>6 month interior protection (Spills, UV, less dust, less cleaning, and plastic rejuvenation)</li>
</ul></br>
<a target="_blank" class="book-link" tabindex="-1"
href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5/yT4vtoWKB5qGaQMaxOdd?productServiceId=bc8YSJd6fl0CprnAY43r&sku=iUA7y7dwM4Kz51pBpQNI">
<button id="book-button">Book Level Two Interior</button>
</a>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<footer>
<div id="footer-left">
©Luxury Detailing Maine 2025<br />
All rights reserved<br />
Portland, ME
</div>
<div id="footer-right">
207-807-6770<br />
example@email.com<br />
<a
href="https://www.instagram.com/luxurydetailingmaine/"
target="_blank"
>@luxurydetailingmaine</a
>
</div>
</footer>
<script src="js/hamburger.js"></script>
<script>
function toggleDropdown(headerClicked) {
let dropdown = headerClicked.parentElement;
let body = headerClicked.nextElementSibling;
let arrow = headerClicked.children[0];
if (dropdown.classList.contains("longest")) {
dropdown.classList.toggle("open-longest");
body.classList.toggle("open-longest");
arrow.classList.toggle("open");
}
else if (dropdown.classList.contains("long")) {
dropdown.classList.toggle("open-long");
body.classList.toggle("open-long");
arrow.classList.toggle("open");
}
else {
dropdown.classList.toggle("open");
body.classList.toggle("open");
arrow.classList.toggle("open");
}
let isOpen = dropdown.className.includes("open");
dropdown.setAttribute('aria-expanded', isOpen);
}
</script>
</body>
</html>
|