diff --git a/website/_harp.json b/website/_harp.json index e315d658c..9548cadcf 100644 --- a/website/_harp.json +++ b/website/_harp.json @@ -55,7 +55,7 @@ }, "V_CSS": "1.15", - "V_JS": "1.0", + "V_JS": "1.1", "DEFAULT_SYNTAX": "python", "ANALYTICS": "UA-58931649-1", "MAILCHIMP": { diff --git a/website/assets/js/main.js b/website/assets/js/main.js index ed2da747b..cc74e189b 100644 --- a/website/assets/js/main.js +++ b/website/assets/js/main.js @@ -18,7 +18,7 @@ scrollY = newScrollY if(scrollUp && !(isNaN(scrollY) || scrollY <= vh)) nav.classList.add(fixedClass) - else if(!scrollUp || (isNaN(scrollY) || scrollY <= vh/2)) nav.classList.remove(fixedClass) + else if (!scrollUp || (isNaN(scrollY) || scrollY <= vh/2)) nav.classList.remove(fixedClass) } window.addEventListener('scroll', () => requestAnimationFrame(updateNav))