hide color-changer if javascript is disabled
parent
cc552ed570
commit
75d06a8153
|
@ -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">
|
||||||
|
|
|
@ -26,3 +26,6 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||||
setTheme(getTheme());
|
setTheme(getTheme());
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// un-hide the colorscheme picker
|
||||||
|
document.querySelector("#settings").removeAttribute('hidden');
|
||||||
|
|
Loading…
Reference in New Issue