diff --git a/website/assets/js/main.js b/website/assets/js/main.js index 075d258e3..14a4ff7af 100644 --- a/website/assets/js/main.js +++ b/website/assets/js/main.js @@ -24,8 +24,8 @@ const $$ = document.querySelectorAll.bind(document); scrollUp = newScrollY <= scrollY; scrollY = newScrollY; - if(scrollUp && !(isNaN(scrollY) || scrollY <= vh)) topnav.classList.add('is-fixed'); - else if(!scrollUp || (isNaN(scrollY) || scrollY <= vh/2)) topnav.classList.remove('is-fixed'); + if(scrollUp && !(isNaN(scrollY) || scrollY <= vh)) nav.classList.add('is-fixed'); + else if(!scrollUp || (isNaN(scrollY) || scrollY <= vh/2)) nav.classList.remove('is-fixed'); } const updateSidebar = () => {