From b026c4d7a7ad4e81206ea26fc4cb30f6ec89646b Mon Sep 17 00:00:00 2001 From: Thayol Date: Tue, 29 Dec 2020 00:47:40 +0100 Subject: [PATCH] Removed comment bloat --- libraries/osu_cacher.php | 2 +- main.php | 36 +----------------------------------- templates/style.css | 1 + 3 files changed, 3 insertions(+), 36 deletions(-) diff --git a/libraries/osu_cacher.php b/libraries/osu_cacher.php index 365adda..b926bf1 100644 --- a/libraries/osu_cacher.php +++ b/libraries/osu_cacher.php @@ -26,7 +26,7 @@ class osu_cacher public function get_cached_path(string $path) : string { - return str_replace($this->root, $this->cache_root, $path); + return str_replace($this->root, $this->cache_root, $path) . ".json"; } public function is_cached(string $path) : bool diff --git a/main.php b/main.php index 5a9dcf8..023d301 100644 --- a/main.php +++ b/main.php @@ -201,38 +201,4 @@ else if ($display == "start") } } -echo $te->get_html(); - - -// foreach ($lib->get_library() as $mapset) -// { - // echo '
'; - // echo '

Beatmapset: '; - // if (!empty($mapset["id"])) echo $mapset["id"]; - // else echo '???'; - // echo '

'; - // foreach ($mapset["difficulties"] as $beatmap) - // { - // $beatmap["format-2"] = mb_substr($beatmap["format"] ?? "v1", 1); - // if (is_numeric(mb_substr($beatmap["format"] ?? "v1", 1))) - // { - // echo '
'; - // echo '

Title: ' . $beatmap["title"]; - // if (!empty($beatmap["id"])) echo '
ID: ' . $beatmap["id"]; - // echo '
Artist: ' . $beatmap["artist"]; - // echo '
Mapper: ' . $beatmap["mapper"]; - // echo '
Format: ' . $beatmap["format"]; - // echo '

'; - // echo ''; - // echo '
'; - // } - // else - // { - // echo '
'; - // echo '

Extra: ' . $beatmap["format"]; - // echo '

'; - // echo '
'; - // } - // } - // echo '
'; -// } \ No newline at end of file +echo $te->get_html(); \ No newline at end of file diff --git a/templates/style.css b/templates/style.css index ccac12b..e78f196 100644 --- a/templates/style.css +++ b/templates/style.css @@ -113,6 +113,7 @@ details.mapset summary::-webkit-details-marker { } .warn h2 { margin: 0; + margin-bottom: 20px; text-align: center; } .warn {