-
Notifications
You must be signed in to change notification settings - Fork 0
/
gh.html
49 lines (45 loc) · 1.59 KB
/
gh.html
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
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<title>Sintco URL Redirection Page</title>
<link rel="stylesheet" href="style/gh.css">
<script src="js/gh.js"></script>
</head>
<body>
<div class="wrapper">
<header class="title">
<h1>Sintco URL Redirection Page</h1>
</header>
<div class="content">
<div class="left-sidebar">Left Sidebar</div>
<div class="main-content">
<div class="timer-container">
<div id="timer">5</div>
</div>
<br />
<div class="content-box">Content Box 1</div>
<div class="content-box">Content Box 2</div>
<div class="content-box">Content Box 3</div>
</div>
<div class="right-sidebar">Right Sidebar</div>
</div>
</div>
<script>
// Get the timer element
const timerElement = document.getElementById("timer");
// Set the initial countdown value
let countdown = 5;
// Function to update the timer display
function updateTimer() {
timerElement.textContent = countdown; // Update the timer display
countdown--; // Decrease the countdown value
if (countdown < 0) {
clearInterval(timerInterval); // Stop the interval when countdown reaches -1
timerElement.textContent = "Redirecting!";
}
}
// Call the updateTimer function every second (1000 milliseconds)
const timerInterval = setInterval(updateTimer, 1000);
</script>
</body>
</html>