mirror of https://github.com/mue/mue.git
yeet
This commit is contained in:
parent
d73308da5d
commit
d6f0c11067
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue