From: Jeremy Thomas Date: Mon, 6 Nov 2017 12:56:05 +0000 (+0000) Subject: Remove fix top navbar toggle X-Git-Tag: 0.6.1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5325878cb6bdcb18f967d9e052b8d03d0361234a;p=thirdparty%2Fbulma.git Remove fix top navbar toggle --- diff --git a/docs/_javascript/navbar.js b/docs/_javascript/navbar.js index 42ed7ae39..30fb789c9 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 4a96352db..787cc12f6 100644 --- a/docs/documentation/components/navbar.html +++ b/docs/documentation/components/navbar.html @@ -828,12 +828,6 @@ document.addEventListener('DOMContentLoaded', function () {

Try it out!