Add monospace font, no-cache, fuck Chrome ads, and omglol stuff.
Also wrap <p> around texts, and split non-php texts out of php codes.

Signed-off-by: Yongmin Hong <revi@omglol.email>
This commit is contained in:
revi 2024-04-30 18:27:26 +09:00
parent 09470b6a92
commit ae366fa167
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94

View file

@ -5,7 +5,7 @@
</title>
<link rel="icon" href="https://r2.revicdn.net/pfp2.png">
<style>
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=IBM+Plex+Sans+KR:wght@300;400&family=Noto+Sans+KR&family=Ubuntu+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=IBM+Plex+Sans+KR:wght@300;400&family=Noto+Sans+KR&display=swap');
body {
margin: 40px auto;
@ -25,11 +25,22 @@
'Apple Color Emoji',
'Segoe UI Emoji';
}
.code {
font-family:
'IBM Plex Mono',
'Courier New',
monospace;
}
</style>
</head>
<body>
<?php
// Set Cache-control to no-cache, permissions-policy, and provenlol header
header('Cache-Control: no-cache, no-store, must-revalidate, max-age=0');
header('Permissions-Policy: interest-cohort=(),browsing-topics=()');
header('X-Proven: proven.lol/9d2ca2');
// Create a DateTime object with Asia/Seoul timezone
$dateTimeSeoul = new DateTime('now', new DateTimeZone('Asia/Seoul'));
@ -42,8 +53,13 @@
$zonestampLink = "https://zonestamp.toolforge.org/{$currentEpoch}";
// Display the message with formatted date, time, and Zonestamp link
echo "It is {$date} {$time} in <code>Asia/Seoul</code>, where <a rel='me' href='https://revi.xyz'>revi</a> lives.<br />Check in your timezone: <a href='{$zonestampLink}'>ZoneStamp</a>.<br /><hr><a href='https://github.com/revi/sandbox/blob/master/time.php'>Source code @ GitHub</a>. (Warning: it is far from 'clean'.) Also, please note that there is <a href='https://xkcd.com/1179/'>only one correct way to write dates</a>.";
<p>
echo "It is {$date} {$time} in <code>Asia/Seoul</code>, where <a rel='me' href='https://revi.xyz'>revi</a> lives.<br />Check in your timezone: <a href='{$zonestampLink}'>ZoneStamp</a>.";
</p>
?>
<br />
<hr>
<p><a href='https://github.com/revi/sandbox/blob/master/time.php'>Source code @ GitHub</a>. (Warning: it is far from 'clean'.) Also, please note that there is <a href='https://xkcd.com/1179/'>only one correct way to write dates</a>.</p>
</body>
</html>