console
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>桌面美化组合创意方案最终确认</title>
<style>
body {
background-color: #fff3f3;
font-family: Arial, sans-serif;
text-align: center;
padding-top: 15%;
margin: 0;
}
h1 {
font-size: 28px;
color: #2c3e50;
margin-bottom: 20px;
}
#timer {
font-size: 32px;
font-weight: bold;
color: #e74c3c;
margin-bottom: 15px;
}
.hint {
font-size: 18px;
color: #7f8c8d;
}
</style>
</head>
<body>
<h1>桌面美化组合创意方案最终确认</h1>
<div id="timer">加载中...</div>
<div class="hint">请在下周二 17:30 前最终确认</div>
<script>
function getNextTuesday1730() {
const now = new Date();
const currentDay = now.getDay();
const daysUntilTuesday = (9 - currentDay) % 7 || 7;
const target = new Date(now);
target.setDate(now.getDate() + daysUntilTuesday);
target.setHours(17, 30, 0, 0);
return target;
}
function updateCountdown() {
const now = new Date();
const deadline = getNextTuesday1730();
const diff = deadline - now;
const timerEl = document.getElementById('timer');
if (diff <= 0) {
timerEl.innerText = '已截止';
clearInterval(intervalId);
return;
}
const totalSeconds = Math.floor(diff / 1000);
const days = Math.floor(totalSeconds / (24 * 3600));
const hours = Math.floor((totalSeconds % (24 * 3600)) / 3600);
const minutes = Math.floor((totalSeconds % 3600) / 60);
const seconds = totalSeconds % 60;
timerEl.innerText = `还有 ${days} 天 ${hours} 小时 ${minutes} 分钟 ${seconds} 秒`;
}
let intervalId = setInterval(updateCountdown, 1000);
updateCountdown();
</script>
</body>
</html>