From 68e80bc066192fb836824b5f8f165f3de95b1892 Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 24 May 2023 20:57:17 +0200 Subject: [PATCH] Settings --- Website/index.html | 9 ++++++++- Website/interaction.js | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/Website/index.html b/Website/index.html index 44b8c62..f627171 100644 --- a/Website/index.html +++ b/Website/index.html @@ -79,7 +79,14 @@ - +

Download Location:

+ + + + + + ; +
diff --git a/Website/interaction.js b/Website/interaction.js index 775e679..6b15394 100644 --- a/Website/interaction.js +++ b/Website/interaction.js @@ -39,6 +39,12 @@ const pubviewcover = document.querySelector("#pubviewcover"); const publicationDelete = document.querySelector("publication-delete"); const publicationAdd = document.querySelector("publication-add"); const closetaskpopup = document.querySelector("#closePopupImg"); +const settingDownloadLocation = document.querySelector("#downloadLocation"); +const settingKomgaUrl = document.querySelector("#komgaURL"); +const settingKomgaUser = document.querySelector("#komgaUsername"); +const settingKomgaPass = document.querySelector("#komgaPassword"); +const settingKomgaTime = document.querySelector("#komgaUpdateTime"); + settingsCog.addEventListener("click", () => slide()); closetaskpopup.addEventListener("click", () => HideAddTaskPopup()); @@ -193,6 +199,16 @@ const fadeInTiming = { fill: "forwards" } +function GetSettingsClick(){ + +} + +function UpdateSettingsClick(){ + var auth = atob(`${settingKomgaUser.value}:${settingKomgaPass.value}`) + UpdateSettings(settingDownloadLocation.value, settingKomgaUrl.value, auth); + CreateTask("UpdateKomgaLibrary", settingKomgaTime.value, "","",""); +} + //Resets the tasks shown ResetContent(); //Get Tasks and show them