Compare commits

..

3 Commits

Author SHA1 Message Date
TwistedUmbrellaX
7519f149f5 Update configPage.html
It isn't actually this easy, right?

Revert "It isn't actually this easy, right?"

This reverts commit d3cdb654689fd47e4ef65c7db05ee19be9368268.

Revert "Update configPage.html"

This reverts commit ae5d1828a4fa0dfd01f049a178bd839e9dbb5e25.

dfgd
2024-11-30 18:36:22 -05:00
TwistedUmbrellaX
cb02c92081 One more time like Daft Punk 2024-11-29 15:47:39 -05:00
TwistedUmbrellaX
e710efe961 Zero and reset remaining intro time 2024-11-29 15:42:35 -05:00
2 changed files with 5 additions and 2 deletions

View File

@ -227,7 +227,7 @@ public class PluginConfiguration : BasePluginConfiguration
/// <summary> /// <summary>
/// Gets or sets the amount of intro to play (in seconds). /// Gets or sets the amount of intro to play (in seconds).
/// </summary> /// </summary>
public int RemainingSecondsOfIntro { get; set; } = 2; public int RemainingSecondsOfIntro { get; set; }
/// <summary> /// <summary>
/// Gets or sets the amount of intro at start to play (in seconds). /// Gets or sets the amount of intro at start to play (in seconds).

View File

@ -935,6 +935,8 @@
persistSkip.addEventListener("change", persistSkipChanged); persistSkip.addEventListener("change", persistSkipChanged);
var remainingSecondsOfIntro = document.getElementById("RemainingSecondsOfIntro")
async function pluginSkipSettingChanged() { async function pluginSkipSettingChanged() {
if (pluginSkip.checked) { if (pluginSkip.checked) {
serverSkipSettings.style.display = "unset"; serverSkipSettings.style.display = "unset";
@ -944,6 +946,7 @@
autoSkip.checked = false; autoSkip.checked = false;
skipButtonVisible.checked = false; skipButtonVisible.checked = false;
persistSkip.checked = false; persistSkip.checked = false;
remainingSecondsOfIntro.value = 0;
} }
} }
@ -1609,7 +1612,7 @@
fetchWithAuth("Episode/" + lhsId + "/Timestamps", "POST", JSON.stringify(newLhs)); fetchWithAuth("Episode/" + lhsId + "/Timestamps", "POST", JSON.stringify(newLhs));
fetchWithAuth("Episode/" + rhsId + "/Timestamps", "POST", JSON.stringify(newRhs)); fetchWithAuth("Episode/" + rhsId + "/Timestamps", "POST", JSON.stringify(newRhs));
Dashboard.alert("New introduction timestamps saved"); Dashboard.alert("New segment timestamps saved");
}); });
document.addEventListener("keydown", keyDown); document.addEventListener("keydown", keyDown);
windowHashInterval = setInterval(checkWindowHash, 2500); windowHashInterval = setInterval(checkWindowHash, 2500);