Fixed indent, and added mousedown for meow audio
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<span>made by kennethnym <3 · </span>
|
<span>made by kennethnym <3 · </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>
|
</footer>
|
||||||
|
|
||||||
<canvas id="bg"></canvas>
|
<canvas id="bg"></canvas>
|
||||||
|
@@ -133,9 +133,10 @@ playBtn.onmousedown = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
catImg.addEventListener("mouseover", () => {
|
// Cat audio sound function
|
||||||
|
catImg.onmousedown = () => {
|
||||||
meowAudio.play();
|
meowAudio.play();
|
||||||
});
|
};
|
||||||
|
|
||||||
playBtn.onclick = () => {
|
playBtn.onclick = () => {
|
||||||
if (isPlaying) {
|
if (isPlaying) {
|
||||||
|
@@ -26,7 +26,6 @@
|
|||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -152,10 +151,6 @@ a {
|
|||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-container .button {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.volume-slider-container {
|
.volume-slider-container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -179,7 +174,6 @@ a {
|
|||||||
appearance: none;
|
appearance: none;
|
||||||
border: 2px solid var(--text);
|
border: 2px solid var(--text);
|
||||||
background-color: var(--base);
|
background-color: var(--base);
|
||||||
cursor: col-resize;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="range"]::-webkit-slider-runnable-track {
|
input[type="range"]::-webkit-slider-runnable-track {
|
||||||
@@ -296,4 +290,4 @@ input[type="range"]::-ms-fill-upper {
|
|||||||
.button:after {
|
.button:after {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user