From af2c43a8aea68d5b6b3eab2c212edc64462799b3 Mon Sep 17 00:00:00 2001 From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> Date: Sun, 17 Jul 2022 02:13:02 -0500 Subject: [PATCH] Reorganize config page --- .../Configuration/configPage.html | 91 +++++++++++-------- 1 file changed, 53 insertions(+), 38 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html index 9a9587c..1055234 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html @@ -218,8 +218,45 @@
- Fingerprint Visualizer + Advanced +

Select episodes to manage

+ + +
+ + + +
+
+ + +
+
+ +

Fingerprint Visualizer

Interactively compare the audio fingerprints of two episodes.
The blue and red bar to the right of the fingerprint diff turns blue @@ -257,14 +294,6 @@
- - -
- - - -
- Shift amount:
@@ -272,30 +301,6 @@

- -
-
- -

-
-
-
@@ -682,13 +687,23 @@ e.preventDefault(); }); btnSeasonEraseTimestamps.addEventListener("click", () => { - const show = selectShow.value; - const season = selectSeason.value; + Dashboard.confirm( + "Are you sure you want to erase all timestamps for this season?", + "Confirm timestamp erasure", + (result) => { + if (!result) { + return; + } - const url = "Intros/Show/" + encodeURIComponent(show) + "/" + encodeURIComponent(season); - getJson(url, "DELETE"); + const show = selectShow.value; + const season = selectSeason.value; - Dashboard.alert("Erased timestamps for " + season + " of " + show); + const url = "Intros/Show/" + encodeURIComponent(show) + "/" + encodeURIComponent(season); + getJson(url, "DELETE"); + + Dashboard.alert("Erased timestamps for " + season + " of " + show); + } + ); }); btnUpdateTimestamps.addEventListener("click", () => { const lhsId = selectEpisode1.options[selectEpisode1.selectedIndex].value;