mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-02 08:21:02 +00:00
14 lines
364 B
JavaScript
14 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')
|
||
|
})
|