Fixed indent, and added mousedown for meow audio

This commit is contained in:
DMZTdhruv
2024-07-26 11:27:29 +05:30
parent 67490d2eba
commit 11379f05c3
3 changed files with 5 additions and 10 deletions

View File

@@ -37,7 +37,7 @@
<footer>
<span>made by kennethnym &lt;3 ·&nbsp;</span>
<a target="_blank" href="https://github.com/kennethnym/infinifi">github</a>
<a target="_blank" rel="noopener noreferrer" href="https://github.com/kennethnym/infinifi">github</a>
</footer>
<canvas id="bg"></canvas>

View File

@@ -133,9 +133,10 @@ playBtn.onmousedown = () => {
);
};
catImg.addEventListener("mouseover", () => {
// Cat audio sound function
catImg.onmousedown = () => {
meowAudio.play();
});
};
playBtn.onclick = () => {
if (isPlaying) {

View File

@@ -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;
}
}
}