-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (31 loc) · 1.28 KB
/
index.html
File metadata and controls
31 lines (31 loc) · 1.28 KB
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
<!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
const initial-scale=1.0">
<link href="https://fonts.cdnfonts.com/css/poppins" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
<title>JavaScript Date Calculataor</title>
</head>
<style> body{font-family: poppins;} </style>
<body class="container mt-5">
<h1 class="mb-5">Date Calculator</h1>
<div class="mb-3 d-flex gap-3 align-items-center">
<label for="start">Start Date:</label>
<input type="date" id="start" class="form-control w-auto">
</div>
<div class="mb-3 d-flex gap-3 align-items-center">
<label for="stop">Stop Date:</label>
<input type="date" id="stop" class="form-control w-auto">
</div>
<button type="submit" class="btn btn-primary mb-3" onclick="calc()">Calculate</button>
<div>
<label for="result">Differences (days)</label><br>
<input type="text" disabled id="result" class="form-control" style="width: 300px;">
</div>
<p id="error"></p>
</body>
<script src="./date_calculator_javascript.js"></script>
</html>