sort games alphabetically and add aquapark.io
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user