Update templates/index.html
Browse files- 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/
|
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}/
|
318 |
|
319 |
-
if (length >
|
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 {
|