-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
44 lines (40 loc) · 1.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/theme/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prez</title>
<script src="https://kit.fontawesome.com/5660b8b2a9.js" crossorigin="anonymous"></script>
<link href="https://unpkg.com/@triply/yasgui/build/yasgui.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="/theme/theme.css">
</head>
<body>
<header id="header"></header>
<div id="app"></div>
<footer id="footer"></footer>
<script>
var BASE_URL = "/";
fetch(`${BASE_URL}theme/header.html`)
.then(response => {
if (response.ok) {
return response.text();
}
})
.then(text => {
document.querySelector("#header").innerHTML = text;
});
fetch(`${BASE_URL}theme/footer.html`)
.then(response => {
if (response.ok) {
return response.text();
}
})
.then(text => {
document.querySelector("#footer").innerHTML = text;
});
</script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>