|
79 | 79 | function longUpdate(){ |
80 | 80 | var date = new Date(); |
81 | 81 |
|
82 | | - if (date.getMonth()+1 == 2 && (date.getDate() == 12 || date.getDate() == 13 || date.getDate() == 14) ){ |
| 82 | + if (date.getMonth()+1 == 2 && (date.getDate() == 12 || date.getDate() == 13 || date.getDate() == 14) ) { |
83 | 83 | $("body").css("background-image", "url(../static/css/valentinemode.png)"); |
84 | | - }else if (date.getMonth()+1 == 3 && (date.getDate() == 13) ){ |
| 84 | + } else if (date.getMonth()+1 == 3 && (date.getDate() == 13) ) { |
85 | 85 | $("body").css("background-image", "url(../static/css/jumpstartbang.png)"); |
86 | | - }else if (date.getMonth()+1 == 10 && (date.getDate() == 29 || date.getDate() == 30 || date.getDate() == 31) ){ |
| 86 | + } else if (date.getMonth()+1 == 10 && (date.getDate() == 29 || date.getDate() == 30 || date.getDate() == 31) ) { |
87 | 87 | $("body").css("background-image", "url(../static/css/spookymode.png)"); |
88 | | - }else if(date.getMonth()+1 == 11 && date.getDate() == 2){ |
| 88 | + } else if(date.getMonth()+1 == 10 || date.getMonth()+1 == 15) { |
| 89 | + $("body").css("background-image", "url(../static/css/wintermode.png)"); // Freshman prank |
| 90 | + } else if(date.getMonth()+1 == 11 && date.getDate() == 2) { |
89 | 91 | $("body").css("background-image", "url(../static/css/duckymode2.png)"); |
90 | | - }else if(date.getMonth()+1 == 11 || date.getMonth()+1 == 12){ |
| 92 | + } else if(date.getMonth()+1 == 11 || date.getMonth()+1 == 12) { |
91 | 93 | $("body").css("background-image", "url(../static/css/wintermode.png)"); |
92 | | - }else if(9 < date.getHours() && date.getHours() < 18){ |
| 94 | + } else if(9 < date.getHours() && date.getHours() < 18) { |
93 | 95 | $("body").css("background-image", "url(../static/css/lightmodeF.png)"); |
94 | | - }else{ |
| 96 | + } else { |
95 | 97 | $("body").css("background-image", "url(../static/css/darkmodeF.png)"); |
96 | 98 | } |
97 | 99 |
|
|
0 commit comments