Document custom.js close #43 close #44

This commit is contained in:
Matt Walsh
2024-05-19 23:01:42 -05:00
parent 78ceba9c19
commit 543d3f5196
3 changed files with 18 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
// this file is loaded by the main html page (when renamed to custom.js)
// it is intended to allow for customizations that do not get published back to the git repo
// for example, changing the logo
// start running after all content is loaded
document.addEventListener('DOMContentLoaded', () => {
// get all of the logo images
const logos = document.querySelectorAll('.logo img');
// loop through each logo
logos.forEach((elem) => {
// change the source
elem.src = 'my-custom-logo.gif';
});
});