-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathayurveda.js
26 lines (22 loc) · 915 Bytes
/
ayurveda.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
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";
// 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();
window.hide = hide;
changeLinkColor();
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();