diff options
| author | 2021-07-16 16:58:21 +0000 | |
|---|---|---|
| committer | 2021-07-16 16:58:21 +0000 | |
| commit | c2176bfc839e31051e09bebd97cb09311c506b3a (patch) | |
| tree | d15b0e782c955da5e12d9554036ea0b0127f0da7 /docs/public/nav.js | |
| parent | 2827f077baab6674a8ee47f3006e82ce991118b8 (diff) | |
| download | astro-c2176bfc839e31051e09bebd97cb09311c506b3a.tar.gz astro-c2176bfc839e31051e09bebd97cb09311c506b3a.tar.zst astro-c2176bfc839e31051e09bebd97cb09311c506b3a.zip | |
[ci] yarn format
Diffstat (limited to 'docs/public/nav.js')
| -rw-r--r-- | docs/public/nav.js | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/docs/public/nav.js b/docs/public/nav.js index 93fadcd61..d6c2bcda3 100644 --- a/docs/public/nav.js +++ b/docs/public/nav.js @@ -11,7 +11,7 @@ let threshold = 32;  function onScroll() {    const curr = window.scrollY;    const dir = curr > prev ? 1 : -1; -   +    if (curr < threshold) {      show();      document.documentElement.classList.add('initial'); @@ -22,16 +22,16 @@ function onScroll() {        show();      }    } -   +    prev = curr;  }  const hide = () => { -  nav.classList.add('hidden') +  nav.classList.add('hidden');    document.documentElement.classList.add('scrolled');    document.documentElement.classList.remove('initial');  };  const show = () => {    nav.classList.remove('hidden');    document.documentElement.classList.remove('scrolled'); -} +}; | 
