forked from 0xvashishth/CalcHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (54 loc) · 2.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Time Remaining Calculator</title>
</head>
<body>
<div id="calculator" class="calculator">
<header class="header">
<div class="mode-switch">
<label for="mode-toggle">
<span id="mode">Light</span> Mode</label
>
<input type="checkbox" id="mode-toggle" />
</div>
<h1>Time Remaining Calculator</h1>
</header>
<main>
<div id="current-time">
<h2>Today</h2>
<p>Current Date: <span id="current-date-display"></span></p>
<p>Current Time: <span id="current-time-display"></span></p>
</div>
<div class="options">
<label for="unit">Select unit:</label>
<select id="unit">
<option value="hours" selected>Hours</option>
<option value="days">Days</option>
<option value="years">Years</option>
</select>
</div>
<div class="input-section">
<div id="timeInput">
<label for="time">Select time:</label>
<input type="time" id="time" />
</div>
<div id="dateInput">
<label for="date">Select date:</label>
<input type="date" id="date" />
</div>
</div>
<div class="calculate-button">
<button id="calculate">Calculate</button>
</div>
<div class="result">
<p>Time <span id="direction"></span>: <span id="time-remaining"></span></p>
</div>
</main>
</div>
<script src="script.js"></script>
</body>
</html>