You've already forked OpenShorte.old
Refactored the website
Renamed "includes" to "templates" Added .htaccess to redirect requests to index.php Added function to split request URL into array Corrected locations in scripts and pages
This commit is contained in:
26
templates/redirect.html
Normal file
26
templates/redirect.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title id="title">Redirect in 5 seconds</title>
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
<h1>You will be redirected to <span id="redirect-url"></span> in <span id="body-timeout">5</span></h1>
|
||||
</center>
|
||||
<script>
|
||||
window.onload = function() {
|
||||
var seconds = 5;
|
||||
document.getElementById("redirect-url").innerHTML = my_location;
|
||||
function update_timeout (interval) {
|
||||
document.getElementById("title").innerHTML = "Redirect in "+seconds+" seconds";
|
||||
document.getElementById("body-timeout").innerHTML = seconds;
|
||||
if (seconds == 0) {
|
||||
window.location.href = my_location;
|
||||
clearInterval (interval);
|
||||
}
|
||||
}
|
||||
interval = setInterval (function() {update_timeout(interval); seconds = seconds - 1;}, 1000);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user