diff --git a/LICENSE b/LICENSE index 7f9d56d..b2dc63e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 Colon +Copyright (c) 2020 Colon Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/api/download.js b/api/download.js index c6990a3..add1db4 100644 --- a/api/download.js +++ b/api/download.js @@ -66,6 +66,7 @@ module.exports = async (app, req, res, api, ID, analyze) => { level.songID = "Level " + [parseInt(levelInfo[12]) + 1] } + level.extraString = levelInfo[36] level.data = levelInfo[4] if (analyze) return app.run.analyze(app, req, res, level) diff --git a/api/accurateLeaderboard.js b/api/leaderboards/accurate.js similarity index 100% rename from api/accurateLeaderboard.js rename to api/leaderboards/accurate.js diff --git a/api/leaderboardLevel.js b/api/leaderboards/leaderboardLevel.js similarity index 100% rename from api/leaderboardLevel.js rename to api/leaderboards/leaderboardLevel.js diff --git a/api/leaderboard.js b/api/leaderboards/scores.js similarity index 100% rename from api/leaderboard.js rename to api/leaderboards/scores.js diff --git a/assets/css/browser.css b/assets/css/browser.css index 9f86c9f..2863ce6 100644 --- a/assets/css/browser.css +++ b/assets/css/browser.css @@ -143,7 +143,7 @@ h1 { font-weight: normal; margin: 0% 0%; font-size: 6vh; - font-family: Pusab; + font-family: Pusab, Arial; color: white; letter-spacing: 0.02em; overflow: hidden; @@ -157,7 +157,7 @@ h2 { font-weight: normal; margin: 0 0; font-size: 8vh; - font-family: Pusab; + font-family: Pusab, Arial; color: rgb(255, 200, 0); letter-spacing: 0.02em; 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); @@ -167,7 +167,7 @@ h3, input[type=text], input[type=password], input[type=number] { font-weight: normal; margin: 0 0; font-size: 3.5vh; - font-family: Pusab; + font-family: Pusab, Arial; color: white; letter-spacing: 0.02em; 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; diff --git a/assets/demonleaderboard.png b/assets/demonleaderboard.png new file mode 100644 index 0000000..1d71937 Binary files /dev/null and b/assets/demonleaderboard.png differ diff --git a/assets/site.png b/assets/site.png new file mode 100644 index 0000000..92f8704 Binary files /dev/null and b/assets/site.png differ diff --git a/assets/trophy-gold.png b/assets/trophy-gold.png new file mode 100644 index 0000000..518f283 Binary files /dev/null and b/assets/trophy-gold.png differ diff --git a/html/api.html b/html/api.html index 97406ba..12e7442 100644 --- a/html/api.html +++ b/html/api.html @@ -154,7 +154,8 @@

updated: Time since the level was last updated

password: The password to copy the level. 0 means the level isn't copyable and 1 means it's free to copy

ldm: If the level contains a checkbox for Low Detail Mode

-

data: The actual data of the level. Don't ask how to use it, because I have no idea

+

extraString: An unknown string which most likely contains info on how the level was verified

+

data: The actual data of the level, compressed with GZIP


diff --git a/html/demon.html b/html/demon.html new file mode 100644 index 0000000..937dbcd --- /dev/null +++ b/html/demon.html @@ -0,0 +1,115 @@ + + Demon Leaderboard + + + + + + + + + + + +
+ + + +
+ +
+ +
+ +
+ + + +
+ +
+

+
+ +
+ +
+ +
+ +
+ +
+ + +
+ +
+ + + + + + + + \ No newline at end of file diff --git a/html/iconkit.html b/html/iconkit.html index 0d06c69..dff7447 100644 --- a/html/iconkit.html +++ b/html/iconkit.html @@ -181,8 +181,6 @@ fetch('./api/icons').then(res => { $(this).children().not('#iconprogressbar').hide()}) if ($(forms).html() == "") appendIcon(filterIcon(form), form) - - if (form == "swing" && !beenThereDoneThat) {beenThereDoneThat = true; $('#swings').append("

Since the texture was ripped from GD Meltdown, there's no UHD version available.

")} $(forms).show() }) diff --git a/html/leaderboard.html b/html/leaderboard.html index 23828fb..c5d247b 100644 --- a/html/leaderboard.html +++ b/html/leaderboard.html @@ -133,9 +133,7 @@ function leaderboard(val) { $('#searchBox').append('
') $('#loading').hide(); - $('.lazyLoad').Lazy({ - appendScroll: '#searchBox' - }); + $('.lazyLoad').Lazy({ appendScroll: '#searchBox' }); }) } diff --git a/html/level.html b/html/level.html index a1b7e81..ab09c5a 100644 --- a/html/level.html +++ b/html/level.html @@ -18,7 +18,7 @@

Level Info

[[NAME]]
- ID: [[ID]][[ORIGINALINFO]][[LOWDETAIL]][[PASS]][[UPLOAD]][[UPDATE]] + ID: [[ID]][[ORIGINALINFO]][[LOWDETAIL]][[PASS]][[UPLOAD]][[UPDATE]][[HACKED]]
Version: [[VERSION]]
GD Version: [[GAMEVERSION]] [[OBJECTINFO]][[REQUESTED]] @@ -132,7 +132,7 @@

-
+

@@ -190,6 +190,7 @@ if (!'[[UPLOADED]]'.startsWith('[')) { $('#levelInfo').html($('#levelInfo').html() .replace('[[PASS]]', `
Password: ${'[[PASSWORD]]' == '0' ? "No copy" : '[[PASSWORD]]' == 1 ? "Free copy" : '[[PASSWORD]]'}`) .replace('[[LOWDETAIL]]', `
Low Detail: ${[[LDM]] ? "Yes" : "No"}`) + .replace('[[HACKED]]', `
Extra String: ${'[[EXTRASTRING]]'.length} chars`) .replace('[[UPLOAD]]', '[[UPLOADED]]' == "0" ? "" : `
Uploaded: [[UPLOADED]]`) .replace('[[UPDATE]]', '[[UPDATED]]' == "0" ? "" : `
Updated: [[UPDATED]]`))} @@ -197,6 +198,7 @@ else { $('#levelInfo').html($('#levelInfo').html() .replace('[[PASS]]', "") .replace('[[LOWDETAIL]]', "") + .replace('[[HACKED]]', "") .replace('[[UPLOAD]]', "") .replace('[[UPDATE]]', "") + `
Download additional info` @@ -208,7 +210,10 @@ if ([[ORBS]] == 0) $('.orbs').hide() if ([[STARS]] == 0) $('.stars').hide() if ([[DIAMONDS]] == 0 || !'[[DEMONLIST]]'.startsWith("[")) $('.diamonds').hide() -if (!'[[DEMONLIST]]'.startsWith("[")) $('.demonList').show() +if (!'[[DEMONLIST]]'.startsWith("[")) { + $('.demonList').show() + $('#leaderboardbtn').attr('src', '../assets/demonleaderboard.png').parent().attr('href', '../demon/[[DEMONLIST]]') +} else $('.demonList').remove() if ("[[SONGID]]".startsWith("Level")) { @@ -224,14 +229,16 @@ if ([[COINS]] > 1) $("#coins").append(``) if ("[[ACCOUNTID]]" == "0") { - $("#authorName").addClass("green").addClass("unregistered") - $("#authorLink").attr('href', '/search/[[AUTHORID]]?user') - } + $("#authorName").addClass("green").addClass("unregistered") + $("#authorLink").attr('href', '/search/[[AUTHORID]]?user') +} -if (window.location.pathname == "/weekly") $('body').addClass('darkBG') +if (window.location.pathname == "/weekly") { + $('body').addClass('darkBG') + $('.cornerPiece').addClass('grayscale') +} $(window).on('load', function() { - if ($('#songname')[0].scrollWidth > $('#songBox')[0].scrollWidth) { let overflow = ($('#songname')[0].scrollWidth - $('#songBox')[0].scrollWidth) * 0.007 if (overflow > 3) overflow = 3 diff --git a/html/levelboard.html b/html/levelboard.html index d66a86a..b123cd9 100644 --- a/html/levelboard.html +++ b/html/levelboard.html @@ -13,14 +13,6 @@
- -
@@ -66,10 +58,9 @@