Skip to content

Commit 072da09

Browse files
authored
Update index.html
Signed-off-by: Azure <[email protected]>
1 parent 3e4dba3 commit 072da09

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

index.html

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<i class="fas fa-list"></i>
2424
Legend
2525
</button>
26+
2627
<button id="centerMap" class="nav-button">
2728
<i class="fas fa-crosshairs"></i>
2829
Center
@@ -35,6 +36,7 @@
3536
<i class="fas fa-location-arrow"></i>
3637
Tracking
3738
</button>
39+
3840
</div>
3941
</div>
4042
</nav>
@@ -91,7 +93,12 @@ <h3>Map Legend</h3>
9193
<div class="legend-item">
9294
<input type="checkbox" id="sports-toggle" checked>
9395
<span class="legend-color sports"></span>
94-
<span>Sports Facilities</span>
96+
<span>Sports</span>
97+
</div>
98+
<div class="legend-item">
99+
<input type="checkbox" id="shops-toggle" checked>
100+
<span class="legend-color shops"></span>
101+
<span>Shops</span>
95102
</div>
96103
<div class="legend-item">
97104
<input type="checkbox" id="parking-toggle" checked>
@@ -142,21 +149,19 @@ <h3>Map Legend</h3>
142149
</div>
143150

144151
<!-- Location Info Sidebar -->
145-
<div class="location-sidebar" id="locationPopup">
146-
<div class="sidebar-header">
147-
<h3 id="popupTitle">Location Name</h3>
148-
<button class="close-button" id="closePopup">
149-
<i class="fas fa-times"></i>
150-
</button>
151-
</div>
152-
<div class="sidebar-content">
153-
<p id="popupDescription">Location description goes here.</p>
154-
</div>
155-
<div class="sidebar-footer">
156-
<span class="sidebar-timestamp" id="popupTimestamp"></span>
157-
</div>
158-
</div>
152+
159153
</div>
160154
<script src="script.js"></script>
155+
<script>
156+
searchPanel.style.display = 'none';
157+
document.getElementById('toggleSearch').addEventListener('click', () => {
158+
const searchPanel = document.getElementById('searchPanel');
159+
if (searchPanel.style.display === 'none' || searchPanel.style.display === '') {
160+
searchPanel.style.display = 'block'; // Show the search panel
161+
} else {
162+
searchPanel.style.display = 'none'; // Hide the search panel
163+
}
164+
});
165+
</script>
161166
</body>
162167
</html>

0 commit comments

Comments
 (0)