diff --git a/seasonalsAIO.js b/seasonalsAIO.js index 3c9a0d4..828dc7a 100644 --- a/seasonalsAIO.js +++ b/seasonalsAIO.js @@ -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';