-
diff --git a/README.md b/README.md index 8530fcd3..7e536e85 100644 --- a/README.md +++ b/README.md @@ -24,12 +24,17 @@ Contributing to 55GMS is simple, all you need is to fork this repository and cre ### Deploy to Codespaces +#### Note, Codespaces does not let your site run forever, if you leve the codespaces tab alone for to long it will turn your site off. + At the top of this repo, click Code. ![image](https://github.com/user-attachments/assets/f39210a7-33a2-4ee8-b8da-97a894ddbf03) Then click Create Codespaces on Main You should be redirected to a new page + +## It should automatically run so all you have to do is click public on the popup. If it does not follow the steps below. Then go below these two pictures to find how to access the site. + In the terminal area, type `node .` ![image](https://github.com/user-attachments/assets/ef75f5f1-e551-4332-8e60-7e4c8a2b563f) Click enter, you should see a popup on the bottom right diff --git a/static/assets/js/packs.js b/static/assets/js/packs.js new file mode 100644 index 00000000..fa802abe --- /dev/null +++ b/static/assets/js/packs.js @@ -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 = `
`; + gameContainer.insertAdjacentHTML("beforeend", gameHtml); + }); + + let searchbar = document.getElementById("searchbar"); + if (searchbar) + searchbar.placeholder = `Click here to search through our ${apps.length} packs!`; + }); + }); \ No newline at end of file diff --git a/static/assets/json/load/packs.json b/static/assets/json/load/packs.json new file mode 100644 index 00000000..c4caada5 --- /dev/null +++ b/static/assets/json/load/packs.json @@ -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" + } +] \ No newline at end of file diff --git a/static/dashboard.html b/static/dashboard.html index 3755ca74..990f45c2 100644 --- a/static/dashboard.html +++ b/static/dashboard.html @@ -51,8 +51,7 @@