Add a lil message for those who might see this!
This commit is contained in:
parent
ddd6707807
commit
4118332e8b
3
index.js
3
index.js
|
@ -84,7 +84,8 @@ app.get('/time.php', (req, res) => {
|
|||
const parts = formatter.formatToParts(date);
|
||||
const get = type => parts.find(p => p.type === type).value;
|
||||
const formatted = `${get('day')}${get('month')}${get('year')}${get('hour')}${get('minute')}${get('second')}`;
|
||||
res.send(formatted);
|
||||
const msg = fs.readFileSync(path.join(__dirname, 'msg.html'), 'utf8');
|
||||
res.send(`${formatted}<br><br>${msg}`);
|
||||
} catch (e) {
|
||||
res.status(400).send('Invalid timezone');
|
||||
}
|
||||
|
|
13
msg.html
Normal file
13
msg.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Teknikk FA Clock v2</title>
|
||||
</head>
|
||||
<body>
|
||||
Oh hello there. I'm sure you're wondering why this is alive again. Well, I'm not affiliated with Teknikk sadly, but I did find out the old domain was for sale and snagged it up. I figured hey, why not keep the old time server alive and get rid of those pesky HTTPSERVICE IS REQUIRED messages.<br><br>
|
||||
My name is Chris by the way, I am the lead dev on a small group called KCA Development. You can pop by <a href="/">our Discord</a> if you want to chat!\n\nI'll keep this up, it doesn't cost me much to run, and I like the idea that some random person on the internet might see the clocks are working again lol<br><br>
|
||||
- Chris
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue