-
Notifications
You must be signed in to change notification settings - Fork 4
/
profile.html
47 lines (45 loc) · 1.53 KB
/
profile.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
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Reader Profile</title>
<style>
@import url("./actor-profile.css");
@import url("./common.css");
@import url("./index.css");
@import url("./theme.css");
@import url("./timeline.css");
@import url("./outbox.css");
@import url("./post.css");
@import url("./post-replies.css");
</style>
<div class="container">
<sidebar-nav></sidebar-nav>
<div class="actor-profile main-content">
<actor-profile></actor-profile>
<distributed-outbox></distributed-outbox>
</div>
<div class="right-column">
<!-- This is an empty column to balance the layout -->
</div>
</div>
<script>
document.addEventListener('usernameUpdated', (event) => {
document.title += ` @${event.detail.username}`;
});
// Get actor url
const params = new URLSearchParams(window.location.search);
const actorUrl = params.get("actor");
if (actorUrl) {
const actorProfile = document.querySelector("actor-profile");
actorProfile.setAttribute("url", actorUrl);
} else {
console.error("Actor URL not specified in the query string.");
}
</script>
<script type="module" src="./sidebar.js"></script>
<script type="module" src="./actor-profile.js"></script>
<script type="module" src="./post.js"></script>
<script type="module" src="./outbox.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>