diff options
| author | Ada Isopods <me@bathynomus.xyz> | 2026-10-14 03:38:44 -0600 |
|---|---|---|
| committer | Ada Isopods <me@bathynomus.xyz> | 2026-10-14 03:38:44 -0600 |
| commit | 40bbd9b5480c69e2c95bd9f20cc428ce992e7b15 (patch) | |
| tree | a11ed9987aa2ce676074d40ad33227b8875f2b01 /footer.php | |
| parent | aa7f342d12005e51924ce1e39770c709dcf96566 (diff) | |
Font selector and other little things
Added a font selector
CSS is now inlined server-side because it makes Lighthouse happy
A few other little accessibility and general housekeeping adjustments
Diffstat (limited to 'footer.php')
| -rw-r--r-- | footer.php | 29 |
1 files changed, 26 insertions, 3 deletions
@@ -1,7 +1,30 @@ <footer> - <p><?php + <?php + $c = $_COOKIE["bugwomen_font_choice"]; + ?> + <form class="footerform" action="/setfont.php" method="post" autocomplete="off"> + <div> + <label for="font">Font Selector</label> + <select id="font" name="font"> + <option <?php if($c=="b612mono"){echo("selected");}?> value="b612mono">B612 Mono</option> + <option <?php if($c=="b612"){echo("selected");}?> value="b612">B612</option> + <option <?php if($c=="opendyslexic"){echo("selected");}?> value="opendyslexic">OpenDyslexic</option> + <option <?php if($c=="ubuntu"){echo("selected");}?> value="ubuntu">Ubuntu</option> + <option <?php if($c=="atkinsonhyperlegible"){echo("selected");}?> value="atkinsonhyperlegible">Atkinson Hyperlegible</option> + <option <?php if($c=="atkinsonhyperlegiblemono"){echo("selected");}?> value="atkinsonhyperlegiblemono">Atkinson Hyperlegible Mono</option> + <option <?php if($c=="googlesans"){echo("selected");}?> value="googlesans">Google Sans</option> + <option <?php if($c=="googlesanscode"){echo("selected");}?> value="googlesanscode">Google Sans Code</option> + <option <?php if($c=="notoserif"){echo("selected");}?> value="notoserif">Noto Serif</option> + <option <?php if($c=="silkscreen"){echo("selected");}?> value="silkscreen">Silkscreen</option> + <option <?php if($c=="browserdefault"){echo("selected");}?> value="browserdefault">Browser default</option> + </select> + </div> + <input type="submit" value="Apply"> + </form> + <p> + <?php $copyrice = array( - 'Ada Isopod', + 'Ada Isopods', 'ur mom', 'gort', 'deep twisty', @@ -17,7 +40,7 @@ 'Bathynomus', 'Bug Women' ); - echo("© ".date("Y")." ".$copyrice[array_rand($copyrice)]); + echo("©".date("Y")." ".$copyrice[array_rand($copyrice)]); ?> | <a href="https://git.isopod.cool/root/isopod.cool">source</a></p> <div class="buttons"> <img src="https://bugwo.men/etc/buttons/isopodhours.png" alt="isopod hours"> |
