diff --git a/api/search.js b/api/search.js index 7455fe8..08039cb 100644 --- a/api/search.js +++ b/api/search.js @@ -67,6 +67,8 @@ module.exports = async (app, req, res) => { case 'starred': filters.type = 11; break; case 'halloffame': filters.type = 16; break; case 'hof': filters.type = 16; break; + case 'gdw': filters.type = 17; break; + case 'gdworld': filters.type = 17; break; } } diff --git a/assets/gd_circle.png b/assets/gd_circle.png new file mode 100644 index 0000000..cdbd3bc Binary files /dev/null and b/assets/gd_circle.png differ diff --git a/assets/gdw_circle.png b/assets/gdw_circle.png new file mode 100644 index 0000000..36dc6fd Binary files /dev/null and b/assets/gdw_circle.png differ diff --git a/assets/gdw_transparent.png b/assets/gdw_transparent.png new file mode 100644 index 0000000..8f42c76 Binary files /dev/null and b/assets/gdw_transparent.png differ diff --git a/html/api.html b/html/api.html index 2d82487..79a6213 100644 --- a/html/api.html +++ b/html/api.html @@ -288,7 +288,7 @@

Search Types

All types ignore your search query and will return levels with any name.

Filters allowed: mostdownloaded, mostliked, trending, recent, awarded

-

Filters ignored: featured, magic, halloffame

+

Filters ignored: featured, magic, halloffame, gdworld


Difficulty IDs

diff --git a/html/search.html b/html/search.html index 050eba5..bf88570 100644 --- a/html/search.html +++ b/html/search.html @@ -99,6 +99,14 @@ + + + +
@@ -139,6 +147,7 @@ let page = Math.max(1, url.searchParams.get('page')) - 1 let pages = 0 let results = 0 let legalPages = true +let gdwMode = false let superSearch = ['*', '*?type=mostliked', '*?type=mostdownloaded', '*?type=recent'].includes(window.location.href.split('/')[4].toLowerCase()) let pageCache = {} @@ -273,10 +282,11 @@ else { if (type == 2 || type == 'mostliked') $('#header').text("Most Liked") if (type == 3 || type == 'trending') $('#header').text("Trending Levels") if (type == 4 || type == 'recent') $('#header').text("Recent Levels") - if (type == 6 || type == 'featured') $('#header').text("Featured") + if (type == 6 || type == 'featured') { $('#header').text("Featured"); $('#gdWorld').show() } if (type == 7 || type == 'magic') $('#header').text("Magic Levels") if (type == 11 || type == 'awarded' || type == 'starred') $('#header').text("Awarded Levels") if (type == 16 || type == 'halloffame' || type == 'hof') $('#header').text("Hall of Fame") + if (type == 17 || type == 'gdw' || type == 'gdworld') { $('#header').text("Featured (GD World)"); $('#normalGD').show() } if (path != "*" && (type == 10 || list != null)) $('#header').text("Custom List") if (type == 'followed') $('#header').text("Followed Creators") document.title = $('#header').text() || "Level Search"