mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 00:46:28 +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;
|
||||
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 = () => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user