diff options
Diffstat (limited to 'seasonal.php')
| -rw-r--r-- | seasonal.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/seasonal.php b/seasonal.php new file mode 100644 index 0000000..e137aa8 --- /dev/null +++ b/seasonal.php @@ -0,0 +1,23 @@ +<?php + +$favicon_filename = "/favicon.ico"; +$style = ""; +$greeting = "Welcome."; + +$month = idate("m"); +$day = idate("d"); + +switch($month) { + case 3: + if($day == 31) { + $favicon_filename = "/favicon_transgender.ico"; + $style = ":root { --blue: #5BCEFA; --green: #F5A9B8; --yellow: #FFFFFF; }"; + $greeting = "Trans rights!"; + } + break; +} + +echo("<link rel='icon' type='image/x-icon' href='$favicon_filename'>"); +if($style) { + echo("<style>$style</style>"); +}
\ No newline at end of file |
