diff --git a/src/assets/js/index.js b/src/assets/js/index.js index b8dcdb1c..b13a3be3 100644 --- a/src/assets/js/index.js +++ b/src/assets/js/index.js @@ -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; }