From 2a947878d81874850e30e36de4a568a1e9577d2b Mon Sep 17 00:00:00 2001 From: GDColon Date: Wed, 31 Mar 2021 21:23:03 -0400 Subject: [PATCH] april fools here or some fixes --- api/download.js | 6 +++--- assets/css/browser.css | 18 +++++++++--------- assets/css/iconkit.css | 10 +++++----- html/gauntlets.html | 2 +- html/home.html | 6 +++--- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/api/download.js b/api/download.js index 50cfb88..a72d595 100644 --- a/api/download.js +++ b/api/download.js @@ -16,9 +16,9 @@ module.exports = async (app, req, res, api, ID, analyze) => { else levelID = levelID.replace(/[^0-9]/g, "") // daily hardcode fo' today 😎 - if (levelID < 0 && req.server.name == "Geometry Dash") { - if (levelID == -1) levelID = "67984875" // marte - else if (levelID == -2) levelID = "59075347" // tartarus + if (!api && levelID < 0 && req.server.name == "Geometry Dash") { + if (levelID == -1) return res.redirect("67984875") // marte + else if (levelID == -2) return res.redirect("59075347") // tartarus } req.gdRequest('downloadGJLevel22', { levelID }, function (err, resp, body) { diff --git a/assets/css/browser.css b/assets/css/browser.css index 8bc44b7..c1e4a01 100644 --- a/assets/css/browser.css +++ b/assets/css/browser.css @@ -1,4 +1,4 @@ -@font-face {font-family: Pusab; src: url('../../assets/Pusab.ttf')} +@font-face {font-family: Pusab; src: url('../../assets/Pusab.ttf?')} body { margin: 0; @@ -253,7 +253,7 @@ input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:foc .gdcheckbox { vertical-align: middle; display: inline-block; - background-image: url(../../assets/check-off.png); + background-image: url(../../assets/check-off.png?); background-repeat: no-repeat; background-size: contain; padding-right: 20%; @@ -261,7 +261,7 @@ input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:foc } input[type=checkbox]:checked + label.gdcheckbox { - background-image: url(../../assets/check-on.png); + background-image: url(../../assets/check-on.png?); } ::placeholder { @@ -331,14 +331,14 @@ input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { border: 2.5vh solid transparent; border-radius: 3vh; background-color: black; - border-image: url('../../assets/brownbox.png') 10% round; + border-image: url('../../assets/brownbox.png?') 10% round; } .blueBox { border: 2.5vh solid transparent; border-radius: 3vh; background-color: black; - border-image: url('../../assets/bluebox.png') 10% round; + border-image: url('../../assets/bluebox.png?') 10% round; } .fancybox { @@ -347,7 +347,7 @@ input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { border: 3.5vh solid transparent; border-radius: 3vh; background-color: black; - border-image: url('../../assets/fancybox.png') 20% stretch; + border-image: url('../../assets/fancybox.png?') 20% stretch; border-image-slice: 35; } @@ -357,21 +357,21 @@ input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { .epicbox { border: 3.5vh solid transparent; - border-image: url('../../assets/epicbox.png') 20% stretch; + border-image: url('../../assets/epicbox.png?') 20% stretch; border-image-slice: 85 77; border-image-width: 9.5vh; } .unepicbox { border: 3.5vh solid transparent; - border-image: url('../../assets/unepicbox.png') 20% stretch; + border-image: url('../../assets/unepicbox.png?') 20% stretch; border-image-slice: 85 77; border-image-width: 9.5vh; } .leaderboardBox { border: 3.5vh solid transparent; - border-image: url('../../assets/leaderboardbox.png') 20% stretch; + border-image: url('../../assets/leaderboardbox.png?') 20% stretch; border-image-slice: 85 77; border-image-width: 9.5vh; } diff --git a/assets/css/iconkit.css b/assets/css/iconkit.css index 628e3d2..6a65c1a 100644 --- a/assets/css/iconkit.css +++ b/assets/css/iconkit.css @@ -1,5 +1,5 @@ @import url('https://fonts.googleapis.com/css?family=Roboto'); -@font-face {font-family: Pusab; src: url('../../assets/Pusab.ttf')} +@font-face {font-family: Pusab; src: url('../../assets/Pusab.ttf?')} .gdButton { cursor: pointer; @@ -291,7 +291,7 @@ input:focus, select:focus, textarea:focus, button:focus { } .iconSelected { - border-image: url('../../assets/select.png') 10 stretch !important; + border-image: url('../../assets/select.png?') 10 stretch !important; } .iconTabButton, .glowToggle, .copyForm { @@ -424,7 +424,7 @@ input:focus, select:focus, textarea:focus, button:focus { border: 17px solid transparent; border-radius: 25px; background-color: black; - border-image: url('../../assets/brownbox.png') 10% round; + border-image: url('../../assets/brownbox.png?') 10% round; } .xButton { @@ -461,7 +461,7 @@ input[type=checkbox] { .gdcheckbox { vertical-align: middle; display: inline-block; - background-image: url(../../assets/check-off.png); + background-image: url(../../assets/check-off.png?); background-repeat: no-repeat; background-size: contain; padding-right: 40px; @@ -471,7 +471,7 @@ input[type=checkbox] { } input[type=checkbox]:checked + label.gdcheckbox { - background-image: url(../../assets/check-on.png); + background-image: url(../../assets/check-on.png?); } .bounce { diff --git a/html/gauntlets.html b/html/gauntlets.html index 0ddb24f..ee50042 100644 --- a/html/gauntlets.html +++ b/html/gauntlets.html @@ -45,7 +45,7 @@ fetch('../api/gauntlets').then(res => res.json()).then(gauntlets => { $('#gauntletList').append(`
-
+

${name}
Gauntlet

`) }) }); diff --git a/html/home.html b/html/home.html index 596f045..920eef6 100644 --- a/html/home.html +++ b/html/home.html @@ -4,8 +4,8 @@ - - + + @@ -72,7 +72,7 @@               API               - GitHub + GitHub               Buy Geometry Dash!