dismiss card js code

PHOTO EMBED

Tue Feb 22 2022 20:20:30 GMT+0000 (Coordinated Universal Time)

Saved by @viresh #html

const closeIcon = document.querySelector(".close-icon-wrapper");
const cardWrapper = document.querySelector(".dismiss-card-wrapper");
const dismissCard = () => {
    cardWrapper.style.display= "none";
    resetCardBtn.style.display = "block";
}
closeIcon.addEventListener("click",dismissCard);
content_copyCOPY