7 lines
300 B
JavaScript
7 lines
300 B
JavaScript
const open = document.getElementById('open')
|
|
const close = document.getElementById('close')
|
|
const container = document.querySelector('.container')
|
|
|
|
open.addEventListener('click', () => container.classList.add('show-nav'))
|
|
|
|
close.addEventListener('click', () => container.classList.remove('show-nav')) |