diff --git a/README.md b/README.md index e28deeb..943aef9 100644 --- a/README.md +++ b/README.md @@ -52,15 +52,13 @@ If you 100% insist on adding a private server to your own magical little fork, y **endpoint:** The actual endpoint to ~~spam~~ send requests to (e.g. `http://boomlings.com/database/` - make sure it ends with a slash!) - ----- There's also a few optional values for fine-tuning. I'll add more over time [string] **timestampSuffix:** A string to append at the end of timestamps. Vanilla GD uses " ago" [string] **demonList:** The URL of the server's Demon List API, if it has one (e.g. `http://pointercrate.com/` - make sure it ends with a slash!) -[bool] **downloadsDisabled:** (Greys out all forms of downloading on the frontend (daily, weekly, analysis, etc). I love you too RobTop <3 +[bool] **downloadsDisabled:** Greys out all forms of downloading on the frontend (daily, weekly, analysis, etc). I love you too RobTop <3 [bool] **onePointNine:** Makes a bunch of fancy changes to better fit 1.9 servers. (removes orbs/diamonds, hides some pointless buttons, etc) @@ -203,10 +201,6 @@ achievementTypes.json - An object containing different categories of achievement -colors.json - List of icon colors in RGB format - - - credits.json - Credits! (shown on the homepage) diff --git a/assets/css/boomlings.css b/assets/css/boomlings.css index ec369fd..814fdd6 100644 --- a/assets/css/boomlings.css +++ b/assets/css/boomlings.css @@ -35,7 +35,9 @@ body { .rankNumber { font-size: 5vh; text-align: center; - text-shadow: -0.2vh -0.2vh 0vh #000, 0.2vh -0.2vh 0vh #000, -0.2vh 0.2vh 0vh #000, 0.2vh 0.2vh 0vh #000; + -webkit-text-stroke-width: 0.2vh; + -webkit-text-stroke-color: black; + text-shadow: 0.3vh 0.3vh 0vh rgba(0, 0, 0, 0.3); } .username { @@ -47,12 +49,16 @@ body { .level { font-size: 3.8vh; - text-shadow: -0.18vh -0.18vh 0vh #000, 0.18vh -0.18vh 0vh #000, -0.18vh 0.18vh 0vh #000, 0.18vh 0.18vh 0vh #000; + -webkit-text-stroke-width: 0.15vh; + -webkit-text-stroke-color: black; + text-shadow: 0.2vh 0.2vh 0vh rgba(0, 0, 0, 0.3); } .score { font-size: 2.5vh; - text-shadow: -0.15vh -0.15vh 0vh #000, 0.15vh -0.15vh 0vh #000, -0.15vh 0.15vh 0vh #000, 0.15vh 0.15vh 0vh #000; + -webkit-text-stroke-width: 0.1vh; + -webkit-text-stroke-color: black; + text-shadow: 0.15vh 0.15vh 0vh rgba(0, 0, 0, 0.3); } .powerup { @@ -92,8 +98,6 @@ h1 { font-size: 8vh; font-family: Kaine; color: #ffc800; - letter-spacing: .02em; - text-shadow: -0.25vh -0.25vh 0vh #000, 0.25vh -0.25vh 0vh #000, -0.25vh 0.25vh 0vh #000, 0.25vh 0.25vh 0vh #000; } h2 { @@ -102,9 +106,11 @@ h2 { font-size: 7.5vh; font-family: Pusab, Arial; color: rgb(255, 200, 0); - letter-spacing: 0.02em; text-align: center; - text-shadow: -0.275vh -0.275vh 0vh #000, 0.275vh -0.275vh 0vh #000, -0.275vh 0.275vh 0vh #000, 0.275vh 0.275vh 0vh #000, 0.5vh 0.5vh 0vh rgba(0,0,0,0.4); + letter-spacing: -0.01em; + -webkit-text-stroke-width: 0.265vh; + -webkit-text-stroke-color: black; + text-shadow: 0.35vh 0.35vh 0.1vh rgba(0, 0, 0, 0.3); } .gdButton { diff --git a/assets/css/browser.css b/assets/css/browser.css index b83c42d..8a0ebf1 100644 --- a/assets/css/browser.css +++ b/assets/css/browser.css @@ -171,6 +171,7 @@ h1, h2, h3 { margin: 0% 0%; letter-spacing: -0.01em; -webkit-text-size-adjust: 100%; + -webkit-text-stroke-color: black; } h1 { @@ -180,7 +181,6 @@ h1 { overflow: hidden; white-space: nowrap; -webkit-text-stroke-width: 0.25vh; - -webkit-text-stroke-color: black; text-shadow: 0.375vh 0.375vh 0vh rgba(0, 0, 0, 0.3); } @@ -188,7 +188,6 @@ h2 { color: rgb(255, 200, 0); font-size: 8vh; -webkit-text-stroke-width: 0.265vh; - -webkit-text-stroke-color: black; text-shadow: 0.35vh 0.35vh 0.1vh rgba(0, 0, 0, 0.3); } diff --git a/assets/css/iconkit.css b/assets/css/iconkit.css index 43df492..873bbbd 100644 --- a/assets/css/iconkit.css +++ b/assets/css/iconkit.css @@ -28,10 +28,12 @@ h1 { font-size: 60px; font-family: Pusab; color: white; - letter-spacing: 0.02em; + letter-spacing: -0.01em; overflow: hidden; white-space: nowrap; - text-shadow: -2.2px -2.2px 0px #000, 2.2px -2.2px 0px #000, -2.2px 2.2px 0px #000, 2.2px 2.2px 0px #000, 5px 5px 0px rgba(0,0,0,0.4); + -webkit-text-stroke-width: 2.2px; + -webkit-text-stroke-color: black; + text-shadow: 3px 3px 0.5px rgba(0, 0, 0, 0.3); } h2 { @@ -41,8 +43,10 @@ h2 { font-family: Pusab; width: fit-content; color: white; - letter-spacing: 0.02em; - text-shadow: -1.5px -1.5px 0px #000, 1.5px -1.5px 0px #000, -1.5px 1.5px 0px #000, 1.5px 1.5px 0px #000; + letter-spacing: -0.01em; + -webkit-text-stroke-width: 1.6px; + -webkit-text-stroke-color: black; + text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3); } .hidden { diff --git a/html/boomlings.html b/html/boomlings.html index 21dae76..8a91081 100644 --- a/html/boomlings.html +++ b/html/boomlings.html @@ -1,7 +1,7 @@ Boomlings Leaderboard - + diff --git a/html/iconkit.html b/html/iconkit.html index d81c887..e3bea18 100644 --- a/html/iconkit.html +++ b/html/iconkit.html @@ -1,7 +1,7 @@ Online Icon Kit - + diff --git a/icons/colors.json b/icons/colors.json index e19c8e8..a768fc1 100644 --- a/icons/colors.json +++ b/icons/colors.json @@ -1,46 +1,44 @@ { - - "0" : {"r": 125, "g": 255, "b": 0}, - "1" : {"r": 0, "g": 255, "b": 0}, - "2" : {"r": 0, "g": 255, "b": 125}, - "3" : {"r": 0, "g": 255, "b": 255}, - "4" : {"r": 0, "g": 125, "b": 255}, - "5" : {"r": 0, "g": 0, "b": 255}, - "6" : {"r": 125, "g": 0, "b": 255}, - "7" : {"r": 255, "g": 0, "b": 255}, - "8" : {"r": 255, "g": 0, "b": 125}, - "9" : {"r": 255, "g": 0, "b": 0}, - "10" : {"r": 255, "g": 125, "b": 0}, - "11" : {"r": 255, "g": 255, "b": 0}, - "12" : {"r": 255, "g": 255, "b": 255}, - "13" : {"r": 185, "g": 0, "b": 255}, - "14" : {"r": 255, "g": 185, "b": 0}, - "15" : {"r": 0, "g": 0, "b": 0}, - "16" : {"r": 0, "g": 200, "b": 255}, - "17" : {"r": 175, "g": 175, "b": 175}, - "18" : {"r": 90, "g": 90, "b": 90}, - "19" : {"r": 255, "g": 125, "b": 125}, - "20" : {"r": 0, "g": 175, "b": 75}, - "21" : {"r": 0, "g": 125, "b": 125}, - "22" : {"r": 0, "g": 75, "b": 175}, - "23" : {"r": 75, "g": 0, "b": 175}, - "24" : {"r": 125, "g": 0, "b": 125}, - "25" : {"r": 175, "g": 0, "b": 75}, - "26" : {"r": 175, "g": 75, "b": 0}, - "27" : {"r": 125, "g": 125, "b": 0}, - "28" : {"r": 75, "g": 175, "b": 0}, - "29" : {"r": 255, "g": 75, "b": 0}, - "30" : {"r": 150, "g": 50, "b": 0}, - "31" : {"r": 150, "g": 100, "b": 0}, - "32" : {"r": 100, "g": 150, "b": 0}, - "33" : {"r": 0, "g": 150, "b": 100}, - "34" : {"r": 0, "g": 100, "b": 150}, - "35" : {"r": 100, "g": 0, "b": 150}, - "36" : {"r": 150, "g": 0, "b": 100}, - "37" : {"r": 150, "g": 0, "b": 0}, - "38" : {"r": 0, "g": 150, "b": 0}, - "39" : {"r": 0, "g": 0, "b": 150}, - "40" : {"r": 125, "g": 255, "b": 175}, - "41" : {"r": 125, "g": 125, "b": 255} - + "0" : {"r": 125, "g": 255, "b": 0}, + "1" : {"r": 0, "g": 255, "b": 0}, + "2" : {"r": 0, "g": 255, "b": 125}, + "3" : {"r": 0, "g": 255, "b": 255}, + "4" : {"r": 0, "g": 125, "b": 255}, + "5" : {"r": 0, "g": 0, "b": 255}, + "6" : {"r": 125, "g": 0, "b": 255}, + "7" : {"r": 255, "g": 0, "b": 255}, + "8" : {"r": 255, "g": 0, "b": 125}, + "9" : {"r": 255, "g": 0, "b": 0}, + "10" : {"r": 255, "g": 125, "b": 0}, + "11" : {"r": 255, "g": 255, "b": 0}, + "12" : {"r": 255, "g": 255, "b": 255}, + "13" : {"r": 185, "g": 0, "b": 255}, + "14" : {"r": 255, "g": 185, "b": 0}, + "15" : {"r": 0, "g": 0, "b": 0}, + "16" : {"r": 0, "g": 200, "b": 255}, + "17" : {"r": 175, "g": 175, "b": 175}, + "18" : {"r": 90, "g": 90, "b": 90}, + "19" : {"r": 255, "g": 125, "b": 125}, + "20" : {"r": 0, "g": 175, "b": 75}, + "21" : {"r": 0, "g": 125, "b": 125}, + "22" : {"r": 0, "g": 75, "b": 175}, + "23" : {"r": 75, "g": 0, "b": 175}, + "24" : {"r": 125, "g": 0, "b": 125}, + "25" : {"r": 175, "g": 0, "b": 75}, + "26" : {"r": 175, "g": 75, "b": 0}, + "27" : {"r": 125, "g": 125, "b": 0}, + "28" : {"r": 75, "g": 175, "b": 0}, + "29" : {"r": 255, "g": 75, "b": 0}, + "30" : {"r": 150, "g": 50, "b": 0}, + "31" : {"r": 150, "g": 100, "b": 0}, + "32" : {"r": 100, "g": 150, "b": 0}, + "33" : {"r": 0, "g": 150, "b": 100}, + "34" : {"r": 0, "g": 100, "b": 150}, + "35" : {"r": 100, "g": 0, "b": 150}, + "36" : {"r": 150, "g": 0, "b": 100}, + "37" : {"r": 150, "g": 0, "b": 0}, + "38" : {"r": 0, "g": 150, "b": 0}, + "39" : {"r": 0, "g": 0, "b": 150}, + "40" : {"r": 125, "g": 255, "b": 175}, + "41" : {"r": 125, "g": 125, "b": 255} } \ No newline at end of file diff --git a/index.js b/index.js index c1de239..7798712 100644 --- a/index.js +++ b/index.js @@ -52,6 +52,7 @@ app.servers.forEach(x => { app.accountCache[x.id || "gd"] = {} app.lastSuccess[x.id || "gd"] = Date.now() }) +app.mainEndpoint = app.servers.find(x => !x.id).endpoint // boomlings.com unless changed in fork app.set('json spaces', 2) app.use(compression()); @@ -72,7 +73,7 @@ app.use(async function(req, res, next) { req.onePointNine = req.server.onePointNine req.timestampSuffix = req.server.timestampSuffix || "" req.id = req.server.id || "gd" - req.isGDPS = req.server.endpoint != "http://boomlings.com/database/" + req.isGDPS = req.server.endpoint != app.mainEndpoint if (req.isGDPS) res.set("gdps", (req.onePointNine ? "1.9/" : "") + req.id) if (req.query.online > 0) req.offline = false diff --git a/misc/colors.json b/misc/colors.json deleted file mode 100644 index 8f21682..0000000 --- a/misc/colors.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - - "0" : {"r": 125, "g": 255, "b": 0}, - "1" : {"r": 0, "g": 255, "b": 0}, - "2" : {"r": 0, "g": 255, "b": 125}, - "3" : {"r": 0, "g": 255, "b": 255}, - "4" : {"r": 0, "g": 125, "b": 255}, - "5" : {"r": 0, "g": 0, "b": 255}, - "6" : {"r": 125, "g": 0, "b": 255}, - "7" : {"r": 255, "g": 0, "b": 255}, - "8" : {"r": 255, "g": 0, "b": 125}, - "9" : {"r": 255, "g": 0, "b": 0}, - "10" : {"r": 255, "g": 125, "b": 0}, - "11" : {"r": 255, "g": 255, "b": 0}, - "12" : {"r": 255, "g": 255, "b": 255}, - "13" : {"r": 185, "g": 0, "b": 255}, - "14" : {"r": 255, "g": 185, "b": 0}, - "15" : {"r": 0, "g": 0, "b": 0}, - "16" : {"r": 0, "g": 200, "b": 255}, - "17" : {"r": 175, "g": 175, "b": 175}, - "18" : {"r": 90, "g": 90, "b": 90}, - "19" : {"r": 255, "g": 125, "b": 125}, - "20" : {"r": 0, "g": 175, "b": 75}, - "21" : {"r": 0, "g": 125, "b": 125}, - "22" : {"r": 0, "g": 75, "b": 175}, - "23" : {"r": 75, "g": 0, "b": 175}, - "24" : {"r": 125, "g": 0, "b": 125}, - "25" : {"r": 175, "g": 0, "b": 75}, - "26" : {"r": 175, "g": 75, "b": 0}, - "27" : {"r": 125, "g": 125, "b": 0}, - "28" : {"r": 75, "g": 175, "b": 0}, - "29" : {"r": 255, "g": 75, "b": 0}, - "30" : {"r": 150, "g": 50, "b": 0}, - "31" : {"r": 150, "g": 100, "b": 0}, - "32" : {"r": 100, "g": 150, "b": 0}, - "33" : {"r": 0, "g": 150, "b": 100}, - "34" : {"r": 0, "g": 100, "b": 150}, - "35" : {"r": 100, "g": 0, "b": 150}, - "36" : {"r": 150, "g": 0, "b": 100}, - "37" : {"r": 150, "g": 0, "b": 0}, - "38" : {"r": 0, "g": 150, "b": 0}, - "39" : {"r": 0, "g": 0, "b": 150}, - "40" : {"r": 125, "g": 255, "b": 175}, - "41" : {"r": 125, "g": 125, "b": 255} - - -} \ No newline at end of file