mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-21 12:48:28 +00:00
awesomeTheme: make it awesome only on awesome day
This commit is contained in:
parent
855f3e969f
commit
c8822a5d5a
@ -4,7 +4,7 @@ function changeIcon(button, src) {
|
|||||||
|
|
||||||
// load an Awesome theme on an Awesome day
|
// load an Awesome theme on an Awesome day
|
||||||
let date = new Date();
|
let date = new Date();
|
||||||
if (date.getMonth() === 2 && date.getDate() === 31) {
|
if (date.getMonth() === 3 && date.getDate() === 1) {
|
||||||
let head = document.head;
|
let head = document.head;
|
||||||
|
|
||||||
head.appendChild(document.createElement('link')).rel = 'stylesheet';
|
head.appendChild(document.createElement('link')).rel = 'stylesheet';
|
||||||
|
Loading…
Reference in New Issue
Block a user