od5965 commited on
Commit
4db1b7b
·
verified ·
1 Parent(s): 28b8e62

make the menus stay open when clicking a menu category

Browse files
Files changed (4) hide show
  1. index.html +6 -6
  2. plumbing-repair.html +6 -6
  3. sump-pumps.html +4 -4
  4. water-heaters.html +4 -4
index.html CHANGED
@@ -62,9 +62,9 @@
62
  </a>
63
 
64
  <div class="hidden md:flex space-x-8">
65
- <div class="group relative">
66
- <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium">Plumbing</a>
67
- <div class="absolute hidden group-hover:block bg-white shadow-lg rounded-md mt-2 w-48 z-50 transition-opacity duration-200">
68
  <a href="plumbing-repair.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Plumbing Repair</a>
69
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Water Heaters</a>
70
  <a href="sump-pumps.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Sump Pumps</a>
@@ -88,9 +88,9 @@
88
  </div>
89
  </div>
90
  <div class="group relative">
91
- <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium">Cooling</a>
92
- <div class="absolute hidden group-hover:block bg-white shadow-lg rounded-md mt-2 w-48 z-50">
93
- <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">AC Repair</a>
94
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Mini-Splits</a>
95
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Maintenance</a>
96
  </div>
 
62
  </a>
63
 
64
  <div class="hidden md:flex space-x-8">
65
+ <div class="group relative">
66
+ <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium" onclick="event.preventDefault(); this.parentElement.classList.toggle('open')">Plumbing</a>
67
+ <div class="absolute hidden group-hover:block group-[.open]:block bg-white shadow-lg rounded-md mt-2 w-48 z-50 transition-opacity duration-200">
68
  <a href="plumbing-repair.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Plumbing Repair</a>
69
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Water Heaters</a>
70
  <a href="sump-pumps.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Sump Pumps</a>
 
88
  </div>
89
  </div>
90
  <div class="group relative">
91
+ <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium" onclick="event.preventDefault(); this.parentElement.classList.toggle('open')">Cooling</a>
92
+ <div class="absolute hidden group-hover:block group-[.open]:block bg-white shadow-lg rounded-md mt-2 w-48 z-50">
93
+ <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">AC Repair</a>
94
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Mini-Splits</a>
95
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Maintenance</a>
96
  </div>
plumbing-repair.html CHANGED
@@ -71,18 +71,18 @@
71
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">All Services</a>
72
  </div>
73
  </div>
74
- <div class="group relative">
75
- <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium">Drains</a>
76
- <div class="absolute hidden group-hover:block bg-white shadow-lg rounded-md mt-2 w-48 z-50 transition-opacity duration-200">
77
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Drain Clearing</a>
78
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Sewer Line Repair</a>
79
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Rooter Services</a>
80
  </div>
81
  </div>
82
  <div class="group relative">
83
- <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium">Heating</a>
84
- <div class="absolute hidden group-hover:block bg-white shadow-lg rounded-md mt-2 w-48 z-50">
85
- <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Furnace Repair</a>
86
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Boiler Services</a>
87
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Heat Pumps</a>
88
  </div>
 
71
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">All Services</a>
72
  </div>
73
  </div>
74
+ <div class极="group relative">
75
+ <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium" onclick="event.preventDefault(); this.parentElement.classList.toggle('open')">Drains</a>
76
+ <div class="absolute hidden group-hover:block group-[.open]:block bg-white shadow-lg rounded-md mt-2 w-48 z-50 transition-opacity duration-200">
77
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Drain Clearing</a>
78
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Sewer Line Repair</a>
79
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Rooter Services</a>
80
  </div>
81
  </div>
82
  <div class="group relative">
83
+ <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium" onclick="event.preventDefault(); this.parentElement.classList.toggle('open')">Heating</a>
84
+ <div class="absolute hidden group-hover:block group-[.open]:block bg-white shadow-lg rounded-md mt-2 w-48 z-50">
85
+ <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Furnace Repair</a>
86
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Boiler Services</a>
87
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Heat Pumps</a>
88
  </div>
sump-pumps.html CHANGED
@@ -63,8 +63,8 @@
63
 
64
  <div class="hidden md:flex space-x-8">
65
  <div class="group relative">
66
- <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium">Plumbing</a>
67
- <div class="absolute hidden group-hover:block bg-white shadow-lg rounded-md mt-2 w-48 z-50 transition-opacity duration-200">
68
  <a href="plumbing-repair.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Plumbing Repair</a>
69
  <a href="water-heaters.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Water Heaters</a>
70
  <a href="sump-pumps.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Sump Pumps</a>
@@ -88,8 +88,8 @@
88
  </div>
89
  </div>
90
  <div class="group relative">
91
- <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium">Cooling</a>
92
- 极<div class="absolute hidden group-hover:block bg-white shadow-lg rounded-md mt-2 w-48 z-50 transition-opacity duration-200">
93
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">AC Repair</a>
94
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Mini-Splits</a>
95
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Maintenance</a>
 
63
 
64
  <div class="hidden md:flex space-x-8">
65
  <div class="group relative">
66
+ <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium" onclick="event.preventDefault(); this.parentElement.classList.toggle('open')">Plumbing</a>
67
+ <div class="absolute hidden group-hover:block group-[.open]:block bg极-white shadow-lg rounded-md mt-2 w-48 z-50 transition-opacity duration-200">
68
  <a href="plumbing-repair.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Plumbing Repair</a>
69
  <a href="water-heaters.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Water Heaters</a>
70
  <a href="sump-pumps.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Sump Pumps</a>
 
88
  </div>
89
  </div>
90
  <div class="group relative">
91
+ <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium" onclick="event.preventDefault(); this.parentElement.classList.toggle('open')">Cooling</a>
92
+ <div class="absolute hidden group-hover:block group-[.open]:block bg-white shadow-lg rounded-md mt-2 w-48 z-50 transition-opacity duration-200">
93
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">AC Repair</a>
94
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Mini-Splits</a>
95
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Maintenance</a>
water-heaters.html CHANGED
@@ -63,8 +63,8 @@
63
 
64
  <div class="hidden md:flex space-x-8">
65
  <div class="group relative">
66
- <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium">Plumbing</a>
67
- <div class="absolute hidden group-hover:block bg-white shadow-lg rounded-md mt-2 w-48 z-50 transition-opacity duration-200">
68
  <a href="plumbing-repair.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Plumbing Repair</a>
69
  <a href="water-heaters.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Water Heaters</a>
70
  <a href="sump-pumps.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Sump Pumps</a>
@@ -72,8 +72,8 @@
72
  </div>
73
  </div>
74
  <div class="group relative">
75
- <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium">Drains</a>
76
- <div class="absolute hidden group-hover:block bg-white shadow-lg rounded-md mt-2 w-48 z-50 transition-opacity duration-200">
77
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Drain Clearing</a>
78
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Sewer Line Repair</a>
79
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Rooter Services</a>
 
63
 
64
  <div class="hidden md:flex space-x-8">
65
  <div class="group relative">
66
+ <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium" onclick="event.preventDefault(); this.parentElement.classList.toggle极('open')">Plumbing</a>
67
+ <div class="absolute hidden group-hover:block group-[.open]:block bg-white shadow-lg rounded-md mt-2 w-48 z-50 transition-opacity duration-200">
68
  <a href="plumbing-repair.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Plumbing Repair</a>
69
  <a href="water-heaters.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Water Heaters</a>
70
  <a href="sump-pumps.html" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Sump Pumps</a>
 
72
  </div>
73
  </div>
74
  <div class="group relative">
75
+ <a href="#" class="nav-link text-gray-700 hover:text-green-600 font-medium" onclick="event.preventDefault(); this.parentElement.classList.toggle('open')">Drains</a>
76
+ <div class="absolute hidden group-hover:block group-[.open]:block bg-white shadow-lg rounded-md mt-2 w-48 z-50 transition-opacity duration-200">
77
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Drain Clearing</a>
78
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Sewer Line Repair</a>
79
  <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Rooter Services</a>