-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
175 lines (95 loc) · 4.47 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
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
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<title> date-calc </title>
<link rel="stylesheet" href="./src/style/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="date-calc">
<h2 class="title"> date-calc </h2>
<div class="form-nav">
<a id="diff">Count Days</a>
<a id="add"> Add Days</a>
</div>
<div class="content">
<form class="differenceBetween display">
<div class="dateInput">
<fieldset class="startDate">
<label for="diffStart">Start Date
<input id="diffStart" name="startDate" type="date">
</label>
</fieldset>
<div class="endDate">
<label for="diffEnd">End Date
<input id="diffEnd" name="endDate" type="date">
</label>
</div>
</div>
<div class="checkboxes">
<ul>
<li>
<label for="diffEndDay">Include end day (add 1 day?)
<input class = "endDay" id="diffEndDay" name="addEndDay" type="checkbox">
</label>
</li>
</ul>
</div>
<div class="submit">
<button id="diffSubmit" type="button">Calculate</button>
</div>
<div class="result">
<p id="diffResult"></p>
</div>
</form>
<form class="addSubtract">
<div class="dateInput">
<div class="startDate">
<label for="addStartDate">Start Date
<input id="addStart" name="startDate" type="date">
</label>
</div>
<div class="addDate">
<label for="addAmount">Amount
<br>
<select id="addSubtract">00
<option> Pick a value </option>
<option value="add">Add</option>
<option value="subtract">Subtract</option>
</select>
<input id="addAmount" name="addAmount" type="number">
<select id="addType">
<option> Pick a value </option>
<option value="days">Day(s)</option>
<option value="weeks">Week(s)</option>
<option value="months">Month(s)</option>
<option value="years">Year(s)</option>
</select>
</label>
</div>
</div>
<div class="checkboxes">
<ul>
<li>
<label for="addEndDay">Include end day (add 1 day?)
<input id="addEndDay" class = "endDay" name="addEndDay" type="checkbox">
</label>
</li>
</ul>
</div>
<div class="submit">
<button id="addSubmit" type="button">Calculate</button>
</div>
<div class="result">
<p id="addResult">
</p>
</div>
</form>
</div>
</div>
<footer>
<p> Written by <a href="https://github.com/bl-kt">@BLKT</a></p>
</footer>
</body>
<script type="module" src="./src/js/main.mjs"></script>
</html>