From db2e4edb2714110edfb30b6dc85c49f388d33a89 Mon Sep 17 00:00:00 2001
From: spylecym <1262965753@qq.com>
Date: Thu, 13 Jul 2023 21:43:05 +0800
Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E8=8B=B1=E6=96=87?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/site/en/about.html | 22 ++++++++++++----------
public/site/en/download.html | 14 +++++++-------
public/site/en/price.html | 6 +++---
3 files changed, 22 insertions(+), 20 deletions(-)
diff --git a/public/site/en/about.html b/public/site/en/about.html
index 4851e2177..a7205ee39 100644
--- a/public/site/en/about.html
+++ b/public/site/en/about.html
@@ -280,10 +280,10 @@
Email
-
+
Message
-
- Messages cannot exceed 255 characters!
+
+ 0/255
@@ -428,15 +428,14 @@
});
}
/* 限制表单textarea字符数 */
- function limitCharacters(event, maxCharacters) {
- const textarea = event.target;
- const text = textarea.value;
+ function limitCharacters( maxCharacters) {
+ const textarea = document.getElementById("desc")
+ let text = textarea.value;
if (text.length > maxCharacters) {
- textarea.value = text.slice(0, maxCharacters); // 截断文本
- document.getElementById('characterCount').style.display = "block";
- }else{
- document.getElementById('characterCount').style.display = "none";
+ textarea.value = text.slice(0, maxCharacters); // 截断文本
+ text = textarea.value;
}
+ document.getElementById('characterCount').textContent = `${text.length}/${maxCharacters}`;
}
/* 显示/隐藏提示弹框 */
function showBox(text){
@@ -481,10 +480,13 @@
.then(response => {
form.reset()
document.getElementById("submitLoading").style.display = "none"
+ limitCharacters(255)
showBox('Submitted successfully!')
})
.catch(error => {
form.reset()
+ document.getElementById("submitLoading").style.display = "none"
+ limitCharacters(255)
showBox(error.message)
});
}
diff --git a/public/site/en/download.html b/public/site/en/download.html
index 388df6f70..ba7d9788e 100644
--- a/public/site/en/download.html
+++ b/public/site/en/download.html
@@ -108,10 +108,10 @@
Android
-
+
+
+ download
+
@@ -120,10 +120,10 @@
@@ -132,7 +132,7 @@
Windows
-
+
download
diff --git a/public/site/en/price.html b/public/site/en/price.html
index c31215e0e..970796eb1 100644
--- a/public/site/en/price.html
+++ b/public/site/en/price.html
@@ -182,7 +182,7 @@
Custom
No limit to the number of people
-
+
-
@@ -326,7 +326,7 @@
Custom
-
+
@@ -437,7 +437,7 @@
-
+