From d838df075e0081501d2cd8ae3f5a24a46673183c Mon Sep 17 00:00:00 2001 From: zepp Date: Sun, 27 Oct 2024 22:39:56 -0400 Subject: [PATCH] Cursor reflects hover state of picture icon Beginning of Javascript coding has been started as well. --- js/script.js | 10 ++++++++++ style/style.css | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/js/script.js b/js/script.js index e69de29..6ed6578 100644 --- a/js/script.js +++ b/js/script.js @@ -0,0 +1,10 @@ +let icon = document.querySelector(".clickable-image"); + +icon.addEventListener("click", () => { + // let desktop = document.querySelector("body"); + // let imageWindow = document.createElement("div"); + + + + // desktop.appendChild(); +}); \ No newline at end of file diff --git a/style/style.css b/style/style.css index 1447af1..249e97b 100644 --- a/style/style.css +++ b/style/style.css @@ -45,3 +45,7 @@ p { .img-icon { padding-left: 1.25rem; } + +.clickable-image:hover { + cursor: pointer; +} \ No newline at end of file