11 lines
173 B
JavaScript
11 lines
173 B
JavaScript
|
let card = document.querySelector('.card');
|
||
|
let toggle = document.querySelector('.toggle');
|
||
|
|
||
|
toggle.onclick = function(){
|
||
|
card.classList.toggle('active');
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|