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!