From 18bb4f16f5f79fed2d907623f0d48c85cf80c734 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=AB=98=E5=B3=B0=E5=90=9B=E4=B8=BB?= <994923161@qq.com>
Date: Tue, 22 Oct 2024 20:25:16 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E2=80=9D=E6=A0=A1=E5=87=86?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD=E2=80=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
gncs.html | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/gncs.html b/gncs.html
index 2b6cef6..07b843b 100644
--- a/gncs.html
+++ b/gncs.html
@@ -110,6 +110,11 @@
屏幕锁定密码解锁
+
+
@@ -118,6 +123,7 @@
const cameraBtn = document.getElementById('camera-btn');
const faceBtn = document.getElementById('face-btn');
const unlockBtn = document.getElementById('unlock-btn');
+ const calibrateBtn = document.getElementById('calibrateBtn');
// 存储当前打开的测试按钮
let activeButton = null;
@@ -146,6 +152,12 @@
cameraBtn.addEventListener('click', () => toggleButton(cameraBtn, '摄像头'));
faceBtn.addEventListener('click', () => toggleButton(faceBtn, '人脸距离过近'));
unlockBtn.addEventListener('click', () => toggleButton(unlockBtn, '屏幕锁定密码解锁'));
+ unlockBtn.addEventListener('click', () => {
+ toggleButton(calibrateBtn, '测量大小校准');
+ alert('请保持脸在距离摄像头30cm处,进行校准');
+ });
+
+