diff options
| author | Ada Isopods <me@bathynomus.xyz> | 2025-01-30 21:49:15 -0700 |
|---|---|---|
| committer | Ada Isopods <me@bathynomus.xyz> | 2026-10-21 23:30:21 -0600 |
| commit | e4772f00c6cd3abe15faf71e701ec65217f05e41 (patch) | |
| tree | 883e07c79c8a4b0ceb65b6bd183522d9cc102890 /seasonal.php | |
| parent | e0406f8c60a05887c2670d633d1d8eb58c7332c1 (diff) | |
Seasonal styling changes + credits pertaining to site
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 |
