Fixed navbar

add-license-1
Guuq 5 years ago
parent 0ee3c51370
commit 1b2747e1be

@ -1,43 +0,0 @@
Navbar = [
{
icon: "/resources/img/favicon.ico",
desc: "Go to the homepage",
link: "/"
},
{
name: "Contact",
desc: "Contact me",
link: "/contact"
},
{
name: "Feedback",
desc: "Feedback for this website",
link: "/feedback"
},
{
name: "Wireframe",
desc: "De wireframe voor deze website",
link: "/wireframe"
},
{
name: "Gallerij",
desc: "Verzameling van foto's",
link: "/gallery"
},
{
name: "Tools",
desc: "Tools voor programmeren",
dropdown: [
{
name: "Playground",
desc: "Test je HTML live!",
link: "/playground"
},
{
name: "Minifier",
desc: "Minify je HTML/CSS/JavaScript",
link: "/minify"
}
]
}
]

@ -60,19 +60,3 @@ Navbar.forEach(i=>{
} }
navbarList.appendChild(navList); navbarList.appendChild(navList);
}) })
var c = document.createElement.bind(document);
var d = document.getElementById.bind(document);
var g = document.querySelector.bind(document);
// Insert nav tag
var navigation = c("nav")
navigation.className = "navigation"
var navbarList = c("ul")
navbarList.className = "navbarList"
navigation.appendChild(navbarList)
document.body.appendChild(navigation)
// Hamburger Menu
var hamburger = c("i")
hamburger.className = "fas fa-bars fa-2x"
navigation.prepend(hamburger)