mirror of
https://github.com/mue/mue.git
synced 2026-07-18 14:34:12 +02:00
e
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user