mirror of
https://github.com/ExamAware/ExamSchedule.git
synced 2025-04-29 19:16:33 +00:00
feat: 添加考试状态提示和不可名状之物
This commit is contained in:
parent
188bd95897
commit
000df5e1fc
@ -95,6 +95,8 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
remainingTimeElem.textContent = `倒计时: ${remainingTimeText}`;
|
||||
remainingTimeElem.style.color = "red";
|
||||
remainingTimeElem.style.fontWeight = "bold";
|
||||
statusElem.textContent = "状态: 即将结束";
|
||||
statusElem.style.color = "red";
|
||||
} else {
|
||||
remainingTimeElem.textContent = `剩余时间: ${remainingTimeText}`;
|
||||
remainingTimeElem.style.color = "#93b4f7";
|
||||
|
15
index.html
15
index.html
@ -114,5 +114,20 @@
|
||||
|
||||
<!-- 新增版权信息 -->
|
||||
<div class="copyright">© 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>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user