11 lines
315 B
JavaScript
11 lines
315 B
JavaScript
|
const open = document.getElementById("open");
|
||
|
const container = document.getElementById("container");
|
||
|
const close = document.getElementById("close");
|
||
|
|
||
|
open.addEventListener('click', ()=> {
|
||
|
container.classList.add('show')
|
||
|
});
|
||
|
close.addEventListener('click', ()=> {
|
||
|
container.classList.remove('show')
|
||
|
});
|