mirror of
https://github.com/tchartron/blow
synced 2024-11-23 12:53:20 +00:00
update
This commit is contained in:
parent
57299f1c51
commit
f18bb23106
1 changed files with 2 additions and 0 deletions
|
@ -66,10 +66,12 @@ function toggleMobileMenu() {
|
|||
let menu = document.querySelector('#mobile-menu div.nav-links');
|
||||
if ([...menu.classList].includes('h-screen')) {
|
||||
document.body.classList.remove("overflow-hidden", "relative")
|
||||
document.documentElement.classList.remove("overscroll-none",)
|
||||
menu.classList.remove('h-screen')
|
||||
menu.classList.add('h-0')
|
||||
} else {
|
||||
document.body.classList.add("overflow-hidden", "relative")
|
||||
document.documentElement.classList.add("overscroll-none",)
|
||||
menu.classList.remove('h-0')
|
||||
menu.classList.add('h-screen')
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue