-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (50 loc) · 1.28 KB
/
index.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hyundai Car | BTS MOTORS</title>
<link rel = "icon" href ="images\logo.png" type = "image/x-icon">
<link rel="stylesheet" href="stylesheets\styleSlider.css">
</head>
<body>
<div class="slider">
<figure>
<div class="slide">
<img src="images\1.jpeg" alt="hyundai logo">
</div>
<div class="slide">
<img src="images\2.jpg" alt="">
</div>
<div class="slide">
<img src="images\3.jpg" alt="">
</div>
<div class="slide">
<img src="images\4.jpeg" alt="">
</div>
</figure>
<button class="start" onclick="document.location='index1.html'"><span>IGNITION </span></button>
<div class="timerWatch">Redirect in <span id="seconds">10</span> sec
</div>
<script>
var seconds = 10; // seconds for HTML
function redirect() {
document.location.href = 'index1.html';
}
function updateSecs() {
document.getElementById("seconds").innerHTML = seconds;
seconds--;
if (seconds == -1) {
redirect();
}
}
function countdownTimer() {
foo = setInterval(function () {
updateSecs()
}, 1000);
}
countdownTimer();
alert("You can wait for 10 seconds\nOR \nYou can press the IGNITION BUTTON!!")
</script>
</div>
</body>
</html>