change back to standard scrolling after reset
This commit is contained in:
@@ -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 selected display text = Professional two rows
|
||||||
|
|
||||||
if (selectedDisplayText.innerText === "Professional Two Rows") {
|
if (selectedDisplayText.innerText === "Professional Two Rows") {
|
||||||
|
Reference in New Issue
Block a user