mirror of https://github.com/mue/mue.git
This commit is contained in:
parent
745ce9537d
commit
66995938e6
|
@ -19,25 +19,18 @@
|
|||
const functions = require('./modules/functions.js');
|
||||
|
||||
const init = () => {
|
||||
|
||||
|
||||
// init() gets executed only when the page is fully loaded
|
||||
|
||||
functions.setDaytimeMessage();
|
||||
functions.setRandomBackground();
|
||||
functions.setRandomQuote();
|
||||
functions.setTime();
|
||||
|
||||
// set interval to update time every second
|
||||
|
||||
let timeInterval = setInterval(functions.setTime, 1000);
|
||||
};
|
||||
|
||||
// initialize on page load through a listener
|
||||
|
||||
document.addEventListener('DOMContentLoaded', init);
|
||||
|
||||
// Disable right click
|
||||
|
||||
document.oncontextmenu=RightMouseDown;
|
||||
function RightMouseDown() { return false; }
|
||||
|
|
Loading…
Reference in New Issue