.progress.counting span { width: 0; animation: none; transition: width 3s linear; } .fallback {
正在等待 Cloudflare 驗證...
正在等待 Cloudflare 驗證...
立即前往 const turnstileSiteKey = '0x4AAAAAAGM9NjsS0g8f3QMg'; const redirectDelay = 3; const statusText = document.getElementById('status-text'); const countdownLabel = document.getElementById('countdown-label'); const countdown = document.getElementById('countdown'); const progress = document.getElementById('progress'); const progressBar = document.querySelector('.progress'); const fallback = document.getElementById('fallback'); let redirected = false; let countdownStarted = false; redirected = true; statusText.textContent = '驗證完成,正在跳轉...'; countdownLabel.hidden = false; countdown.textContent = '0'; window.location.replace(target); const startRedirectCountdown = () => { if (countdownStarted) return; countdownStarted = true; let remaining = redirectDelay; statusText.hidden = true; countdownLabel.hidden = false; fallback.hidden = false; progressBar.classList.add('counting'); window.requestAnimationFrame(() => { progress.style.width = '100%'; }); const tick = () => { remaining -= 1; countdown.textContent = Math.max(remaining, 0); if (remaining <= 0) { go(); return; } window.setTimeout(tick, 1000); }; window.setTimeout(tick, 1000); }; window.onTurnstileSuccess = (token) => { if (token) go(); if (token) startRedirectCountdown(); };