Skip to content

Commit

Permalink
tf3
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNotSus committed Oct 31, 2024
1 parent 4990dc5 commit ede94ad
Show file tree
Hide file tree
Showing 5 changed files with 351 additions and 10 deletions.
18 changes: 9 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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 });
Expand Down Expand Up @@ -177,7 +177,7 @@ app.post("/api/signUp", async (req, res) => {
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
},
}
);

if (!captchaVerifyResponse.data.success) {
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -349,7 +349,7 @@ async function fetchDataFromGithub(
res,
next,
baseUrl,
secondaryUrl = null,
secondaryUrl = null
) {
function isAFile(urlString) {
return urlString.trim().split("/").pop().length !== 0;
Expand Down
249 changes: 249 additions & 0 deletions static/assets/css/gameframe.css
Original file line number Diff line number Diff line change
@@ -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;
}
2 changes: 1 addition & 1 deletion static/assets/json/load/games.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down
Loading

0 comments on commit ede94ad

Please sign in to comment.