-
Notifications
You must be signed in to change notification settings - Fork 2
/
post.html
39 lines (38 loc) · 1.35 KB
/
post.html
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
<!DOCTYPE html>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Reader Post</title>
<style>
@import url("./index.css");
@import url("./common.css");
@import url("./theme.css");
@import url("./timeline.css");
@import url("./post.css");
@import url("./post-replies.css");
</style>
<div class="container">
<sidebar-nav></sidebar-nav>
<div class="individual-post">
<distributed-post id="distributedPost"></distributed-post>
</div>
<div class="right-column">
<!-- This is an empty column to balance the layout -->
</div>
</div>
<script type="module">
const params = new URLSearchParams(window.location.search);
const postUrl = params.get("url") || "ipns://hypha.coop/dripline/announcing-dp-social-inbox.ipns.jsonld";
if (postUrl) {
const postElement = document.getElementById("distributedPost");
postElement.setAttribute("url", postUrl);
} else {
console.error("URL parameter is missing");
}
</script>
<script type="module" src="./dbInstance.js"></script>
<script type="module" src="./sidebar.js"></script>
<script type="module" src="./timeline.js"></script>
<script type="module" src="./post.js"></script>
<script type="module" src="./followed-accounts.js"></script>
<script type="module" src="./theme-selector.js"></script>
<script type="module" src="./error-message.js"></script>