Skip to content

Commit beef772

Browse files
000
1 parent 27acac2 commit beef772

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
55

6-
> 這是一個用於快速查詢學校成績的 Web 應用程式 (Flask + Python)。
76

87
> [!IMPORTANT]
98
> 本專案為非官方開發之第三方服務,我們與壢中及欣河智慧校園平台無任何直接關聯。

public/app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,7 @@ function setupSyncFeature() {
798798
turnstileWidgetId = turnstile.render(container, {
799799
sitekey: siteKey,
800800
theme: 'dark',
801+
size: 'invisible',
801802
});
802803
}
803804

@@ -856,7 +857,7 @@ function setupSyncFeature() {
856857
if (typeof turnstile !== 'undefined' && turnstileWidgetId !== null) {
857858
turnstileResponse = turnstile.getResponse(turnstileWidgetId) || '';
858859
if (!turnstileResponse) {
859-
showStatus(loginStatus, '請完成人機驗證', 'error');
860+
showStatus(loginStatus, '請稍候,系統安全驗證處理中...', 'error');
860861
return;
861862
}
862863
}
@@ -1124,6 +1125,7 @@ function setupShareFeature() {
11241125
const widgetId = turnstile.render(shareTurnstileContainer, {
11251126
sitekey: siteKey,
11261127
theme: 'dark',
1128+
size: 'invisible',
11271129
});
11281130
shareTurnstileContainer.dataset.widgetId = widgetId;
11291131
}
@@ -1146,7 +1148,7 @@ function setupShareFeature() {
11461148
if (typeof turnstile !== 'undefined' && shareTurnstileContainer && shareTurnstileContainer.dataset.widgetId) {
11471149
turnstileResponse = turnstile.getResponse(shareTurnstileContainer.dataset.widgetId) || '';
11481150
if (!turnstileResponse) {
1149-
shareStatus.textContent = '請先完成人機驗證';
1151+
shareStatus.textContent = '請稍候,系統安全驗證處理中...';
11501152
shareStatus.className = 'status-msg error';
11511153
return;
11521154
}

0 commit comments

Comments
 (0)