From 1b2747e1bea708ff5431999248707423d826ea67 Mon Sep 17 00:00:00 2001 From: Guuq <50501321+Guuq@users.noreply.github.com> Date: Fri, 14 Feb 2020 16:18:58 +0100 Subject: [PATCH] Fixed navbar --- ...s~4025d46f19bf398a874a71b3c44db54cf0560a4a | 43 ------------------- resources/scripts/insertNavbar.js | 16 ------- 2 files changed, 59 deletions(-) delete mode 100644 resources/json/navbar.json.js~4025d46f19bf398a874a71b3c44db54cf0560a4a diff --git a/resources/json/navbar.json.js~4025d46f19bf398a874a71b3c44db54cf0560a4a b/resources/json/navbar.json.js~4025d46f19bf398a874a71b3c44db54cf0560a4a deleted file mode 100644 index 47f5336..0000000 --- a/resources/json/navbar.json.js~4025d46f19bf398a874a71b3c44db54cf0560a4a +++ /dev/null @@ -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" - } - ] - } -] diff --git a/resources/scripts/insertNavbar.js b/resources/scripts/insertNavbar.js index 70a91f0..92ba5c7 100644 --- a/resources/scripts/insertNavbar.js +++ b/resources/scripts/insertNavbar.js @@ -60,19 +60,3 @@ Navbar.forEach(i=>{ } 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)