fixed map overlapping modals
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 58s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 58s
This commit is contained in:
@@ -225,6 +225,7 @@ function navigateTo(path) {
|
|||||||
|
|
||||||
function handleRoute() {
|
function handleRoute() {
|
||||||
let path = window.location.pathname;
|
let path = window.location.pathname;
|
||||||
|
console.log("handleRoute called, pathname:", path);
|
||||||
|
|
||||||
// Normalize path - treat /index.html, empty, or just "/" as home
|
// Normalize path - treat /index.html, empty, or just "/" as home
|
||||||
if (path === "" || path === "/index.html" || path.endsWith("/index.html")) {
|
if (path === "" || path === "/index.html" || path.endsWith("/index.html")) {
|
||||||
@@ -232,6 +233,7 @@ function handleRoute() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const view = routes[path] || "home";
|
const view = routes[path] || "home";
|
||||||
|
console.log("Resolved view:", view, "for path:", path);
|
||||||
|
|
||||||
// Update page title for SEO
|
// Update page title for SEO
|
||||||
document.title = pageTitles[view] || pageTitles.home;
|
document.title = pageTitles[view] || pageTitles.home;
|
||||||
|
|||||||
@@ -561,6 +561,8 @@ body {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
transition: var(--transition);
|
transition: var(--transition);
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.school-map:hover {
|
.school-map:hover {
|
||||||
@@ -965,7 +967,7 @@ body {
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
z-index: 200;
|
z-index: 1000;
|
||||||
display: none;
|
display: none;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user