feat: 添加考试状态提示和不可名状之物

This commit is contained in:
MKStoler1024 2025-03-31 14:42:02 +00:00
parent 188bd95897
commit 000df5e1fc
2 changed files with 17 additions and 0 deletions

View File

@ -95,6 +95,8 @@ document.addEventListener("DOMContentLoaded", () => {
remainingTimeElem.textContent = `倒计时: ${remainingTimeText}`; remainingTimeElem.textContent = `倒计时: ${remainingTimeText}`;
remainingTimeElem.style.color = "red"; remainingTimeElem.style.color = "red";
remainingTimeElem.style.fontWeight = "bold"; remainingTimeElem.style.fontWeight = "bold";
statusElem.textContent = "状态: 即将结束";
statusElem.style.color = "red";
} else { } else {
remainingTimeElem.textContent = `剩余时间: ${remainingTimeText}`; remainingTimeElem.textContent = `剩余时间: ${remainingTimeText}`;
remainingTimeElem.style.color = "#93b4f7"; remainingTimeElem.style.color = "#93b4f7";

View File

@ -114,5 +114,20 @@
<!-- 新增版权信息 --> <!-- 新增版权信息 -->
<div class="copyright">&copy; 2024-2025 ExamAware开发团队 版权所有</div> <div class="copyright">&copy; 2024-2025 ExamAware开发团队 版权所有</div>
<script>
// 愚人节彩蛋
function checkAprilFools() {
const today = new Date();
if(today.getMonth() === 3 && today.getDate() === 1) { // 4月1日
if(Math.random() <= 0.75) { // 75%的概率
window.location.href = 'https://www.bilibili.com/video/BV1GJ411x7h7/';
}
}
}
// 页面加载时执行检查
window.onload = checkAprilFools;
</script>
</body> </body>
</html> </html>