From 4f9e817d6149798c1c52bfa1bc1f84e62d9b708b Mon Sep 17 00:00:00 2001 From: ben7sys Date: Fri, 15 Nov 2024 12:09:23 +0100 Subject: [PATCH] In header.html: Added IDs to navigation links Added script to hide expertise and contact links on non-index pages Kept the Start link visible on all pages to return to homepage In components.js: Fixed the COMPONENTS_LOADED_EVENT declaration to prevent duplicate declaration error Added condition to only enable scroll behavior on index page Kept component loading logic but made it more robust --- public/components/header.html | 13 ++++++-- public/js/components.js | 58 ++++++++++++++++++----------------- 2 files changed, 40 insertions(+), 31 deletions(-) diff --git a/public/components/header.html b/public/components/header.html index 5ae002d..ca93beb 100644 --- a/public/components/header.html +++ b/public/components/header.html @@ -7,9 +7,9 @@