Update index.html
Browse files- index.html +15 -14
index.html
CHANGED
|
@@ -65,26 +65,27 @@
|
|
| 65 |
}
|
| 66 |
|
| 67 |
.app-header {
|
| 68 |
-
padding: 0.5rem 0
|
| 69 |
text-align: center;
|
| 70 |
-
margin-bottom:
|
| 71 |
animation: fadeInDown 0.8s 0.1s ease-out backwards;
|
| 72 |
}
|
| 73 |
.app-header h1 {
|
| 74 |
-
font-size: 2.
|
| 75 |
font-weight: 900;
|
| 76 |
-
margin:0 0 0.
|
| 77 |
background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
|
| 78 |
-webkit-background-clip: text;
|
| 79 |
-webkit-text-fill-color: transparent;
|
| 80 |
-
letter-spacing: -
|
| 81 |
}
|
| 82 |
.app-header p {
|
| 83 |
-
font-size:
|
| 84 |
color: var(--text-secondary);
|
| 85 |
margin-top:0;
|
| 86 |
-
opacity: 0.
|
| 87 |
font-weight: 400;
|
|
|
|
| 88 |
}
|
| 89 |
|
| 90 |
.main-content {
|
|
@@ -551,7 +552,7 @@
|
|
| 551 |
<label for="text-input">📝 متن مورد نظر شما</label>
|
| 552 |
<textarea id="text-input" rows="4" placeholder="متن خود را اینجا وارد کنید..."></textarea>
|
| 553 |
<div class="char-counter-wrapper">
|
| 554 |
-
<span id="char-count">0</span> / <span id="char-max">
|
| 555 |
</div>
|
| 556 |
</div>
|
| 557 |
<div class="form-group">
|
|
@@ -690,14 +691,14 @@
|
|
| 690 |
// Character Counter
|
| 691 |
const charCountSpan = document.getElementById('char-count');
|
| 692 |
const charMaxSpan = document.getElementById('char-max');
|
| 693 |
-
const MAX_CHARS =
|
| 694 |
-
charMaxSpan.textContent = MAX_CHARS;
|
| 695 |
|
| 696 |
textInput.addEventListener('input', () => {
|
| 697 |
const currentLength = textInput.value.length;
|
| 698 |
-
charCountSpan.textContent = currentLength;
|
| 699 |
if (currentLength > MAX_CHARS) {
|
| 700 |
-
charCountSpan.style.color = 'var(--accent-secondary-hover)';
|
| 701 |
} else {
|
| 702 |
charCountSpan.style.color = 'var(--accent-primary)';
|
| 703 |
}
|
|
@@ -842,7 +843,7 @@
|
|
| 842 |
return;
|
| 843 |
}
|
| 844 |
if (text.length > MAX_CHARS) {
|
| 845 |
-
showResultState(false, `خطا: طول متن بیش از ${MAX_CHARS} نویسه است.`);
|
| 846 |
return;
|
| 847 |
}
|
| 848 |
|
|
@@ -873,7 +874,7 @@
|
|
| 873 |
|
| 874 |
let finalFilePath = null;
|
| 875 |
const startTime = Date.now();
|
| 876 |
-
const timeoutDuration = 90000;
|
| 877 |
|
| 878 |
while (Date.now() - startTime < timeoutDuration) {
|
| 879 |
const dataResponse = await fetch(`${GET_DATA_URL_BASE}?session_hash=${sessionHash}`);
|
|
|
|
| 65 |
}
|
| 66 |
|
| 67 |
.app-header {
|
| 68 |
+
padding: 0.5rem 0 2.5rem 0; /* Reduced bottom padding */
|
| 69 |
text-align: center;
|
| 70 |
+
margin-bottom: 1.5rem; /* Reduced bottom margin */
|
| 71 |
animation: fadeInDown 0.8s 0.1s ease-out backwards;
|
| 72 |
}
|
| 73 |
.app-header h1 {
|
| 74 |
+
font-size: 2.1em; /* باز هم کوچکتر شد */
|
| 75 |
font-weight: 900;
|
| 76 |
+
margin:0 0 0.6rem 0; /* Reduced bottom margin */
|
| 77 |
background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
|
| 78 |
-webkit-background-clip: text;
|
| 79 |
-webkit-text-fill-color: transparent;
|
| 80 |
+
letter-spacing: -0.5px; /* Adjusted spacing */
|
| 81 |
}
|
| 82 |
.app-header p {
|
| 83 |
+
font-size: 1em; /* باز هم کوچکتر شد */
|
| 84 |
color: var(--text-secondary);
|
| 85 |
margin-top:0;
|
| 86 |
+
opacity: 0.85; /* Slightly more subtle */
|
| 87 |
font-weight: 400;
|
| 88 |
+
line-height: 1.6; /* Adjusted line height */
|
| 89 |
}
|
| 90 |
|
| 91 |
.main-content {
|
|
|
|
| 552 |
<label for="text-input">📝 متن مورد نظر شما</label>
|
| 553 |
<textarea id="text-input" rows="4" placeholder="متن خود را اینجا وارد کنید..."></textarea>
|
| 554 |
<div class="char-counter-wrapper">
|
| 555 |
+
<span id="char-count">0</span> / <span id="char-max">50000</span> نویسه
|
| 556 |
</div>
|
| 557 |
</div>
|
| 558 |
<div class="form-group">
|
|
|
|
| 691 |
// Character Counter
|
| 692 |
const charCountSpan = document.getElementById('char-count');
|
| 693 |
const charMaxSpan = document.getElementById('char-max');
|
| 694 |
+
const MAX_CHARS = 50000; // تغییر به ۵۰,۰۰۰
|
| 695 |
+
charMaxSpan.textContent = MAX_CHARS.toLocaleString('fa-IR'); // نمایش عدد با جداکننده فارسی
|
| 696 |
|
| 697 |
textInput.addEventListener('input', () => {
|
| 698 |
const currentLength = textInput.value.length;
|
| 699 |
+
charCountSpan.textContent = currentLength.toLocaleString('fa-IR');
|
| 700 |
if (currentLength > MAX_CHARS) {
|
| 701 |
+
charCountSpan.style.color = 'var(--accent-secondary-hover)'; // یا رنگ هشدار
|
| 702 |
} else {
|
| 703 |
charCountSpan.style.color = 'var(--accent-primary)';
|
| 704 |
}
|
|
|
|
| 843 |
return;
|
| 844 |
}
|
| 845 |
if (text.length > MAX_CHARS) {
|
| 846 |
+
showResultState(false, `خطا: طول متن بیش از ${MAX_CHARS.toLocaleString('fa-IR')} نویسه است.`);
|
| 847 |
return;
|
| 848 |
}
|
| 849 |
|
|
|
|
| 874 |
|
| 875 |
let finalFilePath = null;
|
| 876 |
const startTime = Date.now();
|
| 877 |
+
const timeoutDuration = 90000; // 90 ثانیه
|
| 878 |
|
| 879 |
while (Date.now() - startTime < timeoutDuration) {
|
| 880 |
const dataResponse = await fetch(`${GET_DATA_URL_BASE}?session_hash=${sessionHash}`);
|