From b563c089492dec09e9c88ebd6b32a0ec76bde3cb Mon Sep 17 00:00:00 2001 From: vimal-tech-dev Date: Mon, 9 Mar 2026 17:38:25 +0530 Subject: [PATCH] Google map location updated Removed ScrollSpy behavior Signed-off-by: vimal-tech-dev --- contact.html | 19 ++++++++++++++++--- css/contact.css | 22 ++++++++++++++++++---- js/about.js | 27 +++++---------------------- js/contact.js | 22 +--------------------- 4 files changed, 40 insertions(+), 50 deletions(-) diff --git a/contact.html b/contact.html index cd4b807..e4b3705 100644 --- a/contact.html +++ b/contact.html @@ -229,12 +229,25 @@
+
- Virtual Office · Valsad, Gujarat + Virtual Office · Valsad, Gujarat - India
- + + + +
diff --git a/css/contact.css b/css/contact.css index f55ea78..e4f0650 100644 --- a/css/contact.css +++ b/css/contact.css @@ -652,8 +652,22 @@ body.contact-body { border-radius: 0; } -/* Force the Contact link to stay highlighted, overriding common.js */ -.contact-body .nav-links li a[href="contact.html"], -.contact-body .nav-links li a[href="contact.html"].active { - color: var(--amber) !important; +.map-button { + text-align: center; + margin-top: 15px; +} + +.map-open-btn { + display: inline-block; + padding: 10px 18px; + background: #0a66c2; + color: white; + text-decoration: none; + font-weight: 500; + border-radius: 6px; + transition: background 0.3s ease; +} + +.map-open-btn:hover { + background: #084a8c; } \ No newline at end of file diff --git a/js/about.js b/js/about.js index 50cfc9c..6cf2d6f 100644 --- a/js/about.js +++ b/js/about.js @@ -1,23 +1,6 @@ // about.js -document.addEventListener("DOMContentLoaded", function () { - // Force "About" Link Active - // common.js has a ScrollSpy that removes active classes on scroll. - // This function ensures the about link overrides that behavior. - const aboutLink = document.querySelector('.nav-links a[href="about.html"]'); - - function keepAboutActive() { - if (aboutLink) { - // Remove active from others, force it on About - document - .querySelectorAll(".nav-links a") - .forEach((link) => link.classList.remove("active")); - aboutLink.classList.add("active"); - } - } - - // Run on initial load - keepAboutActive(); - - // Run on scroll to instantly override common.js - window.addEventListener("scroll", keepAboutActive); -}); +// Force "About" Link Active +// common.js has a ScrollSpy that removes active classes on scroll. +// This function ensures the about link overrides that behavior. +// 1️⃣ Force "About" Link Active +// Code was removed because common.js handles this with ScrollSpy. diff --git a/js/contact.js b/js/contact.js index fefa9cf..fcaefba 100644 --- a/js/contact.js +++ b/js/contact.js @@ -1,27 +1,7 @@ // contact.js document.addEventListener("DOMContentLoaded", function () { // 1️⃣ Force "Contact" Link Active - // common.js has a ScrollSpy that removes active classes on scroll. - // This function ensures the contact link overrides that behavior. - const contactLink = document.querySelector( - '.nav-links a[href="contact.html"]' - ); - - function keepContactActive() { - if (contactLink) { - // Remove active from others, force it on Contact - document - .querySelectorAll(".nav-links a") - .forEach((link) => link.classList.remove("active")); - contactLink.classList.add("active"); - } - } - - // Run on initial load - keepContactActive(); - - // Run on scroll to instantly override common.js - window.addEventListener("scroll", keepContactActive); + // Code removed because common.js handles this with ScrollSpy. // 2️⃣ Character Count for Message const messageInput = document.getElementById("message");