<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" name="viewport" content="widht=device-width, initial-scale=1"/> <link rel="stylesheet" type="text/css" href="css/bootstrap.css"/> </head> <body> <nav class="navbar navbar-default"> <div class="container-fluid"> </div> </nav> <div class="col-md-6 well"> <hr style="border-top:1px dotted #ccc;"> <br /> </div> </body> </html>
var timer = 5; var counter; function startTimer() { counter = setInterval(countDown, 1000); } function countDown() { var display = document.getElementById("timer"); display.innerHTML = timer; timer--; if (timer < 0) { clearInterval(counter); window.location.href = "https://sourcecodester.com"; } } function tickTime(btn){ btn.style.display='none'; document.getElementById('display').style.display="inline"; startTimer(); }