Pride thingy

This commit is contained in:
Kasper Rynning-Tønnesen
2019-06-14 18:33:22 +02:00
parent ba98375bf9
commit 9e6f302d45
2 changed files with 10 additions and 0 deletions

View File

@@ -8,6 +8,9 @@ var Frontpage = {
blob_list: [],
winter: (new Date()).getMonth() >= 10 ? true : false,
pride: function() {
return (new Date()).getMonth() == 5;
},
times_rotated: 0,
@@ -540,6 +543,9 @@ var Frontpage = {
if(!Helper.mobilecheck() && Frontpage.winter) {
document.getElementsByClassName("mega")[0].insertAdjacentHTML("afterbegin", '<div id="snow"></div>');
}
if(Frontpage.pride()) {
Helper.addClass("#fp-nav", "pride-background");
}
if(Helper.mobilecheck()){
//$('input#autocomplete-input').characterCounter();