From 3bff5f28515f8a482c7a18c0da62ef9e0aa1747c Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 24 Apr 2023 23:24:20 +0200 Subject: [PATCH 1/2] adjust the button color on focus Signed-off-by: Simon L --- php/public/style.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/php/public/style.css b/php/public/style.css index e43485c9..8f58440e 100644 --- a/php/public/style.css +++ b/php/public/style.css @@ -23,6 +23,11 @@ a { outline: none; } +.button:focus { + color:black; + border: 2px solid black; +} + #logout { margin-top: 7px; } From 9728a84e75562a8511ab8d75c066c0f5157be280 Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 24 Apr 2023 23:32:30 +0200 Subject: [PATCH 2/2] fix typo in forms.sh Signed-off-by: Simon L --- php/public/forms.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/public/forms.js b/php/public/forms.js index ac84c7d0..52555929 100644 --- a/php/public/forms.js +++ b/php/public/forms.js @@ -31,7 +31,7 @@ } } - function disableSpinnerSpinner() { + function enableSpinner() { document.getElementById('overlay').classList.add('loading'); } @@ -51,7 +51,7 @@ xhr.addEventListener('error', () => disableSpinner()); xhr.open(form.method, form.getAttribute("action")); xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); - disableSpinnerSpinner(); + enableSpinner(); xhr.send(new URLSearchParams(new FormData(form))); event.preventDefault(); }