Skip to content

Commit

Permalink
Documentation describing purpose of script
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyhevia committed Jun 14, 2024
1 parent 63aa72a commit 60ae854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/js/header.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Load the header and footer on any page that will contain it.

$(function () {
$("#header").load("../../header.html");
});
Expand Down
2 changes: 2 additions & 0 deletions assets/js/nav.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Activate the appropriate box in the header when clicked or scrolled to.

const navElement = document.getElementById("nav");
const ulElement = navElement.querySelector("ul");
const liElements = ulElement.querySelectorAll("li");
Expand Down

0 comments on commit 60ae854

Please sign in to comment.