mirror of
https://github.com/mue/mue.git
synced 2026-07-16 05:23:49 +02:00
37 lines
2.1 KiB
JavaScript
37 lines
2.1 KiB
JavaScript
/*
|
|
█████████████████████████████████████████████████████████████
|
|
██ ██
|
|
██ ███ ███ ██ ██ ███████ ██
|
|
██ ████ ████ ██ ██ ██ ██
|
|
██ ██ ████ ██ ██ ██ █████ ██
|
|
██ ██ ██ ██ ██ ██ ██ ██
|
|
██ ██ ██ ██████ ███████ ██
|
|
██ ██
|
|
██ ██
|
|
██ Copyright 2018-2019 David Ralph (ohlookitsderpy) ██
|
|
██ Licensed under MIT ██
|
|
██ GitHub: https://github.com/ohlookitsderpy/Mue ██
|
|
██ ██
|
|
██ Special thanks to contributors! <3 ██
|
|
█████████████████████████████████████████████████████████████
|
|
*/
|
|
|
|
const functions = require('./modules/function.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
|
|
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; }
|