This commit is contained in:
David Ralph 2019-03-30 12:54:04 +00:00
parent d73308da5d
commit d6f0c11067
No known key found for this signature in database
GPG Key ID: D10C04CD5A856556
3 changed files with 8 additions and 9 deletions

View File

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

View File

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

View File

@ -7,6 +7,5 @@
},
"chrome_url_overrides": {
"newtab": "index.html"
},
"runs_offline": true
}
}