Update app.js

This commit is contained in:
Justin 2022-06-10 17:45:13 +08:00 committed by GitHub
parent c93a5ba1cb
commit 1ee7f00586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1423,7 +1423,7 @@ let bottomRowText = document.querySelector("#bottom-row-text");
displayFormatBtn.addEventListener("click", () => {
selectedDisplayText.innerText = displayFormatDropDown.value;
localStorage.setItem("displayFormat", displayFormatDropDown.value);
if (selectedDisplayText.innerText === "Professional two rows") {
if (selectedDisplayText.innerText === "Professional Two Rows") {
topRowText.style.display = "inline";
bottomRowText.style.display = "inline";
secondRow.style.display = "flex";
@ -1442,7 +1442,7 @@ displayFormatBtn.addEventListener("click", () => {
// if selected display text = Professional two rows
if (selectedDisplayText.innerText === "Professional two rows") {
if (selectedDisplayText.innerText === "Professional Two Rows") {
topRowText.style.display = "inline";
}
@ -1533,7 +1533,7 @@ window.onload = () => {
// getInputAnimation && (inputAnimation.value = getInputAnimation);
if (selectedDisplayText.innerText === "Professional two rows") {
if (selectedDisplayText.innerText === "Professional Two Rows") {
topRowText.style.display = "inline";
bottomRowText.style.display = "inline";
secondRow.style.display = "flex";