-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (57 loc) · 2.05 KB
/
index.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdn.tailwindcss.com?plugins=typography"></script>
<meta charset="UTF-8" />
<link rel="icon" href="/icon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PBO-DPB</title>
<style>
#wrapper-page-breadcrumbs li:before {
content: '›';
display: inline;
color: #AAA;
padding: 0 0.5em 0 0.5em;
}
</style>
</head>
<body class="bg-gray-100 dark:bg-black dark:text-white">
<main
class="bg-white dark:bg-gray-950 container mt-8 p-8 border border-t border-gray-100 mx-auto flex flex-col gap-4">
<nav class="flex flex-row gap-2">
<a href="#">🏠</a>
<ul id="wrapper-page-breadcrumbs" class="flex flex-row gap-2"></ul>
</nav>
<div class="flex flex-row justify-between items-center">
<h1 class="leading-none font-thin mb-4 text-4xl" id="wrapper-page-title"></h1>
<img src="/icon.svg" alt="" class="w-16 h-16 rounded-lg" />
</div>
<pbotool-financialcyclenavigator debug="true"></pbotool-financialcyclenavigator>
</main>
<script>
document.addEventListener('navigation-context-update', (e) => {
// Update the page title
if (e.detail.pageTitle) {
document.getElementById('wrapper-page-title').innerText = e.detail.pageTitle;
}
if (e.detail.breadcrumbStack) {
// Empty the breadcrumb stack
document.getElementById("wrapper-page-breadcrumbs").innerHTML = "";
e.detail.breadcrumbStack.forEach(element => {
let elLi = document.createElement('li');
if (element.url) {
let elLiUrl = document.createElement('a');
elLiUrl.setAttribute('href', element.url);
elLiUrl.innerText = element.name;
elLi.appendChild(elLiUrl);
} else {
elLi.innerText = element.name;
}
document.getElementById("wrapper-page-breadcrumbs").appendChild(elLi);
});
}
});
</script>
<script type="module" src="/src/main.js"></script>
</body>
</html>