欧洲杯的盛宴:6月26日决战
【发布时间】:2024-05-06 04:09:08
日期:
2023年6月26日
时间:
21:00 CET
地点:
伦敦温布利球场
<script>
// 倒计时脚本const countdownTimer = document.getElementById("countdown-timer");const launchDate = new Date("2023-06-26T21:00:00Z"); // 欧洲中部时间(CET)const now = new Date();// 计算倒计时时间const timeToLaunch = launchDate - now;// 将时间转换为天、小时、分钟和秒const days = Math.floor(timeToLaunch / (1000 60 60 24));const hours = Math.floor((timeToLaunch % (1000 60 60 24)) / (1000 60 60));const minutes = Math.floor((timeToLaunch % (1000 60 60)) / (1000 60));
const seconds = Math.floor((timeToLaunch % (1000 60)) / 1000);// 更新倒计时器function updateCountdown() {countdownTimer.innerHTML = `${days}天 ${hours}小时 ${minutes}分钟 ${seconds}秒`;}// 每秒更新倒计时器setInterval(updateCountdown, 1000);
</script>