-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatepicker-step2.html
58 lines (53 loc) · 1.89 KB
/
datepicker-step2.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>
<title>Datepicker</title>
<meta charset="utf-8">
<link rel="stylesheet" href="datepicker-step2.css">
</head>
<body>
<div class="container">
<header>
<h1>Datepicker: Step 2</h1>
</header>
<main>
<form>
<p>Today is <span id="todayIs">Saturday 18th November, 2023 </span></p>
<p class="form-element"><label for="date" id="label-date">
Choose a date: <br>
<span id="error-date" hidden><img src="icons/baseline-error-red.svg" alt="Error: "> You have not chosen a valid date<br></span>
</label>
<input type="text" id="date" class="">
<button id="dp1-opener" type="button" class="btn" hidden>Open datepicker</button>
</p>
<dialog class="datepicker" id="dp1" autofocus>
<div class="dp-nav">
<h2 id="dp1-heading">Available dates in <span id="dp1-currentmonth" tabindex="-1">October</span></h2>
<button id="dp1-closer" type="button" class="btn">Close</button>
<button id="dp1-previous" type="button" class="btn">Previous month</button>
<button id="dp1-next" type="button" class="btn">Next month </button>
</div>
<div class="dp-body">
<table>
<tr>
<th scope="col">Sunday</th>
<th scope="col">Monday</th>
<th scope="col">Tuesday</th>
<th scope="col">Wednesday</th>
<th scope="col">Thursday</th>
<th scope="col">Friday</th>
<th scope="col">Saturday</th>
</tr>
</table>
</div>
</dialog>
<p><button type="button" class="btn" id="go">Submit</button></p>
<p hidden>You have chosen <span id="chosenDate">Monday 13th November, 2023</span></p>
</form>
</main>
<footer>
</footer>
<script src="assets/moment.min.js"></script>
<script src="datepicker-step2.js"></script>
</body>
</html>