-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavbar.html
44 lines (34 loc) · 1010 Bytes
/
navbar.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">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./styles/navbar.css">
<link
rel="icon"
href="./images/0_overstock.com_logo-thumb.jpg"
sizes="16x16"
type="image/png"
/>
<style>
</style>
</head>
<body>
<div id="navbar"></div>
</body>
</html>
<script type="module">
import navbar from './components/navbar.js'
let navbar_div = document.getElementById("navbar");
navbar_div.innerHTML = navbar();
let sectionDiv = document.querySelector(".section-div > div");
sectionDiv.addEventListener("mouseover", function () {
let dropDownContainer = document.querySelector(".dropdown-content-part");
dropDownContainer.style.display = "flex";
dropDownContainer.addEventListener("mouseout", function () {
dropDownContainer.style.display = "none";
});
});
</script>