From 031f4b251cd89e5e636417861cd97e809e0d1a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Fri, 22 Jul 2022 12:13:40 +0300 Subject: [PATCH] Hide container after drawer opens --- resources/scripts/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/scripts/main.js b/resources/scripts/main.js index 934c728..c746052 100644 --- a/resources/scripts/main.js +++ b/resources/scripts/main.js @@ -47,10 +47,13 @@ function hideNavitems() { async function toggleDropdown() { if (dropdown.classList.contains('hidden')) { showDropdown(); + await sleep(550); + document.getElementById("container").style.display = "none"; await sleep(200); showNavitems(); } else { + document.getElementById("container").style.display = "grid"; dropdown.classList.add('dropdown_close_animation'); await sleep(550); dropdown.classList.remove('dropdown_close_animation');