mirror of
https://github.com/Myxelium/RandomMemerBot.git
synced 2026-04-13 10:30:36 +00:00
Add seasonal theme support
This commit is contained in:
11
client/web/scripts/seasonal-theme.js
Normal file
11
client/web/scripts/seasonal-theme.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var logo = document.getElementById('logotype');
|
||||
var body = document.getElementsByTagName('body')[0];
|
||||
|
||||
var today = new Date();
|
||||
var month = today.getMonth();
|
||||
|
||||
if (month == 9) {
|
||||
logo.src = 'assets/seasonal/logo-autumn.svg';
|
||||
body.className += ' autumn';
|
||||
document.head.innerHTML += '<link rel="stylesheet" href="assets/seasonal/autumn.css" type="text/css"/>';
|
||||
}
|
||||
Reference in New Issue
Block a user