-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (30 loc) · 1.28 KB
/
index.html
File metadata and controls
32 lines (30 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
32
<!DOCTYPE html>
<html>
<head>
<title>Date Validator</title>
<script src="/date-validator-test/validator.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100">
<div class="w-1/2 mx-auto p-4">
<h1 class="text-3xl font-bold text-center mb-4">Date Validator</h1>
<form id="dateForm" class="bg-white rounded-lg p-4">
<div class="mb-4">
<label for="date" class="block text-gray-700 font-bold mb-2">Date:</label>
<input type="text" id="date" name="date" class="w-full px-3 py-2 border rounded-lg" required>
</div>
<div class="mb-4">
<label for="format" class="block text-gray-700 font-bold mb-2">Format:</label>
<select id="format" name="format" class="w-full px-3 py-2 border rounded-lg">
<option value="YYYY-MM-DD">YYYY-MM-DD</option>
<option value="DD-MM-YYYY">DD-MM-YYYY</option>
<option value="MM-DD-YYYY">MM-DD-YYYY</option>
</select>
</div>
<div class="text-center">
<button type="submit" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Validate</button>
</div>
<p id="result" class="text-center mt-4"></p>
</form>
</div>
</html>