diff --git a/assets/css/browser.css b/assets/css/browser.css index 907eb55..b7293c7 100644 --- a/assets/css/browser.css +++ b/assets/css/browser.css @@ -427,6 +427,10 @@ input::-webkit-inner-spin-button { border-bottom: 2px solid lime } +.unregistered:hover { + color: rgb(0, 230, 0); +} + .popup { position: fixed; display: none; @@ -638,14 +642,14 @@ input::-webkit-inner-spin-button { height: 5.5%; } -.githubChad { +.specialThanks { display: inline-block; - width: 30%; - height: 20%; - margin: 1% 0%; + width: 27%; + height: 21%; + margin: 2% 0%; } -.githubChad h2 { +.specialThanks h2 { margin-bottom: 3%; font-size: 4vh; } @@ -768,7 +772,7 @@ input::-webkit-inner-spin-button { .portalSetting { text-align: left; display: inline-block; - width: 19%; + width: 23%; } .triggerDiv { diff --git a/html/comments.html b/html/comments.html index 28460db..5c9da27 100644 --- a/html/comments.html +++ b/html/comments.html @@ -107,11 +107,13 @@ fetch(target).then(res => res.json()).then(lvl => { } else { - if (lvl.accountID == "0" || !lvl.accountID) $('#levelAuthor').addClass("green").removeClass("gdButton") + if (lvl.accountID == undefined) $('#levelAuthor').remove() + else if (lvl.authorID) $('#levelAuthor').addClass("green").addClass("unregistered") $('#levelName').text(lvl.name || ("Nonexistent level " + lvlID)) $('#levelAuthor').text("By " + (lvl.author || "-")) $('#levelID').text("ID: " + lvlID) if (lvl.accountID && lvl.author != "-") $('#authorLink').attr('href', '../profile/' + lvl.author) + else if (lvl.authorID) $('#authorLink').attr('href', '../search/' + lvl.authorID + "?user") if (lvl.id) $('#levelLink').attr('href', '../' + lvl.id) else $('#levelID').removeClass("gdButton") $('#levelVersion').text("Version: " + (lvl.version || 0)) @@ -153,7 +155,8 @@ fetch(`../api${!history ? window.location.pathname : "/comments/" + lvl.playerID
${!history ? x.username : lvl.username}
+ +${!history ? x.username : lvl.username}
${x.modColor || lvl.moderator == "2" ? `` : ""}${x.percent ? x.percent + "%" : ""}
@@ -176,7 +179,8 @@ fetch(`../api${!history ? window.location.pathname : "/comments/" + lvl.playerID${!history ? x.username : lvl.username}
+ +${!history ? x.username : lvl.username}
${x.modColor || lvl.moderator == "2" ? `` : ""}${x.percent ? x.percent + "%" : ""}
diff --git a/html/home.html b/html/home.html index febc89c..cad2e8d 100644 --- a/html/home.html +++ b/html/home.html @@ -100,15 +100,14 @@ fetch(`./api/credits`).then(res => res.json()).then(res => { }) $('#credits').append(`GitHub Contributors
+
Special Thanks!
View on GitHub!
${x[0]}
${x.name}
-${hasAuthor ? `By ${x.author}` : `By ${x.author}`}
${x.copiedID == '0' ? "" : ''}${x.large ? '' : ''}
+${hasAuthor ? `By ${x.author}` : `By ${x.author}`}
${x.copiedID == '0' ? "" : ''}${x.large ? '' : ''}
${x.songName}
${x.length} diff --git a/misc/credits.json b/misc/credits.json index 9a2c909..693d623 100644 --- a/misc/credits.json +++ b/misc/credits.json @@ -25,14 +25,6 @@ "github": ["https://github.com/Altenhh", "github"] }, - { - "header": "Level Analyzing Help", - "name": "AlFas", - "youtube": ["https://youtube.com/user/Alex100077", "youtube"], - "twitter": ["https://twitter.com/AlFas6237", "twitter"], - "github": ["https://github.com/AlFasGD", "github"] - }, - { "header": "Accurate Leaderboard", "name": "SMJSGaming", @@ -75,7 +67,9 @@ } ], - "contributors": [ - ["Qufyy", "qufy"] + "specialThanks": [ + ["Qufyy", "qufy"], + ["AlFas", "AlFas"], + ["ViPriN", "ViPriN"] ] } \ No newline at end of file