diff --git a/index.html b/index.html index 6119427..d0f298d 100644 --- a/index.html +++ b/index.html @@ -205,8 +205,6 @@ margin: 0.4rem 0.8rem; } - - #overlay { opacity: 0; pointer-events: none; @@ -2797,10 +2795,12 @@ document.getElementById('transactions-container').scrollTop = 0; } - let showCharacterCount = document.getElementById('show_character_count') - document.getElementById('flotextdata').addEventListener('input', function () { - if (1040 - this.value.length) { - showCharacterCount.textContent = `${1040 - this.value.length}/1040` + let showCharacterCount = document.getElementById('show_character_count') + document.getElementById('flotextdata').addEventListener('input', function(e){ + if(this.value.length > 1040) + e.preventDefault() + if(1040 - this.value.length){ + showCharacterCount.textContent = `${1040 - this.value.length}/1040` } else showCharacterCount.textContent = `You can only add FLO data upto 1040 characters.` diff --git a/testnet.html b/testnet.html index 778056f..d60a046 100644 --- a/testnet.html +++ b/testnet.html @@ -125,6 +125,18 @@ clear: both; } + textarea { + margin-bottom: 2rem; + } + + #show_character_count { + position: absolute; + bottom: 0; + right: 0; + font-size: 0.8rem; + margin: 0.4rem 0.8rem; + } + @media screen and (max-width: 800px) { .col-50 { width: 100%; @@ -601,6 +613,7 @@ FLO Data +
1040/1040