diff --git a/Website/index.html b/Website/index.html index ef7a60a..9dc5459 100644 --- a/Website/index.html +++ b/Website/index.html @@ -90,6 +90,9 @@ LunaSea
Configured: ✅❌
+ +
+
diff --git a/Website/interaction.js b/Website/interaction.js index 9d81bc4..673c7be 100644 --- a/Website/interaction.js +++ b/Website/interaction.js @@ -78,6 +78,19 @@ function Setup(){ ResetContent(); UpdateJobs(); + GetSettings().then((json) => { + console.log(json); + settingDownloadLocation.innerText = json.downloadLocation; + settingApiUri.placeholder = apiUri; + console.log(json.styleSheet); + if (json.styleSheet == 'default') { + settingMangaHoverCheckbox.checked = false; + document.getElementById('pagestyle').setAttribute('href', 'styles/style_default.css'); + } else { + settingMangaHoverCheckbox.checked = true; + document.getElementById('pagestyle').setAttribute('href', 'styles/style_mangahover.css'); + } + }); setInterval(() => { UpdateJobs(); }, 1000); @@ -278,6 +291,7 @@ function OpenSettings(){ //console.log(json); settingDownloadLocation.innerText = json.downloadLocation; settingApiUri.placeholder = apiUri; + console.log(json.styleSheet); if (json.styleSheet == 'default') { settingMangaHoverCheckbox.checked = false; document.getElementById('pagestyle').setAttribute('href', 'styles/style_default.css');