-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (46 loc) · 1.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Date calculator</title>
<link rel="stylesheet" href="calender.css">
</head>
<body>
<script src="calender.js"></script>
<div class="main">
<form>
<div>
<label>Start Date</label><br>
<input type="date" onchange="showDate()" id="startDate">
<br>
<div id="firstinput">
</div>
<div><br></div>
<label>Operation</label><br>
<select id="operation">
<option value="add">Add</option>
<option value="subtract">Subtract</option>
</select>
<div class="wrap-up">
<div>
<input type="number" id="durationValue" min="0" placeholder=" Please enter value for operation"><br>
</div>
<div>
<select id="durationType">
<option value="days">Days</option>
<option value="months">Months</option>
<option value="weeks">Weeks</option>
<option value="years">Years</option>
</select>
</div>
</div>
</div>
<br>
<button type="button" onclick="output()">Submit</button>
</form>
<div id="result"></div>
<div id="today" ><div>
</div>
</body>
</html>