aboutsummaryrefslogtreecommitdiff
path: root/nav.php
diff options
context:
space:
mode:
Diffstat (limited to 'nav.php')
-rw-r--r--nav.php59
1 files changed, 53 insertions, 6 deletions
diff --git a/nav.php b/nav.php
index 032ff67..0f9bb69 100644
--- a/nav.php
+++ b/nav.php
@@ -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