-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
52 lines (45 loc) · 1.84 KB
/
home.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="The community-managed FrostBitten Wiki!">
<meta name="keywords" content="frostbitten wiki, wiki">
<title>FrostBitten Wiki Directory</title>
<link rel="icon" href="/home-assets/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="/home-assets/style.css">
</head>
<body>
<div id="sidebar" class="sidebar">
<script>
var activeMenu = "mainMenu";
function navigateMenu(menuId) {
var menus = document.querySelectorAll('.sidebarMenu');
menus.forEach(function(menu) {
menu.style.display = 'none';
});
var selectedMenu = document.getElementById(menuId);
if (selectedMenu) {
selectedMenu.style.display = 'block';
activeMenu = menuId;
}
}
navigateMenu(activeMenu);
</script>
<script id="sidebarLoader">
fetch('/home/sidebar')
.then(response => response.text())
.then(html => {
document.getElementById('sidebar').innerHTML = html;
})
.catch(error => console.error('Error fetching HTML:', error));
</script>
</div>
<div style="margin-left: 60px; padding: 15px; min-height: calc(100vh - 30px); display: flex; align-items: center; justify-content: center;">
<div style="margin-bottom: 20px;">
<text style="font-size: 35px;">FrostBitten Wiki Directory</text><br>
<text>Welcome the the FrostBitten Wiki Directory! Browse the current available wikis at the sidebar!</text>
</div>
</div>
</body>
</html>