audio button

main
km0 3 years ago
parent c04f9aef3a
commit b25d691eb7

@ -21,3 +21,10 @@ const meta = function (release) {
date.innerHTML = release.date;
date.classList.remove("hidden");
};
const intro = document.querySelector("#intro");
let introOutro = new Audio("https://hub.xpub.nl/soupboat/SI18/08/si18-8-intro-outro-final.mp3");
intro.addEventListener("click", () => {
if (introOutro.paused) introOutro.play();
else introOutro.pause();
});

@ -206,6 +206,10 @@ dd {
padding: 2px 4px;
}
#intro {
cursor: pointer;
}
@media (max-width: 767.98px) {
.index li {
width: 32px;

Loading…
Cancel
Save