homepage rework for socials and projects
This commit is contained in:
parent
fe84a59326
commit
69e2e22e47
12 changed files with 432 additions and 137 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue