-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNew_project.html
163 lines (111 loc) · 4.69 KB
/
New_project.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<script type="text/javascript">
let a;
let date;
let time;
const option = { weekday: 'long', year: 'numeric', month:'long', day:'numeric'};
function addzero(i) {
if (i < 10 ) {
i = "0" + i;
}
return i;
}
setInterval(() =>{
a = new Date();
date = a.toLocaleDateString(undefined, option);
time = addzero(a.getHours()) + ':' + addzero(a.getMinutes()) + ':' + addzero(a.getSeconds());
document.getElementById("time").innerHTML = time + " <br> on " + date.toString();
}, 1000);
setInterval(() =>{
let a = new Date();
b = a.getTime() - (a.getTimezoneOffset() * -60000);
c = b + (-4 * 3600000);
f = new Date(c).toLocaleString()
document.getElementById("usa").innerHTML = new Date(c).toLocaleTimeString() + "<br>" + new Date(c).toDateString();
}, 1000)
setInterval(() =>{
let a = new Date();
b = a.getTime() - (a.getTimezoneOffset() * -60000);
c = b + (+1 * 3600000);
f = new Date(c).toLocaleString()
document.getElementById("London").innerHTML = new Date(c).toLocaleTimeString() + "<br>" + new Date(c).toDateString();
}, 1000)
setInterval(() =>{
let a = new Date();
b = a.getTime() - (a.getTimezoneOffset() * -60000);
c = b + (+9.00 * 3600000);
f = new Date(c).toLocaleString()
document.getElementById("Tokyo").innerHTML = new Date(c).toLocaleTimeString() + "<br>" + new Date(c).toDateString();
}, 1000)
setInterval(() =>{
let a = new Date();
b = a.getTime() - (a.getTimezoneOffset() * -60000);
c = b + (+8.00 * 3600000);
f = new Date(c).toLocaleString()
document.getElementById("Singapore").innerHTML = new Date(c).toLocaleTimeString() + "<br>" + new Date(c).toDateString();
}, 1000)
</script>
</head>
<body>
<nav class="navbar navbar-light bg-dark">
<div class="container-fluid bg-light md-6">
<a class="navbar-brand" href="#">
<b> Vikas Verma PROJECT</b>
</a>
</div>
</nav>
<div class="container">
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1 class="display-4">Current Time is : <span id = "time"></span></h1>
<p class="lead">This is Current time of India.</p>
</div>
</div>
</div>
<div class="container">
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1 class="display-4">Current Time is: <span id = "usa"></span></h1>
<p class="lead">This is Current time of New York United State of America.</p>
</div>
</div>
</div>
<div class="container">
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1 class="display-4">Current Time is: <span id = "London"></span></h1>
<p class="lead">This is Current time of London United Kingdom.</p>
</div>
</div>
</div>
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1 class="display-4">Current Time is: <span id = "Tokyo"></span></h1>
<p class="lead">This is Current time of Tokyo Japan.</p>
</div>
</div>
</div>
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1 class="display-4">Current Time is: <span id = "Singapore"></span></h1>
<p class="lead">This is Current time of Singapore.</p>
</div>
</div>
</div>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script>
-->
</body>
</html>