page backend
This commit is contained in:
parent
c40001daeb
commit
2cbd101c85
3 changed files with 63 additions and 0 deletions
8
app/static/js/menu.js
Normal file
8
app/static/js/menu.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
document.querySelectorAll(".topnav a.icon").forEach(a => {
|
||||
a.onclick = (event) => {
|
||||
var nav = document.querySelector('.topnav nav')
|
||||
nav.style.display = nav.style.display === 'block' ? 'none' : 'block'
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue