-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathredirect.html
More file actions
45 lines (38 loc) · 1.22 KB
/
Copy pathredirect.html
File metadata and controls
45 lines (38 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html>
<body>
<script>
//function Redirect()
//{
// http://home.tamk.fi/~e4lguoli/practicalwork/redirect.html
//location.href = "http://home.tamk.fi/~e4lguoli/practicalwork/main.html";
//}
//Redirect();
function startTimer(duration, display) {
var timer = duration, minutes, seconds;
setInterval(function () {
minutes = parseInt(timer / 60, 10);
seconds = parseInt(timer % 60, 10);
minutes = minutes < 10 ? "0" + minutes : minutes;
seconds = seconds < 10 ? "0" + seconds : seconds;
display.textContent = minutes + ":" + seconds;
if (--timer < 0) {
timer = duration;
}
}, 1000);
}
window.onload = function () {
var fiveMinutes = 60 * 5,
display = document.querySelector('#time');
startTimer(fiveMinutes, display);
//location.href = "http://home.tamk.fi/~e4lguoli/practicalwork/main.html";
};
</script>
<?php
//header("Location: http://home.tamk.fi/~e4lguoli/practicalwork/main.html");
//http_redirect("http://home.tamk.fi/~e4lguoli/practicalwork/main.html#/contact");
//http_redirect("http://home.tamk.fi/~e4lguoli/practicalwork/main.html#", array("name" => "value"), true, HTTP_REDIRECT_PERM);
//exit;
?>
</body>
</html>