PyxiLabs commited on
Commit
fbf603f
·
verified ·
1 Parent(s): 47c5f4a

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +3 -3
templates/index.html CHANGED
@@ -192,7 +192,7 @@
192
  class="w-full px-4 md:px-5 py-3 md:py-4 rounded-xl input-dark focus:outline-none focus:ring-2 focus:ring-red-400 resize-none text-base md:text-lg"
193
  placeholder="Enter your text here (max 500 characters)..."
194
  ></textarea>
195
- <p id="char-count" class="text-sm md:text-base white-text mt-2 text-right">0/500 characters</p>
196
  </div>
197
 
198
  <!-- Generate Button -->
@@ -314,9 +314,9 @@
314
 
315
  textInput.addEventListener('input', () => {
316
  const length = textInput.value.length;
317
- charCount.textContent = `${length}/500 characters`;
318
 
319
- if (length > 450) {
320
  charCount.classList.add('text-red-400');
321
  charCount.classList.remove('white-text');
322
  } else {
 
192
  class="w-full px-4 md:px-5 py-3 md:py-4 rounded-xl input-dark focus:outline-none focus:ring-2 focus:ring-red-400 resize-none text-base md:text-lg"
193
  placeholder="Enter your text here (max 500 characters)..."
194
  ></textarea>
195
+ <p id="char-count" class="text-sm md:text-base white-text mt-2 text-right">0/5000 characters</p>
196
  </div>
197
 
198
  <!-- Generate Button -->
 
314
 
315
  textInput.addEventListener('input', () => {
316
  const length = textInput.value.length;
317
+ charCount.textContent = `${length}/5000 characters`;
318
 
319
+ if (length > 4900) {
320
  charCount.classList.add('text-red-400');
321
  charCount.classList.remove('white-text');
322
  } else {