diff options
Diffstat (limited to 'public/js/main.js')
| -rw-r--r-- | public/js/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/main.js b/public/js/main.js index fa02ddb..28a62ae 100644 --- a/public/js/main.js +++ b/public/js/main.js | |||
| @@ -83,8 +83,8 @@ function navHeight(){ | |||
| 83 | const nav = document.querySelector('nav'); // détection | 83 | const nav = document.querySelector('nav'); // détection |
| 84 | const nav_zone = document.getElementById('nav_zone'); | 84 | const nav_zone = document.getElementById('nav_zone'); |
| 85 | const resize_observer = new ResizeObserver(entries => { // param de type tableau | 85 | const resize_observer = new ResizeObserver(entries => { // param de type tableau |
| 86 | let nav_button_height = window.innerWidth <= 600 ? 26 : 0; // 26 = taille du bouton | 86 | let nav_button_height = window.innerWidth <= 600 ? 26 : 0; // 26 = taille du bouton |
| 87 | nav_button_height += nav.classList.contains('show') ? 15 : 0; | 87 | nav_button_height += nav.classList.contains('show') ? 15 : 0; |
| 88 | for(const entry of entries){ | 88 | for(const entry of entries){ |
| 89 | nav_zone.style.height = (entry.contentRect.height + nav_button_height) + 'px'; | 89 | nav_zone.style.height = (entry.contentRect.height + nav_button_height) + 'px'; |
| 90 | } | 90 | } |
