mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
🔴 Use correct variables name and fix top navigation
This commit is contained in:
parent
622b0a9674
commit
4f41a065fe
|
@ -24,8 +24,8 @@ const $$ = document.querySelectorAll.bind(document);
|
||||||
scrollUp = newScrollY <= scrollY;
|
scrollUp = newScrollY <= scrollY;
|
||||||
scrollY = newScrollY;
|
scrollY = newScrollY;
|
||||||
|
|
||||||
if(scrollUp && !(isNaN(scrollY) || scrollY <= vh)) topnav.classList.add('is-fixed');
|
if(scrollUp && !(isNaN(scrollY) || scrollY <= vh)) nav.classList.add('is-fixed');
|
||||||
else if(!scrollUp || (isNaN(scrollY) || scrollY <= vh/2)) topnav.classList.remove('is-fixed');
|
else if(!scrollUp || (isNaN(scrollY) || scrollY <= vh/2)) nav.classList.remove('is-fixed');
|
||||||
}
|
}
|
||||||
|
|
||||||
const updateSidebar = () => {
|
const updateSidebar = () => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user