From ede94ad13d5a531cb2c55e46c7b331501357a061 Mon Sep 17 00:00:00 2001 From: rednotsus Date: Wed, 30 Oct 2024 20:38:04 -0500 Subject: [PATCH] tf3 --- index.js | 18 +- static/assets/css/gameframe.css | 249 +++++++++++++++++++++++++++ static/assets/json/load/games.json | 2 +- static/misc/monster-track/frame.html | 68 ++++++++ static/misc/terrifier3/index.html | 24 +++ 5 files changed, 351 insertions(+), 10 deletions(-) create mode 100644 static/assets/css/gameframe.css create mode 100644 static/misc/monster-track/frame.html create mode 100644 static/misc/terrifier3/index.html diff --git a/index.js b/index.js index f27d4702..2ee03175 100644 --- a/index.js +++ b/index.js @@ -85,7 +85,7 @@ app.post("/api/chat", async (req, res) => { Authorization: `Bearer ${process.env.API_KEY}`, "Content-Type": "application/json", }, - }, + } ); if (response.status === 429) { switchModel(); @@ -102,7 +102,7 @@ app.post("/api/chat", async (req, res) => { Authorization: `Bearer ${process.env.API_KEY}`, "Content-Type": "application/json", }, - }, + } ); const aiResponse = response.data.choices[0].message.content; conversation.push({ role: "assistant", content: aiResponse }); @@ -177,7 +177,7 @@ app.post("/api/signUp", async (req, res) => { headers: { "Content-Type": "application/x-www-form-urlencoded", }, - }, + } ); if (!captchaVerifyResponse.data.success) { @@ -197,7 +197,7 @@ app.post("/api/signUp", async (req, res) => { Authorization: process.env.workerAUTH, "Content-Type": "application/json", }, - }, + } ); res.status(200).json(response.data); @@ -226,7 +226,7 @@ app.post("/api/login", async (req, res) => { Authorization: process.env.workerAUTH, "Content-Type": "application/json", }, - }, + } ); res.status(200).json(response.data); @@ -252,7 +252,7 @@ app.post("/api/checkPremium", async (req, res) => { Authorization: process.env.workerAUTH, "Content-Type": "application/json", }, - }, + } ); res.status(200).json(response.data); @@ -280,7 +280,7 @@ app.post("/api/uploadSave", async (req, res) => { Authorization: process.env.workerAUTH, "Content-Type": "application/json", }, - }, + } ); res.status(200).json(response.data); @@ -306,7 +306,7 @@ app.post("/api/readSave", async (req, res) => { Authorization: process.env.workerAUTH, "Content-Type": "application/json", }, - }, + } ); res.status(200).json(response.data); @@ -349,7 +349,7 @@ async function fetchDataFromGithub( res, next, baseUrl, - secondaryUrl = null, + secondaryUrl = null ) { function isAFile(urlString) { return urlString.trim().split("/").pop().length !== 0; diff --git a/static/assets/css/gameframe.css b/static/assets/css/gameframe.css new file mode 100644 index 00000000..5273f5db --- /dev/null +++ b/static/assets/css/gameframe.css @@ -0,0 +1,249 @@ +@import "https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"; +@import url("themes.css"); +@import url("navbar.css"); +@import url("misc.css"); + +#gameframe { + margin-top: 1vw; + margin-bottom: 6vw; + margin-right: 23vw; + display: flex; +} +#gameframe .gameDisplay { + margin: auto; + outline: 0.1vw solid #ffffff26; + box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.24); + width: 60.5vw; + height: 38.5vw; + background-color: #19191b; + border-radius: 0.5vw; + overflow: hidden; +} +#gameframe .game { + margin: auto; + width: 60.5vw; + height: 34vw; + background-color: #444; + background-repeat: no-repeat; + background-position: center; +} +#gameframe .game iframe { + width: 60.6vw; + height: 34.1vw; + border: 0; +} +#gameframe .options { + margin: auto; + width: 100%; + height: 2.3vw; + display: flex; + align-items: center; + padding-bottom: 1.5vh; +} +#gameframe .options .left { + display: flex; + align-items: center; +} +#gameframe .options .right { + display: flex; + margin-top: 2.2vw; + margin-right: 1.5vw; + align-items: center; + justify-content: flex-end; +} +.addisplay { + margin-left: 74vw; + width: 18vw; + height: 32vw; + background-color: #19191b; + border-radius: 0.5vw; + display: flex; + margin-top: -42.5vw; + margin-bottom: -5vw; + outline: 0.1vw solid #ffffff26; + box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.24); +} +.aboutsection { + width: 75vw; + height: fit-content; + margin-top: 13vw; + margin-left: 12.5vw; + background-color: #19191b; + border-radius: 0.5vw; + box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.24); + outline: 0.1vw solid #ffffff26; +} +.recommendedgames { + width: 45vw; + height: 13vw; + margin-top: 4vw; + margin-bottom: 3vw; + background-color: #19191b; + border-radius: 0.5vw; + box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.24); + outline: 0.1vw solid #ffffff26; +} +.footer { + width: 100%; + height: 4.2vw; + margin-top: 1vw; + background-color: #19191b; + box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.24); +} +.gameicon { + height: 2vw; + width: 2vw; + margin-left: 0.6vw; + margin-top: 1.9vw; + border-radius: 0.45vw; + box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.24); +} +.gameicon { + border-radius: 0.5vw; + background: #19191b; + width: 2.6vw; + height: 2.6vw; + margin-top: 0.2vw; + box-shadow: 0 4px 7px 0 #131313; + transition: 0.4s; +} +.gameicon:hover { + transform: scale(1.07) translate(0, -4px); + box-shadow: 0 4px 7px 0 var(--main2); +} +.margin { + margin-top: 0.3vw; + margin-left: 0.7vw; +} +.flex { + display: flex; +} +.titletext { + margin: 0; + font: 700 1.4vw/1.4vw Torus, sans-serif; + padding: 0 0.5vw 0.5vw 0 0; + color: #ffffff; + width: 45vw; +} +.bytext { + display: block; + color: #cfcfcf; + font-size: 1.1vw; + margin: 0.2vw 0 0; + letter-spacing: 0.3px; + font: 100 0.8vw/0.8vw Torus, sans-serif; +} +.gametext { + font-size: 1.25vw; + display: flex; + margin-top: 2vw; +} +.ad1 { + font: 400 0.5vw / 1 Arial, sans-serif; + text-transform: uppercase; + text-align: center; + opacity: 0.7; + letter-spacing: 0.05vw; + position: absolute; + right: 13.6vw; + margin-top: 32.2vw; + transform-origin: right center; +} +.recommendedtext { + font-size: 2.3vw; + text-align: center; + margin-top: 1vw; +} +#gameframe .options .left, +#gameframe .options .right { + width: 50%; + height: 100%; +} +#gameframe .options .right { + display: flex; + align-items: center; + justify-content: flex-end; +} +#gameframe .options .right .game-button { + float: right; + margin-right: 1vw; + height: 70%; +} +.fullscreenbtn { + border-radius: 0.3vw; + height: 1.6vw; + width: 1.6vw; + cursor: pointer; + transition: transform 0.3s ease-in-out; + box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.24); + margin-left: 1.2vw; +} +.fullscreenbtn:hover { + transform: scaleX(1.2) scaleY(1.2) rotate(-10deg); +} +.reloadbtn { + height: 1.6vw; + width: 1.6vw; + cursor: pointer; + transition: transform 0.55s ease-in-out; + box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.24); +} +.reloadbtn:hover { + transform: scaleX(1.2) scaleY(1.2) rotate(360deg); +} +.anticlosebtn { + width: 2vw; + cursor: pointer; + transition: transform 0.2s ease-in-out; + margin-right: 1vw; +} +.anticlosebtn:hover { + transform: scaleX(1.2) scaleY(1.2); +} +.buttons { + margin-top: 2.4vw; +} +.footertext { + font-size: 1vw; + text-align: center; +} +.socialsbutton { + cursor: pointer; + height: 1.9vw; + width: 1.9vw; + transition: transform 0.3s ease-in-out; + margin-left: 0.2vw; + margin-top: 0.5vw; +} +.socialsbutton:hover { + transform: scaleX(1.1) scaleY(1.1); +} +.recommendedgameicon { + height: 8vw; + width: 8vw; + margin-top: 0.55vw; + margin-bottom: 0.2vw; + border-radius: 0.7vw; + box-shadow: 0 6px 12px 0 #0000003d; + transition: 0.2s; + margin-left: 0.5vw; +} +.recommendedgameicon:hover { + outline: 0.25vw solid var(--main2); +} +.recommendedgametext { + font-size: 1.66vw; +} +.recommendedgamesicons { + margin-left: 1vw; +} +.abouttitle { + margin-left: 1vw; + margin-bottom: 0.2vw; + font-size: 2vw; +} +.aboutparagraph { + margin-left: 1vw; + font-size: 1.15vw; + width: 65vw; +} diff --git a/static/assets/json/load/games.json b/static/assets/json/load/games.json index 0e17cf61..cd45be3d 100644 --- a/static/assets/json/load/games.json +++ b/static/assets/json/load/games.json @@ -956,7 +956,7 @@ }, { "name": "Monster Tracks", - "url": "/misc/monster-track/index.html", + "url": "/misc/monster-track/", "image": "/misc/monster-track/thumb.jpg", "usesProxy": false }, diff --git a/static/misc/monster-track/frame.html b/static/misc/monster-track/frame.html new file mode 100644 index 00000000..8a809208 --- /dev/null +++ b/static/misc/monster-track/frame.html @@ -0,0 +1,68 @@ + + + + + + + + + + Google + + + + + + + + + + + + +
+
+
+ +
+
+
+
+ +
+
+

Recoil

+
+ By Martin Magni +
+
+
+
+ + + + +
+
+
+
+
+
Advertisement
+
+ + + \ No newline at end of file diff --git a/static/misc/terrifier3/index.html b/static/misc/terrifier3/index.html new file mode 100644 index 00000000..21850b6b --- /dev/null +++ b/static/misc/terrifier3/index.html @@ -0,0 +1,24 @@ + + + + + + + + + Tf3 + + + + + + + \ No newline at end of file