Correct typo is description object

This commit is contained in:
emma 2024-10-28 08:29:46 -04:00
parent 2c0a2e8e34
commit 1325c5554e
1 changed files with 1 additions and 2 deletions

View File

@ -1,14 +1,13 @@
let icon = document.querySelectorAll(".clickable-image");
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 of been 6 or 7 around this time.",
"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", () => {
let desktop = document.querySelector("body");
// begin creation of window that will display image