<script>
function startTimer(duration, display) {
var timer = duration, minutes, seconds;
var end =setInterval(function () {
seconds = parseInt(timer % 60, 10);
seconds = seconds < 10 ? "0" + seconds : seconds;
display.textContent = seconds;
if (--timer < 0) {
window.location='http://bachle2000.github.io';
clearInterval(end);
}
}, 1000);
}
window.onload = function () {
var fiveSeconds = 5,
display = document.querySelector('#time');
startTimer(fiveSeconds, display);
};
</script>
Có vẻ như bạn đã bị nhầm trang! Chúng tôi sẽ tự động chuyển hướng về trang chủ sau 05 giây!
Nếu nó không chuyển hướng, nhấn vào đây để vào trang chủ!