From 02a6acd4cfddaecd9075b706fdbdc0396d76d8c3 Mon Sep 17 00:00:00 2001 From: winter Date: Wed, 1 Jan 2025 17:41:22 +0000 Subject: stuff --- static/language-switch.js | 3 +++ static/style.css | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 static/language-switch.js (limited to 'static') diff --git a/static/language-switch.js b/static/language-switch.js new file mode 100644 index 0000000..a357ef0 --- /dev/null +++ b/static/language-switch.js @@ -0,0 +1,3 @@ +addEventListener("languagechange", (e) => { + location.reload(); +}); diff --git a/static/style.css b/static/style.css index 07960ab..15f2665 100644 --- a/static/style.css +++ b/static/style.css @@ -53,12 +53,15 @@ nav { padding: 0; > li { display: inline; - > a { + > .navlink { border-radius: 4px; background: #fff3; padding: 4px 8px; color: white; text-decoration: none; + &.disabled { + opacity: 0.6; + } } } } -- cgit v1.3