-
-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from Ethanp210/main
Updates
- Loading branch information
Showing
5 changed files
with
87 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
window.addEventListener("load", (event) => { | ||
const gameContainer = document.getElementById("game-container"); | ||
fetch("/assets/json/load/packs.json") | ||
.then((response) => response.json()) | ||
.then((apps) => { | ||
apps.sort((a, b) => a.name.localeCompare(b.name)); | ||
apps.forEach(function (game) { | ||
let gameHtml; | ||
gameHtml = `<div class="game"> | ||
<a onclick="${ | ||
game.alert ? `alert('${game.alert}'); ` : "" | ||
}window.location.href='${game.url}';"> | ||
<img loading="eager" src="${game.image}"> | ||
<p class="text">${game.name}</p> | ||
</a> | ||
</div>`; | ||
gameContainer.insertAdjacentHTML("beforeend", gameHtml); | ||
}); | ||
|
||
let searchbar = document.getElementById("searchbar"); | ||
if (searchbar) | ||
searchbar.placeholder = `Click here to search through our ${apps.length} packs!`; | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[ | ||
{ | ||
"name": "Bombies 180K", | ||
"url": "/misc/misc/packs/bombies.html", | ||
"image": "/misc/misc/packs/bombies.jpeg" | ||
}, | ||
{ | ||
"name": "Bombies Recolor", | ||
"url": "/misc/misc/packs/recolor.html", | ||
"image": "/misc/misc/packs/troy.png" | ||
}, | ||
{ | ||
"name": "Miami Private", | ||
"url":"/misc/misc/packs/miami.html", | ||
"image": "/misc/misc/packs/pack.png" | ||
}, | ||
{ | ||
"name": "Nebula", | ||
"url": "/misc/misc/packs/nebula.html", | ||
"image": "/misc/misc/packs/pack2.png" | ||
}, | ||
{ | ||
"name": "Skyline", | ||
"url": "/misc/misc/packs/skyline/index.html", | ||
"image": "/misc/misc/packs/skyline/pack.png" | ||
}, | ||
{ | ||
"name": "X-Ray", | ||
"url": "/misc/misc/packs/xray.html", | ||
"image": "/misc/misc/packs/pack3.png" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters