finish up profiles, begin custom songs

This commit is contained in:
sky
2025-07-08 22:01:44 -04:00
parent c8d3d0d50c
commit a698f941d8
12 changed files with 189 additions and 21 deletions

View File

@ -108,7 +108,7 @@ function starEvent(e) {
let newElement = element.cloneNode(true);
document.getElementById("starredgames").appendChild(newElement);
newElement.addEventListener("click", ()=>{
location.href=`/loader.html?title=${encodeURIComponent(element.name)}&dir=${element.directory}&img=${element.image}`
location.href=`/loader.html?title=${newElement.childNodes[1].childNodes[0].innerText}&dir=${newElement.getAttribute("data-target")}&img=${newElement.getAttribute("data-image")}`
});
})
} else {
@ -128,7 +128,7 @@ function starEvent(e) {
let newElement = element.cloneNode(true);
document.getElementById("starredgames").appendChild(newElement);
newElement.addEventListener("click", ()=>{
location.href=`/loader.html?title=${encodeURIComponent(element.name)}&dir=${element.directory}&img=${element.image}`
location.href=`/loader.html?title=${newElement.childNodes[1].childNodes[0].innerText}&dir=${newElement.getAttribute("data-target")}&img=${newElement.getAttribute("data-image")}`
});
})
}

View File

@ -12,7 +12,7 @@ function loadPJS() {
script.src = "https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js";
document.head.appendChild(script);
script.addEventListener("load", ()=>{
particlesJS.load('particles-js', "js/particlesjs-config.json", ()=>{});
particlesJS.load('particles-js', "/js/particlesjs-config.json", ()=>{});
});
}