change back to standard scrolling after reset
This commit is contained in:
parent
e5a081246a
commit
98ec522dd6
@ -1474,6 +1474,23 @@ displayFormatBtn.addEventListener("click", () => {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// after clicking reset user settings, change back to standard scrolling
|
||||
|
||||
let resetSettingsBtn = document.querySelector("#reset-btn")
|
||||
|
||||
resetSettingsBtn.addEventListener("click", () => {
|
||||
selectedDisplayText.innerText = "Standard Scrolling";
|
||||
localStorage.setItem("displayFormat", "Standard Scrolling");
|
||||
topRowText.style.display = "none";
|
||||
bottomRowText.style.display = "none";
|
||||
secondRow.style.display = "none";
|
||||
inputScrollSpeedRow.forEach((value) => {
|
||||
value.parentElement.parentElement.style.display = "none";
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// if selected display text = Professional two rows
|
||||
|
||||
if (selectedDisplayText.innerText === "Professional Two Rows") {
|
||||
|
Loading…
Reference in New Issue
Block a user