diff --git a/Website/index.html b/Website/index.html
index 9cf6850..a6f073d 100644
--- a/Website/index.html
+++ b/Website/index.html
@@ -98,7 +98,7 @@
-
+
diff --git a/Website/interaction.js b/Website/interaction.js
index c4b6fe8..dba3db2 100644
--- a/Website/interaction.js
+++ b/Website/interaction.js
@@ -101,6 +101,18 @@ function Setup(){
}
Setup();
+function updateCSS(){
+ if (document.getElementById("mangaHoverCheckbox").checked == true){
+ ChangeStyleSheet('hover')
+ document.getElementById('pagestyle').setAttribute('href', 'styles/style_mangahover.css');
+ //console.log('Changing theme to mangahover')
+ } else {
+ ChangeStyleSheet('default');
+ document.getElementById('pagestyle').setAttribute('href', 'styles/style_default.css');
+ //console.log('Changing theme to default')
+ }
+}
+
function ResetContent(){
//Delete everything
tasksContent.replaceChildren();
@@ -412,15 +424,6 @@ function UpdateSettings(){
setCookie("apiUri", apiUri);
Setup();
}
-
- // If the checkbox is checked, set the style to style_mangahover.css and
- if (document.getElementById("mangaHoverCheckbox").checked == true){
- ChangeStyleSheet('hover')
- //console.log('Changing theme to mangahover')
- } else {
- ChangeStyleSheet('default');
- //console.log('Changing theme to default')
- }
if(settingKomgaUrl.value != "" &&
settingKomgaUser.value != "" &&