-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
102 lines (99 loc) · 2.13 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Dates</title>
<!-- Imports polyfill -->
<script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
<!-- Imports custom element -->
<link rel="import" href="d-calendar.html" />
<style>
input[type="text"] {
padding: 5px;
border: 1px solid #ccc;
margin-top: 10px;
}
input[type="text"].d-focused {
outline: 1px dashed steelblue;
outline-offset: 0;
}
d-calendar {
font-family: system-ui;
display: inline-block;
}
label {
width: 80px;
display: inline-block;
}
</style>
</head>
<body>
<p>
<label for="d1">M1S1</label
><d-calendar
on=".datepicker"
open-event="focus"
close-event="blur"
months="1"
step="1"
>
<input
type="text"
class="datepicker"
placeholder="DoB"
value="2017-08-12"
/>
</d-calendar>
</p>
<p>
<label for="d2">M2S1</label
><d-calendar
on=".datepicker"
open-event="focus"
close-event="blur"
months="2"
step="1"
>
<input
type="text"
class="datepicker"
placeholder="DoB"
value="2017-09-12"
/>
</d-calendar>
</p>
<p>
<label for="d3">M3S2</label
><d-calendar
on=".datepicker"
open-event="focus"
close-event="blur"
months="3"
step="2"
>
<input
type="text"
class="datepicker"
placeholder="DoB"
value="2017-12-12"
/>
</d-calendar>
</p>
<p>
<d-calendar
on=".datepicker"
open-event="focus"
close-event="blur"
months="3"
step="1"
range
>
<input type="text" class="datepicker from" placeholder="From" /> -
<input type="text" class="datepicker to" placeholder="To" />
</d-calendar>
</p>
<p>
<input type="text" placeholder="Name" />
</p>
</body>
</html>