CHRISTMAS

This commit is contained in:
floppydiskette 2024-11-17 12:12:03 +00:00
commit eb92a7c2fd
No known key found for this signature in database
3 changed files with 690 additions and 0 deletions

View file

@ -1,3 +1,10 @@
<?php
$currentDate = new DateTime();
$currentYear = $currentDate->format('Y');
$startDate = new DateTime("$currentYear-11-10");
$endDate = new DateTime(($currentYear + 1) . '-03-01');
$christmas = ($currentDate > $startDate && $currentDate < $endDate);
?>
<!DOCTYPE html>
<html lang="en">
@ -6,6 +13,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/res/css/master.css">
<title>~floppy</title>
<?php if ($christmas) { ?>
<script type="text/javascript" src="/res/js/snowstorm.js"></script>
<?php } ?>
</head>
<body>
@ -20,7 +30,11 @@
"My life is a living nightmare!"
</p>
</div>
<?php if ($christmas) { ?>
<div><img src="/res/images/profile-christmas.jpg" class="profile-image"></div>
<?php } else { ?>
<div><img src="/res/images/profile.png" class="profile-image"></div>
<?php } ?>
<div>
<ul>
<li>19 y/o, British</li>