Skip to content

Commit

Permalink
Update remove-main-container.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jmealing committed Dec 6, 2024
1 parent 2a3c99b commit 721da3c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion js/remove-main-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

// 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/fr.html");
} else {
console.error("Brand link not found.");
}
});

0 comments on commit 721da3c

Please sign in to comment.