homepage rework for socials and projects

This commit is contained in:
ari melody 2025-06-16 20:32:46 +01:00
parent fe84a59326
commit 69e2e22e47
Signed by: ari
GPG key ID: CF99829C92678188
12 changed files with 432 additions and 137 deletions

View file

@ -1,12 +1,6 @@
import "./main.js";
import { hijackClickEvent } from "./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;
});
const link = container.querySelector(".music-title a")
hijackClickEvent(container, link);
});