everyonebot/public/index.html

56 lines
2.1 KiB
HTML
Raw Normal View History

2024-12-20 17:42:23 -05:00
<!DOCTYPE html>
<html>
<head>
<title>EveryoneBot</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="pronouns" content="she/her">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="author" content="EveryoneBot">
<meta name="description" content="The fedi bot anyone can post to">
<meta property="og:title" content="EveryoneBot">
<meta property="og:description" content="The fedi bot anyone can post to">
<meta name="twitter:title" content="EveryoneBot">
<meta name="twitter:description" content="The fedi bot anyone can post to">
<style>
body { font-family: sans-serif; }
</style>
</head>
<body>
<h1>EveryoneBot</h1>
<h3>The fedi bot anyone can post to</h3>
<a href="https://git.trinkey.com/trinkey/everyonebot" target="_blank">Source Code</a> - Fedi: <b>@everyonebot@is.trinkey.com</b>
<p>{{ ERROR }}</p>
<hr>
<p>Enter your post below. Anyone can post anything, once every 15 minutes per IP address.</p>
<form method="POST" action="/">
<div><textarea name="text" id="text" required placeholder="a stupid fedi post"></textarea></div>
<div><input type="submit" value="Post!"></div>
</form>
<small>Moderation enforced at trinkey's discretion. This service can go down temporarily or permanently at any time. All posts are viewable by anyone and cannot be deleted.</small>
<p>You can post <span id="until-post">in <i>Please enable JavaScript for this to work!</i></span></p>
<p><details>
<summary>Your IP address:</summary> {{ IP }}
</details></p>
<script>
let expire = +"{{ EXPIRE }}" * 1000;
function updateTimestamp() {
let remaining = Math.floor((expire - Date.now()) / 1000);
document.getElementById("until-post").innerHTML = remaining <= 0 ? "<b>now!</b>" : (remaining < 60 ? `in <b>${remaining}s</b>` : `in <b>${Math.floor(remaining / 60)}m${remaining % 60}s</b>`);
}
updateTimestamp();
setInterval(updateTimestamp, 500);
</script>
</body>
</html>