1
0
Fork 0

Basic UX for Flatworm Friday

Added a little message that says "Refresh the page to close this" to Flatworm Friday. Also note my server determines whether it's Friday based on GMT.
This commit is contained in:
will 2023-01-12 18:08:36 -07:00
parent c0de08f57c
commit 43975b4d80

View file

@ -207,7 +207,7 @@
if(date("w") == "5" && rand(0, 9) == 4) {
$ind = rand(1,2);
$filename = "images/flatworm friday $ind.mp4";
echo "<div id='flatwormfriday' style='position: absolute;left: 0;right: 0;top: 0;bottom: 0;background: #000000cc;display: flex;justify-content: center;align-items: center;'><video controls=''><source src='$filename' type='video/mp4'>It's Flatworm Friday! Your browser does not support the video tag.</video></div>";
echo "<div id='flatwormfriday' style='position: absolute;left: 0;right: 0;top: 0;bottom: 0;background: #000000cc;display: flex;justify-content: center;align-items: center;'><video controls=''><source src='$filename' type='video/mp4'>It's Flatworm Friday! Your browser does not support the video tag.</video><span style='position: absolute; left: 1rem; bottom: 1rem;'>Refresh the page to close this</span></div>";
}
?>
</body>