6 lines
178 B
JavaScript
6 lines
178 B
JavaScript
|
|
||
|
let toggle = document.querySelector('.toggle');
|
||
|
let container = document.querySelector('.container');
|
||
|
toggle.onclick = function(){
|
||
|
container.classList.toggle('active');
|
||
|
}
|