From b93970b37a81228741ea2452c4546a43d5303656 Mon Sep 17 00:00:00 2001 From: Jennifer Mealing Date: Fri, 6 Dec 2024 15:40:53 -0500 Subject: [PATCH] Update remove-main-container.js --- js/remove-main-container.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/js/remove-main-container.js b/js/remove-main-container.js index 3efd7fa14..1728e9ca9 100644 --- a/js/remove-main-container.js +++ b/js/remove-main-container.js @@ -12,4 +12,15 @@ var pageDetailsSection = document.querySelector('section.pagedetails'); // Adjus // Add the 'container' class to the 'pagedetails' section if it exists if (pageDetailsSection) { pageDetailsSection.classList.add('container'); -} \ No newline at end of file +} + +// Select the anchor tag within the .brand container +document.addEventListener("DOMContentLoaded", () => { + const brandLink = document.querySelector(".brand a"); + + if (brandLink) { + brandLink.setAttribute("href", "https://www.canada.ca/en.html"); + } else { + console.error("Brand link not found."); + } +}); \ No newline at end of file