Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Thedogecraft committed Feb 6, 2024
1 parent 02af6bd commit 67d12b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 2 additions & 4 deletions public/js/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
document.addEventListener("DOMContentLoaded", function () {
const urlParams = new URLSearchParams(window.location.search);
const gameUrl = urlParams.get("game");

const serverUrl1 = "https://assets-taupe.vercel.app";
fetch("/games.json")
.then((response) => response.json())
.then((data) => {
Expand All @@ -12,9 +12,7 @@ document.addEventListener("DOMContentLoaded", function () {
document.title = `${gameData.name} | Nativegames`;
document.getElementById("gamename").innerText = gameData.name;
document.getElementById("favicon").href = gameData.image;
document.getElementById(
"gameIframe"
).src = `https://assets-taupe.vercel.app/${gameUrl}/`;
document.getElementById("gameIframe").src = `/${serverUrl1}/${gameUrl}/`;
})
.catch((error) => console.error("Error fetching game data:", error));
});
7 changes: 7 additions & 0 deletions public/js/randomtext.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ var textOptions = [
"we love minoa.cat",
"better than interstellar",
"NodeJS on top!",
"Aiden Has a foot fetish",
"Or what!",
"Geeeeeeeeeeeeeetar!!!!!!",
"Powerade Sucks!",
"Do not insert text here",
"Doge Loves Metallica",
"Oh yeah or whatever",
];

// Function to generate random index
Expand Down

0 comments on commit 67d12b2

Please sign in to comment.