diff --git a/about.html b/about.html index 084957e..05eaf7a 100644 --- a/about.html +++ b/about.html @@ -437,7 +437,7 @@
  • - About + About
  • @@ -821,6 +821,7 @@

    Subscription Successful!

    })(); + \ No newline at end of file diff --git a/active.js b/active.js new file mode 100644 index 0000000..462ade7 --- /dev/null +++ b/active.js @@ -0,0 +1,11 @@ +document.addEventListener("DOMContentLoaded", function() { + const tabs = document.querySelectorAll(".tab a"); + const currentPage = window.location.pathname; + + tabs.forEach(tab => { + // Check if the link matches the current page URL + if (tab.getAttribute("href") === currentPage.split('/').pop()) { + tab.classList.add("active"); + } + }); +}); diff --git a/contact.html b/contact.html index 9acb901..adcbce3 100644 --- a/contact.html +++ b/contact.html @@ -92,7 +92,7 @@
  • - Contact Us + Contact Us
  • @@ -281,6 +281,7 @@

    Subscribe to Newsletter

    + diff --git a/features.html b/features.html index e145540..aa0de86 100644 --- a/features.html +++ b/features.html @@ -89,7 +89,7 @@
  • - Features + Features