From 333ea4aa53b50ca5ae69226ab77ebdd6227adebf Mon Sep 17 00:00:00 2001 From: Malcolm Diller Date: Fri, 14 Oct 2022 16:27:01 -0700 Subject: [PATCH] added a bunch of changes including cleaning up styling and inputs and adding auto-saving settings. see PR for more info. --- ui/index.html | 182 +++++++++++++++++++++++++-------------------- ui/media/main.css | 153 +++++++++++++++++++++++++++++++++++++- ui/media/main.js | 183 +++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 434 insertions(+), 84 deletions(-) diff --git a/ui/index.html b/ui/index.html index 00a7bb48..0c2c7b97 100644 --- a/ui/index.html +++ b/ui/index.html @@ -8,6 +8,7 @@ + @@ -38,6 +39,12 @@
  • +
  • + + + + +

  • @@ -67,8 +74,11 @@
    - - +
    + + + +

    @@ -90,89 +100,93 @@

    Image Settings

      -
    • Image Settings
    • -
    • -
    • (images at once)
    • -
    • - -
    • -
    • - -
    • -
    • - - - - -
    • -
    • -
    • -

    • -
    • - +
    • + + Image Settings + + + + + + + + + +
      + +
      + +
      + + + + +

      + +

    • Render Settings
    • -
    • +
    • - + (${default_value})`; + saveSettingsConfigTable.insertAdjacentHTML("beforeend", newrow); + var checkbox = document.getElementById(checkbox_id) + checkbox.addEventListener("input", event => { + SETTINGS_SHOULD_SAVE_MAP[element.id] = checkbox.checked; + saveSettings(); + }); + }); +} + +saveSettingsConfigCloseBtn.addEventListener('click', () => { + saveSettingsConfigOverlay.style.display = 'none'; +}); +configureSettingsSaveBtn.addEventListener('click', () => { + saveSettingsConfigOverlay.style.display = 'block'; +}); +saveSettingsConfigOverlay.addEventListener('click', (event) => { + if (event.target.id == saveSettingsConfigOverlay.id) { + saveSettingsConfigOverlay.style.display = 'none'; + } +}); \ No newline at end of file