Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ananyasoni authored Apr 20, 2024
1 parent c7cfcb2 commit 874db8b
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Name: Ananya Shreya Soni
* Date: April 19th, 2024
* Section: CSE 154 AC
*
* This JS file respresents the behavior for my about me page
* in my website and adds some interactivity. For example,
Expand Down Expand Up @@ -74,19 +73,4 @@
evt.currentTarget.classList.remove('button_hover');
}

/**
* after hovering over the second image on my about me
* page some text shows up below the caption of the image.
* nothing happens after hovering over it once.
*/
function onHover() {
if (imgHoverCount <= 0) {
let paragraph = document.createElement("p");
paragraph.textContent = "touch some grass to feel better ;)";
document.getElementById("sad").appendChild(paragraph);
imgHoverCount++;
}

}

})();

0 comments on commit 874db8b

Please sign in to comment.