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 Android -
    -
    - Scan download -
    + + Windows,download + download +
  • @@ -120,10 +120,10 @@
  • @@ -132,7 +132,7 @@ Windows Windows - + Windows,download 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
    - +
    1. Support for private deployment @@ -326,7 +326,7 @@

      Custom

      - +
    2. @@ -437,7 +437,7 @@
      - +