2023-01-21 13:12:54 +00:00
|
|
|
<?php
|
|
|
|
function special_events(): string {
|
2023-02-12 13:54:12 +00:00
|
|
|
if (in_array(date('m'), ['12', '1'])) {
|
2023-01-21 13:12:54 +00:00
|
|
|
return 'Winter';
|
|
|
|
}
|
|
|
|
return 'Nothing';
|
|
|
|
}
|
|
|
|
?>
|
2022-11-29 12:49:29 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2023-01-07 17:49:47 +00:00
|
|
|
<title><?=htmlspecialchars($title)?> - the Willy Club</title>
|
2023-01-22 11:42:45 +00:00
|
|
|
<link rel="stylesheet" href="<?=url('/static/style/fonts.css')?>">
|
2022-12-13 16:59:47 +00:00
|
|
|
<link rel="stylesheet" href="<?=url('/static/style/main.css')?>">
|
2023-01-22 19:51:48 +00:00
|
|
|
<link rel="shortcut icon" href="<?=url('/static/img/wc.gif')?>" type="image/x-icon">
|
2022-11-29 12:49:29 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2023-01-21 13:12:54 +00:00
|
|
|
<?php if (special_events() === 'Winter'): ?>
|
|
|
|
<script src="<?=url('/static/js/snow.js')?>"></script>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2023-01-07 17:49:47 +00:00
|
|
|
<header>
|
2023-01-21 14:00:43 +00:00
|
|
|
|
|
|
|
<div id="radio"></div>
|
|
|
|
<script>
|
|
|
|
// some browsers (cough cough safari) dont like the live broadcast and so just keeps loading forever
|
|
|
|
window.addEventListener('load', function () {
|
|
|
|
radio.innerHTML = `
|
2023-01-22 20:07:25 +00:00
|
|
|
<audio controls autoplay><source src="<?=url('/radio/hbr1/trance.ogg')?>?` + Date.now() + `" type="audio/ogg"></audio>
|
2023-01-21 14:00:43 +00:00
|
|
|
`;
|
|
|
|
});
|
|
|
|
</script>
|
2023-01-21 13:12:54 +00:00
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<a href="<?=url('/')?>">
|
|
|
|
<img src="<?=url('/static/img/welcome-to-willy-club.png')?>" alt="Click here to go to the homepage!">
|
|
|
|
</a>
|
2023-01-07 17:49:47 +00:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<hr>
|
2022-12-13 16:59:47 +00:00
|
|
|
|
|
|
|
<main>
|