From: Michael Wallner Date: Thu, 21 Jan 2021 15:00:17 +0000 (+0100) Subject: dark mode X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;ds=sidebyside;p=pharext%2Freplicator.pharext.org dark mode --- diff --git a/public/html.php b/public/html.php index dfddc50..759165e 100644 --- a/public/html.php +++ b/public/html.php @@ -8,7 +8,7 @@ $fnt = "//fonts.googleapis.com/css?family=Droid+Sans"; require_once "index.php"; ob_start($res); -$res->addHeader("Link", "<" . dirname((new http\Env\Url)->path) . $css . ">; rel=preload; as=style"); +$res->addHeader("Link", "<" . dirname((new http\Env\Url)->path) . "/" . $css . ">; rel=preload; as=style"); ?> @@ -19,6 +19,7 @@ $res->addHeader("Link", "<" . dirname((new http\Env\Url)->path) . $css . ">; rel + @@ -193,6 +224,7 @@ $res->addHeader("Link", "<" . dirname((new http\Env\Url)->path) . $css . ">; rel less versions «

+

Available Packages

@@ -286,9 +318,12 @@ gpg --verify \ } }); } - + document.body.onload = function() { var form = document.querySelector("form[name=search]"); + + if (!form) return; + var input = document.createElement("input"); var reset = document.createElement("input"); var prefix_label = document.createElement("label"); @@ -299,7 +334,7 @@ gpg --verify \ form.onreset = function() { searchPackages("", false); }; - + input.id = "s"; input.autocomplete = "off"; input.name = "s"; @@ -349,6 +384,8 @@ gpg --verify \ regex_label.appendChild(regex); form.appendChild(regex_label); + form.after(document.createElement("HR")); + input.focus(); };