From 4bf00bf8a74a111eacaf8c0daec9259483de3e58 Mon Sep 17 00:00:00 2001 From: IliasHDZ Date: Mon, 23 Nov 2020 21:13:25 +0100 Subject: [PATCH] level search tab title showing search query lol --- html/search.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/html/search.html b/html/search.html index 7f3b8a2..f36963a 100644 --- a/html/search.html +++ b/html/search.html @@ -1,5 +1,5 @@ - Level Search + Level Search @@ -253,7 +253,14 @@ if (gauntlet) { $('#meta-desc').attr('content', `View the 5 levels in the ${(gauntlets[parseInt(gauntlet) - 1] || "Unknown") + " Gauntlet"}!`) } -if (!$('#header').text() && typeof userMode != "string") $('#header').text(path == "*" ? "Online Levels" : decodeURIComponent(path)) +if (!$('#header').text() && typeof userMode != "string") { + if (path != "*") { + $('#header').text(decodeURIComponent(path)) + $('#tabTitle').text(decodeURIComponent(path) + " - Level Search") + } else + $('#header').text("Online Levels") +} + $('.closeWindow').click(function() {$(".popup").attr('style', 'display: none;')}) -- 2.48.1