-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcountdown.html
82 lines (66 loc) · 4 KB
/
countdown.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>COUNTDOWN TIMER</title>
<link rel="stylesheet" href="countdown.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic. com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Jost:wght@600&family=Lobster&family=Poppins:ital,wght@0,100;0,200;0,400;0,500;0,600;0,700;1,300;1,700&family=Raleway:wght@500&family=Ubuntu:wght@700&display=swap" rel="stylesheet">
</head>
<body>
<div id="nav">
<img src="E:\BE CHITKARA\BE CIRCULAR\2nd SEMESTER\SCM\TASK 2 SCM\hourglass.gif" alt="Error">
<div id="navright">
<div class="button"><a href="#page1" role="button">HOME</a></div>
<div class="button"><a href="#page2" role="button">PROJECT</a></div>
<div class="button"><a href="#page3" role="button">ABOUT US</a></div>
<div class="button"><a href="https://timer.live/" target="_blank" role="button">ABOUT PROJECT</a></div>
</div>
</div>
<div id="main">
<div id="page1" >
<div id="Heading">
<h1>COUNTDOWN </h1><span>TIMER</span>
</div>
<br>
<h1>LET'S COUNTDOWN TO NEW YEAR!!!!</h1>
<br>
</div>
<br>
<br>
<br>
<div id="page2">
<h1>
<p id="demo"></p>
<script>
var countDownDate = new Date("JUN 08, 2024 12:30:00").getTime();
var x = setInterval(function()
{
var now = new Date().getTime();
var distance = countDownDate - now;
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
document.getElementById("demo").innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s ";
if (distance < 0) {
clearInterval(x);document.getElementById("demo").innerHTML = "TIME'S UP!!!!";
}
}, 1000);
</script>
</h1>
</div>
<div id="page3">
<h1>ABOUT <br>US.<h1>®</h1></h1>
<br>
<div id="aboutright">
<div class="info"><img src="E:\BE CHITKARA\BE CIRCULAR\2nd SEMESTER\SCM\TASK 2 SCM\DEVVRATH.jpg" alt="DEVVRATH"><h3>DEVVRATH DHIMAN</h3> <br>Rollno: 2310990408<br><h5>[email protected]</h5><br><h5><a href="https://www.linkedin.com/in/devvrat-dhiman-9161262a0?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_medium=android_app" target="_blank" style="text-decoration: green;"><u>LINKED IN</u></a></h5></div>
<div class="info"><img src="E:\BE CHITKARA\BE CIRCULAR\2nd SEMESTER\SCM\TASK 2 SCM\DHRUPAD 2.png" alt="DHRUPAD"><h3>DHRUPAD KAPOOR</h3> <br>Rollno: 2310990409<br><h5>[email protected]</h5><br><h5><a href="https://www.linkedin.com/in/dhrupad-kapoor-0b2925291?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_medium=android_app" target="_blank" style="text-decoration: green;"><u>LINKED IN</u></a></h5></div>
<div class="info"><img src="E:\BE CHITKARA\BE CIRCULAR\2nd SEMESTER\SCM\TASK 2 SCM\DHRUV SHARMA.jpg" alt="DHRUV"><h3>DHRUV SHARMA</h3> <br>Rollno: 2310990410<br><h5>[email protected]</h5><br><h5><a href="https://www.linkedin.com/in/dhruv-sharma-962ab928b?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_medium=android_app" target="_blank" style="text-decoration: green;"><u>LINKED IN</u></a></h5></div>
</div>
</div>
</div>
</body>
</html>