mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-17 09:09:30 -07:00
14
server/scripts/custom.sample.js
Normal file
14
server/scripts/custom.sample.js
Normal 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';
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user