-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
76 lines (67 loc) · 2 KB
/
404.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>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="nostr:site"
content="naddr1qq88w6tvdpjkcmf6xyurgdmxvcq3wamnwvaz7tmjv4kxz7fwdec82cnswfhjucm0d5pzpf70qnhzlca8qwq83m9q2t8683tjd4feyhfpvf2ydz6r9088v4q9qvzqqqrhxq05e694" />
<!-- assumed by many themes, we always bundle it -->
<link rel="preload" as="script" href="https://code.jquery.com/jquery-3.5.1.min.js" crossorigin="anonymous"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=">
<script type="module" crossorigin src="https://cdn.npubpro.com/index.js"></script>
<link rel="manifest" href="/manifest.webmanifest"></head>
<body>
<script>
function render() {
let path = new URL(window.location.href).searchParams.get("__renderPath");
console.log("path", path);
if (path && path.startsWith("/")) {
window.history.replaceState({}, null, path);
} else {
path = '';
}
window.nostrSite.renderCurrentPage(path);
window.removeEventListener("load", render);
};
window.addEventListener("load", render);
</script>
<section id="__nostr_site_loading_modal">
<div class="loader"></div>
</section>
<style>
#__nostr_site_loading_modal {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-color: #fff;
z-index: 1000000;
display: block;
}
#__nostr_site_loading_modal .loader {
width: 48px;
height: 48px;
border: 5px solid #bbb;
border-bottom-color: transparent;
border-radius: 50%;
display: inline-block;
box-sizing: border-box;
animation: rotation 1s linear infinite;
position: absolute;
top: 50%;
left: 50%;
margin-left: -24px;
margin-top: -24px;
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
</body>
</html>