From c28d24ba9ba2422c3d5bfbf5baedde55c1a1a795 Mon Sep 17 00:00:00 2001 From: sky Date: Sat, 23 Aug 2025 22:53:50 -0400 Subject: [PATCH] fix games and apps stars --- js/apps.js | 6 +++--- js/games.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/apps.js b/js/apps.js index 663b061..462b515 100755 --- a/js/apps.js +++ b/js/apps.js @@ -40,7 +40,7 @@ async function loadGames() { gamesElement.appendChild(newElement); elements.push(newElement); newElement.addEventListener("click", ()=>{ - location.href=`/loader.html?title=${encodeURIComponent(element.name)}&dir=${element.directory}&img=${element.image}` + location.href=`/loader.html?title=${encodeURIComponent(element.name)}&dir=${element.directory}&img=${element.image}&type=a` }); star.addEventListener("click", (e) => { e.preventDefault(); @@ -109,7 +109,7 @@ function starEvent(e) { 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` }); }) } else { @@ -129,7 +129,7 @@ function starEvent(e) { 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` }); }) } diff --git a/js/games.js b/js/games.js index b32bc91..0ae7345 100755 --- a/js/games.js +++ b/js/games.js @@ -109,7 +109,7 @@ function starEvent(e) { 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=g` }); }) } else { @@ -129,7 +129,7 @@ function starEvent(e) { 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=g` }); }) }