fix typo
This commit is contained in:
@ -24,10 +24,10 @@ const themeConfigs = {
|
||||
js: 'fireworks.js',
|
||||
containerClass: 'fireworks'
|
||||
},
|
||||
haloween: {
|
||||
css: 'haloween.css',
|
||||
js: 'haloween.js',
|
||||
containerClass: 'haloween'
|
||||
halloween: {
|
||||
css: 'halloween.css',
|
||||
js: 'halloween.js',
|
||||
containerClass: 'halloween'
|
||||
},
|
||||
summer: {
|
||||
css: 'summer.css',
|
||||
@ -50,8 +50,11 @@ const themeConfigs = {
|
||||
function determineCurrentTheme() {
|
||||
const date = new Date();
|
||||
const month = date.getMonth();
|
||||
const day = date.getDate();
|
||||
|
||||
if (month === 11 || month === 0 || month === 1) return 'snowfall'; // december, january, february
|
||||
if (month === 9 && day === 31) return 'halloween'; // halloween
|
||||
if (month === 0 && day === 1) return 'fireworks'; //new year
|
||||
if (month >= 2 && month <= 4) return 'spring';
|
||||
if (month >= 5 && month <= 7) return 'summer';
|
||||
if (month >= 8 && month <= 10) return 'autumn';
|
||||
|
Reference in New Issue
Block a user