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:
parent
c0de08f57c
commit
43975b4d80
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue