close the nav via 'going back' in the browser #47

Merged
jeff merged 2 commits from back-button-close-nav into master 2022-04-25 16:38:54 +00:00

View File

@ -1,11 +1,11 @@
<script>
function openNavDrawer() {
navDrawerOverlay.classList.toggle('d-none')
navDrawerOverlay.classList.remove('d-none')
navDrawer.style.transform = 'translate(0)'
}
function closeNavDrawer() {
navDrawerOverlay.classList.toggle('d-none')
navDrawerOverlay.classList.add('d-none')
navDrawer.style.transform = 'translate(100%)'
}
@ -62,5 +62,6 @@
}
setThemeTo(th)
initToggle(th)
closeNavDrawer()
})()
</script>