hide color-changer if javascript is disabled

main
Calvin Lee 2023-06-09 13:26:17 -07:00 committed by Henrik Böving
parent cc552ed570
commit 75d06a8153
2 changed files with 4 additions and 1 deletions

View File

@ -83,7 +83,7 @@ def navbar : BaseHtmlM Html := do
-/ -/
<h3>Library</h3> <h3>Library</h3>
{← moduleList} {← moduleList}
<div id="settings"> <div id="settings" hidden="hidden">
-- `input` is a void tag, but can be self-closed to make parsing easier. -- `input` is a void tag, but can be self-closed to make parsing easier.
<h3>Color scheme</h3> <h3>Color scheme</h3>
<form id="color-theme-switcher"> <form id="color-theme-switcher">

View File

@ -26,3 +26,6 @@ document.addEventListener("DOMContentLoaded", function() {
setTheme(getTheme()); setTheme(getTheme());
}) })
}); });
// un-hide the colorscheme picker
document.querySelector("#settings").removeAttribute('hidden');