forked from spacebarchat/landingpage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.html
27 lines (27 loc) · 801 Bytes
/
app.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
<!DOCTYPE html>
<html {{ HTML_ATTRS }}>
<head {{ HEAD_ATTRS }}>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet"
/>
{{ HEAD }}
</head>
<body {{ BODY_ATTRS }}>
{{ APP }}
</body>
<script>
window.onload = () => {
const navbar = document.getElementsByClassName("navbar_right")[0]
.classList;
document.querySelector("#toggle").addEventListener("click", () => {
if (navbar.contains("hidden")) {
return navbar.remove("hidden");
}
navbar.add("hidden");
});
};
</script>
</html>