-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (39 loc) · 1.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/style.css">
<title>Calculate time</title>
</head>
<body>
<h2>TimeStamp to date</h2>
<input type="number" class="date-input">
<button class="btn-convert">Convert</button>
<div class="outDate"></div>
<h2>Calculate remaining time</h2>
<div class="start">
<h4 class="time-title">Start date</h4>
<input type="number" class="start-year startDate" placeholder="Year">
<input type="number" class="start-month startDate" placeholder="Month">
<input type="number" class="start-date startDate" placeholder="Date">
<input type="number" class="start-hours startDate" placeholder="Hours">
<input type="number" class="start-minutes startDate" placeholder="Minutes">
<input type="number" class="start-seconds startDate" placeholder="Seconds">
</div>
<div class="end">
<h4 class="time-title">End date</h4>
<input type="number" class="end-year endDate" placeholder="Year">
<input type="number" class="end-month endDate" placeholder="Month">
<input type="number" class="end-date endDate" placeholder="Date">
<input type="number" class="end-hours endDate" placeholder="Hours">
<input type="number" class="end-minutes endDate" placeholder="Minutes">
<input type="number" class="end-seconds endDate" placeholder="Seconds">
</div>
<div><button class="dts-btn">Calculate time</button>
<div class="dts-out">Years: 00, Days: 00, Hours: 00, Minutes: 00, Seconds: 00</div>
</div>
<script src="js/script.js"></script>
</body>
</html>