mistpe commited on
Commit
a02420a
·
verified ·
1 Parent(s): 9eb9679

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +2 -2
static/index.html CHANGED
@@ -103,7 +103,7 @@
103
  placeholder="请输入要翻译的文本"
104
  ></textarea>
105
  <div class="flex justify-between mt-2 text-sm text-gray-500">
106
- <span id="char-count">0/5000</span>
107
  <button id="clear-text" class="hover:text-gray-700">清空</button>
108
  </div>
109
  </div>
@@ -461,7 +461,7 @@ class TextTranslation {
461
 
462
  updateCharCount() {
463
  const count = this.sourceText.value.length;
464
- this.charCount.textContent = `${count}/5000`;
465
  this.translateBtn.disabled = count === 0;
466
  }
467
 
 
103
  placeholder="请输入要翻译的文本"
104
  ></textarea>
105
  <div class="flex justify-between mt-2 text-sm text-gray-500">
106
+ <span id="char-count">0/10000</span>
107
  <button id="clear-text" class="hover:text-gray-700">清空</button>
108
  </div>
109
  </div>
 
461
 
462
  updateCharCount() {
463
  const count = this.sourceText.value.length;
464
+ this.charCount.textContent = `${count}/10000`;
465
  this.translateBtn.disabled = count === 0;
466
  }
467