From 11379f05c3c23a6e436f93e04255105de8e2bd6b Mon Sep 17 00:00:00 2001 From: DMZTdhruv Date: Fri, 26 Jul 2024 11:27:29 +0530 Subject: [PATCH] Fixed indent, and added mousedown for meow audio --- web/index.html | 2 +- web/script.js | 5 +++-- web/style.css | 8 +------- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/web/index.html b/web/index.html index 81b9767..2125d57 100644 --- a/web/index.html +++ b/web/index.html @@ -37,7 +37,7 @@ diff --git a/web/script.js b/web/script.js index 7816646..8e1af08 100644 --- a/web/script.js +++ b/web/script.js @@ -133,9 +133,10 @@ playBtn.onmousedown = () => { ); }; -catImg.addEventListener("mouseover", () => { +// Cat audio sound function +catImg.onmousedown = () => { meowAudio.play(); -}); +}; playBtn.onclick = () => { if (isPlaying) { diff --git a/web/style.css b/web/style.css index 2eff662..537ec54 100644 --- a/web/style.css +++ b/web/style.css @@ -26,7 +26,6 @@ html, body { width: 100%; - overflow: hidden; } body { @@ -152,10 +151,6 @@ a { display: flex; } -.button-container .button { - cursor: pointer; -} - .volume-slider-container { position: absolute; top: 0; @@ -179,7 +174,6 @@ a { appearance: none; border: 2px solid var(--text); background-color: var(--base); - cursor: col-resize; } input[type="range"]::-webkit-slider-runnable-track { @@ -296,4 +290,4 @@ input[type="range"]::-ms-fill-upper { .button:after { opacity: 0.5; } -} +} \ No newline at end of file