From 67d12b2c2da21550696f803b290dafda89be63c5 Mon Sep 17 00:00:00 2001 From: Thedogecraft Date: Mon, 5 Feb 2024 23:42:29 -0700 Subject: [PATCH] a --- public/js/play.js | 6 ++---- public/js/randomtext.js | 7 +++++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/public/js/play.js b/public/js/play.js index e755ae1..27be1ec 100644 --- a/public/js/play.js +++ b/public/js/play.js @@ -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) => { @@ -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)); }); diff --git a/public/js/randomtext.js b/public/js/randomtext.js index 81bd2eb..fa66bd5 100644 --- a/public/js/randomtext.js +++ b/public/js/randomtext.js @@ -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