You've already forked OpenShorte.old
first version of the website, it works as intended.
This commit is contained in:
22
includes/redirect.html
Normal file
22
includes/redirect.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title id="title">Redirect in 5 seconds</title>
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
<h1 id="body-timeout">You will be redirected to ... in 5</h1>
|
||||
</center>
|
||||
<script>
|
||||
var seconds = 5;
|
||||
function update_timeout () {
|
||||
document.getElementById("title").innerHTML = "Redirect in "+seconds+" seconds";
|
||||
document.getElementById("body-timeout").innerHTML = "You will be redirected to ... in "+seconds;
|
||||
if (seconds == 0) {
|
||||
window.location.href = my_location;
|
||||
}
|
||||
}
|
||||
setInterval (function() {update_timeout(); seconds = seconds - 1;}, 1000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user