mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-14 23:59:30 -07:00
15 lines
507 B
JavaScript
15 lines
507 B
JavaScript
// 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';
|
|
});
|
|
});
|