mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-29 23:11:02 +00:00
6c80002e43
Fixes #75 but still works in Firefox mobile without JS (and it will in Chrome/Safari too once :focus-within will be implemented there)
13 lines
364 B
JavaScript
13 lines
364 B
JavaScript
// It should normally be working fine even without this code
|
|
// But :focus-within is not yet supported by Webkit/Blink
|
|
|
|
const button = document.getElementById('menu')
|
|
const menu = document.getElementById('content')
|
|
|
|
button.addEventListener('click', () => {
|
|
menu.classList.add('show')
|
|
})
|
|
|
|
menu.addEventListener('click', () => {
|
|
menu.classList.remove('show')
|
|
})
|