diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html index 5abfdd3..2a20867 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html @@ -224,19 +224,6 @@
Playback -
- - -
- If checked, a skip button will be displayed at the start of an episode's introduction. - This setting only applies to the web interface. -
-
-
-
-
+
+
+ + +
+ If checked, a skip button will be displayed at the start of an episode's introduction. + This setting only applies to the web interface. +
+
+
+
-
+
@@ -282,7 +282,7 @@
-
+
@@ -326,7 +326,7 @@
-
+
@@ -350,13 +350,13 @@ Advanced
- Support Bundle + Support Bundle (ffmpeg)
- Fingerprint Editor + Manage Fingerprints

Select episodes to manage

@@ -528,9 +528,25 @@ var windowHashInterval = 0; + var autoSkip = document.querySelector("input#AutoSkip"); + var skipFirstEpisode = document.querySelector("div#divSkipFirstEpisode"); + var autoSkipNotificationText = document.querySelector("div#divAutoSkipNotificationText"); + + async function autoSkipChanged() { + if (autoSkip.checked) { + skipFirstEpisode.style.display = 'block'; + autoSkipNotificationText.style.display = 'block'; + } else { + skipFirstEpisode.style.display = 'none'; + autoSkipNotificationText.style.display = 'none'; + } + } + + autoSkip.addEventListener("change", autoSkipChanged); + var persistSkip = document.querySelector("input#PersistSkipButton"); - var showAdjustment = document.querySelector("input#ShowPromptAdjustment"); - var hideAdjustment = document.querySelector("input#HidePromptAdjustment"); + var showAdjustment = document.querySelector("div#divShowPromptAdjustment"); + var hideAdjustment = document.querySelector("div#divHidePromptAdjustment"); // prevent setting unavailable options async function persistSkipChanged() { @@ -823,6 +839,7 @@ document.querySelector("#" + field).checked = config[field]; } + autoSkipChanged(); persistSkipChanged(); Dashboard.hideLoadingMsg();