-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (43 loc) · 1.3 KB
/
index.html
File metadata and controls
48 lines (43 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Follow Toots - Overview</title>
<link rel="stylesheet" href="src/style.css">
</head>
<body class="overview">
<nav id="nav"></nav>
<h1>Follow Toots - Overview</h1>
<p>
<label><input type="checkbox" id="hide-all-seen"> Hide trees without unseen toots</label>
</p>
<div id="overview"></div>
<div id="url-input">
<p id="new-entry">
<span>URL of a toot to follow:</span>
</p>
<p>
The URL should reference a toot (not a profile, feed, ...) in
a plain mastodon client, in phanpy.social or in elk.zone.
</p>
<p>
See the <a href="config.html">Configuration</a> page for a more convenient
way of adding toots.
</p>
</div>
<script type="module">
import database from "./src/database";
const db = await database;
const channel = new BroadcastChannel("hideUrlInput");
const urlInputEl = document.querySelector("#url-input");
async function showOrHideUrlInput() {
urlInputEl.hidden =
(await db.get("config", "hide-url-input"))?.value ?? false;
}
channel.onmessage = showOrHideUrlInput;
showOrHideUrlInput();
</script>
<script type="module" src="src/nav.ts"></script>
<script type="module" src="src/index.ts"></script>
</body>
</html>