mirror of
https://github.com/mue/mue.git
synced 2026-06-12 11:38:53 +02:00
yeet
This commit is contained in:
@@ -16,16 +16,16 @@
|
||||
█████████████████████████████████████████████████████████████
|
||||
*/
|
||||
|
||||
const fun = require('./modules/fun.js');
|
||||
const func = require('./modules/func.js');
|
||||
|
||||
const init = () => {
|
||||
// init() gets executed only when the page is fully loaded
|
||||
fun.setDaytimeMsg();
|
||||
fun.setRandBg();
|
||||
fun.setRandQuote();
|
||||
fun.setTime();
|
||||
func.setDaytimeMsg();
|
||||
func.setRandBg();
|
||||
func.setRandQuote();
|
||||
func.setTime();
|
||||
// set interval to update time every second
|
||||
setInterval(fun.setTime, 1000);
|
||||
setInterval(func.setTime, 1000);
|
||||
};
|
||||
|
||||
// initialize on page load through a listener
|
||||
|
||||
@@ -24,7 +24,7 @@ const quotes = require('./quote.js');
|
||||
|
||||
const nal = navigator.language;
|
||||
|
||||
module.exports = class Fun {
|
||||
module.exports = class Func {
|
||||
static setDaytimeMsg() {
|
||||
if (util.contains.call(codes.itcodes, nal)) msg.itMsgSet(); //Italian
|
||||
if (util.contains.call(codes.nlcodes, nal)) msg.nlMsgSet(); //Dutch
|
||||
@@ -7,6 +7,5 @@
|
||||
},
|
||||
"chrome_url_overrides": {
|
||||
"newtab": "index.html"
|
||||
},
|
||||
"runs_offline": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user