close the nav via 'going back' in the browser #47
@ -1,11 +1,11 @@
|
|||||||
<script>
|
<script>
|
||||||
function openNavDrawer() {
|
function openNavDrawer() {
|
||||||
navDrawerOverlay.classList.toggle('d-none')
|
navDrawerOverlay.classList.remove('d-none')
|
||||||
navDrawer.style.transform = 'translate(0)'
|
navDrawer.style.transform = 'translate(0)'
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeNavDrawer() {
|
function closeNavDrawer() {
|
||||||
navDrawerOverlay.classList.toggle('d-none')
|
navDrawerOverlay.classList.add('d-none')
|
||||||
navDrawer.style.transform = 'translate(100%)'
|
navDrawer.style.transform = 'translate(100%)'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,5 +62,6 @@
|
|||||||
}
|
}
|
||||||
setThemeTo(th)
|
setThemeTo(th)
|
||||||
initToggle(th)
|
initToggle(th)
|
||||||
|
closeNavDrawer()
|
||||||
})()
|
})()
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user