Added functionality to close button
This commit is contained in:
parent
1325c5554e
commit
d480bcf962
|
@ -4,7 +4,6 @@ let descriptions = {
|
|||
"baxter-stare.png": "Baxter lovingly staring at the camera on a sunny day in the apartment. One of my favorite photos of him. He would have been 6 or 7 around this time.",
|
||||
};
|
||||
|
||||
|
||||
icon.forEach((item) => {
|
||||
item.addEventListener("click", () => {
|
||||
|
||||
|
@ -70,5 +69,13 @@ icon.forEach((item) => {
|
|||
let = aboutThisCat = document.querySelector(".site-info");
|
||||
aboutThisCat.style.gridColumn = "2";
|
||||
desktop.appendChild(imageWindow);
|
||||
|
||||
closeButton.addEventListener("click", () => {
|
||||
imageWindow.remove();
|
||||
document.querySelector(".window").style.display = "block"
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue