arimelody.me/public/script/music.js

13 lines
308 B
JavaScript
Raw Normal View History

import "./main.js";
document.querySelectorAll("div.music").forEach(container => {
const link = container.querySelector(".music-title a").href
container.addEventListener("click", event => {
if (event.target.href) return;
event.preventDefault();
location = link;
});
});