Fixed formatting

This commit is contained in:
gpkvt 2023-06-04 01:26:41 +02:00
parent 0158668d91
commit fcf66d85ba
4 changed files with 7 additions and 5 deletions

View File

@ -201,7 +201,8 @@ input[type="radio"] {
}
.toggle_label {
min-width: 100%;;
min-width: 100%;
;
}
}

View File

@ -5,11 +5,11 @@ function initToggle() {
function switchTheme(e) {
if (e.target.checked) {
document.documentElement.setAttribute('data-theme', 'dark');
localStorage.setItem('theme', 'dark'); //add this
localStorage.setItem('theme', 'dark');
}
else {
document.documentElement.setAttribute('data-theme', 'light');
localStorage.setItem('theme', 'light'); //add this
localStorage.setItem('theme', 'light');
}
}

View File

@ -71,4 +71,5 @@
initToggle();
</script>
</body>
</html>