-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.js
29 lines (24 loc) · 1002 Bytes
/
help.js
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
import { topHeader, searchBox, links } from "../components/header/navbar.js";
import showList from "../components/header/index.js";
import changeLinkColor from "../scripts/changeLinkColor.js";
import footer from "../components/footer/footer.js";
// Footer section
document.querySelector(".footer").innerHTML= await footer();
// Navbar Import section
document.querySelector(".header-sec-1").innerHTML = await topHeader();
document.querySelector(".search-box").innerHTML = await searchBox();
document.querySelector(".links-box").innerHTML = await links();
changeLinkColor()
window.hide = hide;
document.getElementById("location").addEventListener("click", showList);
function hide() {
let container = document.querySelector(".location-selection ");
document.addEventListener("mouseup", function (e) {
if (!container.contains(e.target)) {
container.style.visibility = "hidden";
}
});
}
// Body section
// Footer section
document.querySelector(".footer").innerHTML= await footer();