diff options
| author | Hannah Isopod <me@bathynomus.xyz> | 2025-08-25 02:53:45 -0600 |
|---|---|---|
| committer | Hannah Isopod <me@bathynomus.xyz> | 2025-08-25 02:53:45 -0600 |
| commit | 63a3cde3dd740dabede4b8e7bdfa5bbadbb577a0 (patch) | |
| tree | 22c82046019ddc1981323506b67924b55fc2a5c6 /nav.php | |
| parent | 2bfd55cae03245568dbe50c63e73fdb992096d45 (diff) | |
I made a bed recently. Go read about it
- Flatworm Friday is now global
- Badass new blogpost about my badass new bed
- Reorganized /about/ a lil
- New name gained
- Minor CSS changes
- Cleaned out some dead links
- Updated /uses/ to reflect my new mobo
Diffstat (limited to 'nav.php')
| -rw-r--r-- | nav.php | 59 |
1 files changed, 53 insertions, 6 deletions
@@ -152,7 +152,6 @@ if(!preg_match('/(headless.*)/i', $_SERVER['HTTP_USER_AGENT'])) { 'COUNTER', 'TUEADAY', #'PLACEHIM', - 'BLAHAJ' ); break; } @@ -177,10 +176,6 @@ if(!preg_match('/(headless.*)/i', $_SERVER['HTTP_USER_AGENT'])) { $cap = 'place him on your site immediately'; echo "<style type='text/css'>:root{--h1-image:url('images/place_him.png');}</style>"; break; - case 'BLAHAJ': - $cap = '<img id="blahaj" src="images/blahaj.png"> <a href="https://berrymot.github.io/">certified</a> Good Website by blåhaj'; - echo "<style type='text/css'>#blahaj { animation: spin 5s linear infinite; height: 1em; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @media (prefers-reduced-motion) { #blahaj { animation: none; } }</style>"; - break; } } } @@ -222,4 +217,56 @@ function echolink($url, $name) { echolink("etc", "etc"); ?> </nav> -</header>
\ No newline at end of file +</header> + +<?php + if(date("w") == "5") { + $ind = rand(1,2); + $filename = "/images/flatworm friday $ind.mp4"; + echo " + <input type='checkbox' id='fwf' style='display: none;'> + <style> + #flatwormfriday { + right: var(--stdpadding); + bottom: var(--stdpadding); + position: fixed; + background: #0004; + backdrop-filter: blur(var(--stdpadding)); + padding: var(--stdpadding); + border: var(--stdaccentborder); + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + gap: var(--stdpadding); + left: initial; + top: initial; + z-index: 100; + } + #flatwormfriday label { + cursor: pointer; + } + #fwf:checked ~ #flatwormfriday { + left: 0; + right: 0; + top: 0; + bottom: 0; + cursor: initial; + } + .fwfshowonclick { + display: none; + } + #fwf:checked ~ * .fwfshowonclick { + display: initial; + } + </style> + <div id='flatwormfriday'> + <label for='fwf' class='rainbowtext'>It's Flatworm Friday!</label> + <video controls='' class='fwfshowonclick' style='margin: 0;'> + <source src='$filename' type='video/mp4'> + It's Flatworm Friday! Your browser does not support the video tag. + </video> + <label for='fwf' class='fwfshowonclick'>[close]</label> + </div>"; + } +?>
\ No newline at end of file |
