0
0

first version of the website, it works as intended.

This commit is contained in:
Bryan Pedini
2019-01-26 23:34:48 +01:00
parent 37fbd490fd
commit 9888403935
9 changed files with 407 additions and 0 deletions

22
includes/redirect.html Normal file
View 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>