From 5325878cb6bdcb18f967d9e052b8d03d0361234a Mon Sep 17 00:00:00 2001 From: Jeremy Thomas Date: Mon, 6 Nov 2017 12:56:05 +0000 Subject: [PATCH] Remove fix top navbar toggle --- docs/_javascript/navbar.js | 19 ------------------- docs/documentation/components/navbar.html | 6 ------ docs/lib/navbar.js | 19 ------------------- 3 files changed, 44 deletions(-) diff --git a/docs/_javascript/navbar.js b/docs/_javascript/navbar.js index 42ed7ae3..30fb789c 100644 --- a/docs/_javascript/navbar.js +++ b/docs/_javascript/navbar.js @@ -3,29 +3,10 @@ document.addEventListener('DOMContentLoaded', () => { const rootEl = document.documentElement; const navbarTopEl = document.getElementById('navbar'); const navbarBottomEl = document.getElementById('navbarBottom'); - const fixTopEl = document.getElementById('navbarFixTop'); - const fixTopElIcon = fixTopEl.querySelector('.fa'); const fixBottomEl = document.getElementById('navbarFixBottom'); const fixBottomElIcon = fixBottomEl.querySelector('.fa'); - let fixedTop = false; let fixedBottom = false; - fixTopEl.addEventListener('click', event => { - fixedTop = !fixedTop; - - if (fixedTop) { - fixTopEl.className = 'button is-success'; - fixTopElIcon.className = 'fa fa-check-square-o'; - rootEl.classList.add('has-navbar-fixed-top'); - navbarTopEl.classList.add('is-fixed-top', 'has-shadow'); - } else { - fixTopEl.className = 'button is-link'; - fixTopElIcon.className = 'fa fa-square-o'; - rootEl.classList.remove('has-navbar-fixed-top'); - navbarTopEl.classList.remove('is-fixed-top', 'has-shadow'); - } - }); - fixBottomEl.addEventListener('click', event => { fixedBottom = !fixedBottom; diff --git a/docs/documentation/components/navbar.html b/docs/documentation/components/navbar.html index 4a96352d..787cc12f 100644 --- a/docs/documentation/components/navbar.html +++ b/docs/documentation/components/navbar.html @@ -828,12 +828,6 @@ document.addEventListener('DOMContentLoaded', function () {

Try it out!