const input = document.querySelector("#compareid_");
input.addEventListener("change", (evt) => {
localStorage.setItem("checkbox", evt.target.checked);
})
localStorage.setItem('checkboxValue', true)
function save_checkbox(evt) {
localStorage.setItem("checkbox", evt.target.checked)
}
const UserComponent = (user) => {
let getUserData = () => {
getUserParams(user.age)
return(
//code
)
}
let getUserData = (user) => {
getUserParams(user.age)
}
const LikeButton = (e) => {
e.target.classList.toggle('element-grid__like-button_active');
}
const buttons = [...document.querySelectorAll('.element-grid__like-button')];
buttons.forEach(button => {
button.addEventListener("click", LikeButton)
})