diff --git a/index.html b/index.html
index 4a09bd5..9681add 100644
--- a/index.html
+++ b/index.html
@@ -568,6 +568,10 @@
display: none;
}
+ #fix_invalid_button{
+ margin-bottom: 1rem !important;
+ }
+
#menu {
display: none;
}
@@ -2015,10 +2019,7 @@
1040/1040
-
-
-
-
+
@@ -2827,8 +2828,7 @@
let showCharacterCount = document.getElementById('show_character_count')
let isFloDataChanged = false
- const floDataOptions = document.getElementById('flo_data_options')
- const checkFloDataButton = document.getElementById('check_flo_data_button')
+ const fixFloDataButton = document.getElementById('fix_invalid_button')
const sendFloDataButton = document.getElementById('sendBtn')
const sentFloData = document.getElementById('flotextdata')
const floDataStaus = document.getElementById('flo_data_status')
@@ -2841,17 +2841,18 @@
isFloDataChanged = true
if(this.value.trim() !== ''){
sendFloDataButton.classList.add('hide-completely')
- floDataOptions.classList.remove('hide-completely')
+ fixFloDataButton.classList.remove('hide-completely')
}
else{
sendFloDataButton.classList.remove('hide-completely')
- floDataOptions.classList.add('hide-completely')
+ fixFloDataButton.classList.add('hide-completely')
}
if(1040 - this.value.length){
showCharacterCount.textContent = `${1040 - this.value.length}/1040`
}
else
showCharacterCount.textContent = `You can only add FLO data upto 1040 characters.`
+ checkFloData()
})
function checkFloData(){
isFloDataChanged = false
@@ -2866,7 +2867,7 @@
}
if(isValid){
sendFloDataButton.classList.remove('hide-completely')
- floDataOptions.classList.add('hide-completely')
+ fixFloDataButton.classList.add('hide-completely')
floDataStaus.textContent = ''
}
else{