-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrawer.html
More file actions
84 lines (78 loc) · 2.78 KB
/
drawer.html
File metadata and controls
84 lines (78 loc) · 2.78 KB
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
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1, width=device-width" />
<title></title>
<meta name="description" content="" />
<link rel="stylesheet" href="./drawer.css" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap"
/>
</head>
<body>
<div class="drawer-div" data-animate-on-scroll>
<div class="drawer-items-div" id="drawer">
<button class="home-button3" autofocus id="drawerhomeButton">
Home</button
><button class="generator-button3" autofocus id="drawergeneratorButton">
Generator</button
><button class="manager-button3" autofocus id="drawermanagerButton">
Manager</button
><button class="contact-button3" autofocus id="drawercontactButton">
Contact
</button>
</div>
</div>
<script type="text/javascript" src="scripts.js" ></script>
<!-- <script>
var drawerhomeButton = document.getElementById("drawerhomeButton");
if (drawerhomeButton) {
drawerhomeButton.addEventListener("click", function (e) {
window.location.href = "/";
});
}
var drawergeneratorButton = document.getElementById("drawergeneratorButton");
if (drawergeneratorButton) {
drawergeneratorButton.addEventListener("click", function (e) {
window.location.href = "./main.html";
});
}
var drawermanagerButton = document.getElementById("drawermanagerButton");
if (drawermanagerButton) {
drawermanagerButton.addEventListener("click", function (e) {
window.location.href = "./manage.html";
});
}
var drawercontactButton = document.getElementById("drawercontactButton");
if (drawercontactButton) {
drawercontactButton.addEventListener("click", function (e) {
window.location.href = "./contact.html";
});
}
var scrollAnimElements = document.querySelectorAll("[data-animate-on-scroll]");
var observer = new IntersectionObserver(
(entries) => {
for (const entry of entries) {
if (entry.isIntersecting || entry.intersectionRatio > 0) {
const targetElement = entry.target;
targetElement.classList.add("animate");
observer.unobserve(targetElement);
}
}
},
{
threshold: 0.15,
}
);
for (let i = 0; i < scrollAnimElements.length; i++) {
observer.observe(scrollAnimElements[i]);
}
</script> -->
</body>
</html>