diff options
| author | ache <ache@ache.one> | 2022-05-04 00:53:14 +0200 |
|---|---|---|
| committer | ache <ache@ache.one> | 2022-05-04 00:53:14 +0200 |
| commit | 7c1ff52cd62803540b63fd66d03ecd2bb592f094 (patch) | |
| tree | c813e718f9b97412b2b078cc80bbd6b72a813142 | |
| parent | Fix RSS link (diff) | |
Improove UX
| -rw-r--r-- | src/js/zen.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/zen.js b/src/js/zen.js index 301e21b..d897603 100644 --- a/src/js/zen.js +++ b/src/js/zen.js @@ -1,5 +1,5 @@ window.addEventListener('DOMContentLoaded', () => { - let firstTime = window.location.pathname != '/'; + let firstTime = window.location.pathname != '/' && window.pageYOffset < 800; const toggleArrow = document.querySelector('#harr'); const initValue = document.body.style.getPropertyValue('--width_panel_bis'); |