From 883a26e41b81730b7bda1ef5e9efecebc96a294a Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 20 Jul 2023 00:00:51 +0800 Subject: [PATCH] messed up some naming of variables --- static/app.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/app.js b/static/app.js index dbef308..d9427da 100755 --- a/static/app.js +++ b/static/app.js @@ -453,7 +453,7 @@ const addEventOnFeaturesList = () => { let inputMsg = document.getElementById("inputText14"); let inputColor = document.getElementById("inputScrollSpeed16"); let inputSize = document.getElementById("inputScrollSpeed17"); - let inputBg = document.getElementById("inputScrollSpeed19"); + let inputBg = document.getElementById("inputScrollSpeed19BG"); let displayCheck = document.getElementById("flexCheckChecked29"); if (value.messageName == availableFeature.innerText) { @@ -902,7 +902,7 @@ allFeaturesTextAddBtn.map((value, index) => { let colorInput = document.getElementById("inputScrollSpeed16").value; let sizeInput = document.getElementById("inputScrollSpeed17").value; let backgroundInput = - document.getElementById("inputScrollSpeed19").value; + document.getElementById("inputScrollSpeed19BG").value; let displayCheck = document.getElementById("flexCheckChecked29").checked; let messagesWrapper = document.getElementById("messages-features"); @@ -2848,7 +2848,7 @@ function getCustomMsg(value) { const the_thing = document.getElementById("inputText13"); const the_msg = document.getElementById("inputText14"); const t_color = document.getElementById("inputScrollSpeed16"); - const b_color = document.getElementById("inputScrollSpeed19"); + const b_color = document.getElementById("inputScrollSpeed19BG"); const t_size = document.getElementById("inputScrollSpeed17"); the_thing.value = messaged; @@ -2879,7 +2879,7 @@ function updateSelectedMsg(){ if ((msg_name !== '') && (msg_text !== '')) { const text_color = document.getElementById("inputScrollSpeed16").value; - const background_color = document.getElementById("inputScrollSpeed19").value; + const background_color = document.getElementById("inputScrollSpeed19BG").value; const text_size = document.getElementById("inputScrollSpeed17").value; document.getElementById('demo4').style.display = "none"; document.getElementById('demo5').style.display = "none"; @@ -3268,7 +3268,7 @@ for (const pageID of pageIDs) { // Add event listeners to select menus const excludedIds = ['base-select', 'quote-select', 'commodities-items', 'indices-items', 'inputTransition73', 'inputTransition83', 'inputTransition93', 'inputTransition103', 'inputTransition2222', 'jokes-categories', 'golf-ranking-number', - 'inputScrollSpeed16', 'inputScrollSpeed17', 'inputScrollSpeed19']; + 'inputScrollSpeed16', 'inputScrollSpeed17', 'inputScrollSpeed19BG']; const selectMenus = parentDiv.querySelectorAll('select'); selectMenus.forEach(selectMenu => {