sort games alphabetically and add aquapark.io

This commit is contained in:
Dean @ Skool
2024-02-20 13:26:37 -05:00
parent c92a276a5e
commit 98fc37875f
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -40,6 +40,11 @@
"target": "/cdn/amidst-the-clouds/index.html",
"image": "/cdn/amidst-the-clouds/splash.png"
},
{
"name": "Aquapark.io",
"target": "https://player.work/aquapark-slides/index.html",
"image": "https://teen.media/assets/aqua.jpeg"
},
{
"name": "Archery World Tour",
"target": "https://gamesnacks.com/embed/games/archery",
+1
View File
@@ -5,6 +5,7 @@ const load = () => {
fetch('/api/games')
.then(res => res.json())
.then(games => {
games.all.sort((a, b) => a.name.localeCompare(b.name)); // sort games alphabetically
const searchBar = document.querySelector('#searchInput');
searchBar.setAttribute('placeholder', `Search ${games.all.length} Games`);