diff --git a/js/script.js b/js/script.js index d79bd33..eec56bd 100644 --- a/js/script.js +++ b/js/script.js @@ -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" + }); + + + }); }); \ No newline at end of file