This commit is contained in:
David Ralph 2019-01-21 18:14:54 +00:00
parent 745ce9537d
commit 66995938e6
1 changed files with 0 additions and 7 deletions

View File

@ -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; }