From 5ffdf84abc11a08bc396ad35b6d25c4fd070ee55 Mon Sep 17 00:00:00 2001 From: MKStoler1024 <158786854+MKStoler1024@users.noreply.github.com> Date: Mon, 31 Mar 2025 15:04:51 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E8=80=83=E8=AF=95?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E9=85=8D=E7=BD=AE=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exam/Scripts/examInfo.js | 5 ++-- exam/exam_config.json | 52 ++++++++++++++++++++-------------------- 2 files changed, 28 insertions(+), 29 deletions(-) diff --git a/exam/Scripts/examInfo.js b/exam/Scripts/examInfo.js index 96e49a8..3970109 100644 --- a/exam/Scripts/examInfo.js +++ b/exam/Scripts/examInfo.js @@ -101,10 +101,9 @@ document.addEventListener("DOMContentLoaded", () => { remainingTimeElem.textContent = `剩余时间: ${remainingTimeText}`; remainingTimeElem.style.color = "#93b4f7"; remainingTimeElem.style.fontWeight = "normal"; + statusElem.textContent = "状态: 进行中"; + statusElem.style.color = "#5ba838"; } - - statusElem.textContent = "状态: 进行中"; - statusElem.style.color = "#5ba838"; } else if (lastExam && now < new Date(lastExam.end).getTime() + 60000) { const timeSinceEnd = (now.getTime() - new Date(lastExam.end).getTime()) / 1000; currentSubjectElem.textContent = `上场科目: ${lastExam.name}`; diff --git a/exam/exam_config.json b/exam/exam_config.json index 43ac6ae..9a82e2a 100644 --- a/exam/exam_config.json +++ b/exam/exam_config.json @@ -5,43 +5,43 @@ "examInfos": [ { "name": "语文", - "start": "2025-03-30T07:20:00", - "end": "2025-03-30T09:50:00" - }, - { - "name": "物理", - "start": "2025-03-30T10:20:00", - "end": "2025-03-30T11:50:00" - }, - { - "name": "英语", - "start": "2025-03-30T14:10:00", - "end": "2025-03-30T23:50:00" - }, - { - "name": "历史", - "start": "2025-03-30T23:55:00", - "end": "2025-03-31T01:00:00" - }, - { - "name": "数学", - "start": "2025-03-31T07:50:00", + "start": "2025-03-31T07:20:00", "end": "2025-03-31T09:50:00" }, { - "name": "化学", + "name": "物理", "start": "2025-03-31T10:20:00", "end": "2025-03-31T11:50:00" }, { - "name": "生物/政治", + "name": "英语", "start": "2025-03-31T14:10:00", - "end": "2025-03-31T15:40:00" + "end": "2025-03-31T23:15:00" + }, + { + "name": "历史", + "start": "2025-03-31T23:55:00", + "end": "2025-04-01T01:00:00" + }, + { + "name": "数学", + "start": "2025-04-01T07:50:00", + "end": "2025-04-01T09:50:00" + }, + { + "name": "化学", + "start": "2025-04-01T10:20:00", + "end": "2025-04-01T11:50:00" + }, + { + "name": "生物/政治", + "start": "2025-04-01T14:10:00", + "end": "2025-04-01T15:40:00" }, { "name": "地理", - "start": "2025-03-31T16:10:00", - "end": "2025-03-31T17:40:00" + "start": "2025-04-01T16:10:00", + "end": "2025-04-01T17:40:00" } ] }