minor fixes

This commit is contained in:
sky
2025-08-23 22:39:31 -04:00
parent f99c78c0a8
commit e42a5a524c
9 changed files with 20 additions and 9 deletions

View File

@ -48,6 +48,7 @@ async function loadGames() {
starEvent(e);
});
});
document.getElementById("gameCount").innerText = `${data.length} apps loaded!`;
document.getElementById("loadingMsg").style.display = "none";
document.getElementById("allHeader").style.display = "block";
starredGames = JSON.parse(localStorage.getItem("selenite.starred") || '[]');
@ -58,7 +59,7 @@ async function loadGames() {
let newElement = element.cloneNode(true);
document.getElementById("starredgames").appendChild(newElement);
newElement.addEventListener("click", ()=>{
location.href=`/loader.html?title=${newElement.childNodes[1].childNodes[0].innerText}&dir=${newElement.getAttribute("data-target")}&img=${newElement.getAttribute("data-image")}`
location.href=`/loader.html?title=${newElement.childNodes[1].childNodes[0].innerText}&dir=${newElement.getAttribute("data-target")}&img=${newElement.getAttribute("data-image")}&type=a`
});
});
document.querySelectorAll("#starredgames #star").forEach((e) => {