-
Notifications
You must be signed in to change notification settings - Fork 0
/
datepicker-step3.html
71 lines (66 loc) · 2.96 KB
/
datepicker-step3.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Datepicker</title>
<meta charset="utf-8">
<link rel="stylesheet" href="datepicker-step3.css">
<link rel="stylesheet" href=" https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css ">
</head>
<body>
<div class="container">
<header>
<h1>Datepicker: Step 3</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>
<span class="input-group">
<input type="text" id="date" class="">
<span class="input-group-append">
<button id="dp1-opener" type="button" class="btn" hidden><img src="icons/baseline-calendar_today-24px.svg" alt="Open calendar"></button>
</span>
</span>
</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 btn-close" aria-label="Close date picker">
<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.1323 4.55481L4.13232 16.5548M4.13232 4.55481L16.1323 16.5548" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
<button id="dp1-previous" type="button" class="btn btn-icon-primary">
<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 17L9 11L15 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
Previous</button>
<button id="dp1-next" type="button" class="btn btn-icon-primary">
Next
<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.875 15.75L13.125 10.5L7.875 5.25" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</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-step3.js"></script>
</body>
</html>