byecorps.com/footer.php
2024-06-06 15:29:25 +01:00

53 lines
1.4 KiB
PHP

</td>
</tr>
<tr>
<td>
<p id="footer">
(c) ByeCorps 2021-2024
<a href="/credits" style="padding-left: 5px">Credits</a>
</p>
</td>
<?php
$tentwentyfour = [
"1024x768.png",
"1024x768-t.png"
];
$tentwentyfour_url = $tentwentyfour[array_rand($tentwentyfour)];
?>
<td id="badges">
<a href="/feed.xml"><img src="/img/icons/feed.png" alt="RSS Feed"></a>
<a href="https://validator.w3.org/markup/check?uri=referer"><img
src="https://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>
<img src="/img/<?= $tentwentyfour_url ?>" alt="Best viewed in 1024 x 768">
<a href="https://byemc.xyz"><img src="https://byemc.xyz/assets/buttons/byebutton.gif" alt="Bye's Button"></a>
</td>
</tr>
</table>
<script type="text/javascript">
var time = document.getElementById('time');
function convertDatetoBeats(date, toDigits) {
var UTCHour = date.getUTCHours() + 1;
var UTCMinute = date.getUTCMinutes();
var second = date.getUTCSeconds() + (date.getUTCMilliseconds() / 1000);
return "@" + ( ( ( 3600 * UTCHour ) + ( 60 * UTCMinute ) + second ) / 86.4).toFixed(toDigits)
}
var currentTime = new Date();
time.innerText = convertDatetoBeats(currentTime, 2);
setInterval(function () {
var currentTime = new Date();
time.innerText = convertDatetoBeats(currentTime, 2);
}, 100);
</script>
</body>
</html>