CHRISTMAS
This commit is contained in:
parent
24744b767a
commit
eb92a7c2fd
3 changed files with 690 additions and 0 deletions
14
index.php
14
index.php
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue