From 75cd12b1f6462fe138dc299a84bd83ce3d989c68 Mon Sep 17 00:00:00 2001 From: Ember Date: Sun, 30 Jun 2024 08:37:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E8=B5=84=E6=BA=90=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/线性代数/index.html | 54 ++++++++++++++++------------------- 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a/resources/线性代数/index.html b/resources/线性代数/index.html index c36dc2b..9f12398 100644 --- a/resources/线性代数/index.html +++ b/resources/线性代数/index.html @@ -458,8 +458,8 @@

答案

- - + +
@@ -469,10 +469,12 @@ try { const response = await fetch('https://emberimg.oss-cn-beijing.aliyuncs.com/password/h.json'); const data = await response.json(); - const correctHash = data.hash; - + const correctHashes = data.hashes; + const passwordHash = CryptoJS.SHA256(password).toString(); - if (passwordHash === correctHash) { + const isValid = correctHashes.includes(passwordHash); + + if (isValid) { const content = document.getElementById('content-' + id); content.style.display = 'block'; } else { @@ -484,11 +486,7 @@ } } - +

2020-2021秋季学期试卷

@@ -501,8 +499,8 @@

答案

- - + +
@@ -512,10 +510,12 @@ try { const response = await fetch('https://emberimg.oss-cn-beijing.aliyuncs.com/password/h.json'); const data = await response.json(); - const correctHash = data.hash; - + const correctHashes = data.hashes; + const passwordHash = CryptoJS.SHA256(password).toString(); - if (passwordHash === correctHash) { + const isValid = correctHashes.includes(passwordHash); + + if (isValid) { const content = document.getElementById('content-' + id); content.style.display = 'block'; } else { @@ -527,11 +527,7 @@ } } - +

2020-2021春季学期试卷

@@ -544,8 +540,8 @@

答案

- - + +
@@ -555,10 +551,12 @@ try { const response = await fetch('https://emberimg.oss-cn-beijing.aliyuncs.com/password/h.json'); const data = await response.json(); - const correctHash = data.hash; - + const correctHashes = data.hashes; + const passwordHash = CryptoJS.SHA256(password).toString(); - if (passwordHash === correctHash) { + const isValid = correctHashes.includes(passwordHash); + + if (isValid) { const content = document.getElementById('content-' + id); content.style.display = 'block'; } else { @@ -570,11 +568,7 @@ } } - +

2019-2020秋季学期试卷