forked from Pikaday/Pikaday
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
126 lines (102 loc) · 3.97 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<title>Pikaday</title>
<meta name="author" content="David Bushell">
<link rel="stylesheet" href="css/pikaday.css">
<link rel="stylesheet" href="css/site.css">
</head>
<body>
<h1>Pikaday Plus</h1>
<p class="large">A refreshed JavaScript Datepicker and Rangepicker — accessible, lightweight, no dependencies, modular CSS.</p>
<p><a href="https://github.com/hinderlingvolkart/PikadayPlus"><strong>PikadayPlus source on GitHub</strong></a></p>
<fieldset>
<legend>Pick a date</legend>
<label for="datepicker">Date:</label>
<br>
<input type="text" id="datepicker">
</fieldset>
<fieldset>
<legend>Pick a range</legend>
<div class="flow-element">
<label for="rangestart">Start:</label>
<br>
<input type="text" id="rangestart">
</div>
<div class="flow-element">
<label for="rangeend">End:</label>
<br>
<input type="text" id="rangeend">
</div>
</fieldset>
<fieldset>
<legend>Single Range</legend>
<div class="flow-element" id="singlerange">
<div class="flow-element">
<label for="rangestart">Start:</label>
<br>
<input type="text" id="rangestart2">
</div>
<div class="flow-element">
<label for="rangeend">End:</label>
<br>
<input type="text" id="rangeend2">
</div>
</div>
</fieldset>
<h2>What is this?</h2>
<p>Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the <a href="https://github.com/hinderlingvolkart/PikadayPlus/issues">GitHub issue tracker</a>, thanks!</p>
<h2>Examples</h2>
<ul>
<li><a href="examples/amd.html">Amd</a></li>
<li><a href="examples/bound-container.html">Bound Container</a></li>
<li><a href="examples/calendars.html">Calendars</a></li>
<li><a href="examples/container.html">Container</a></li>
<li><a href="examples/date-range.html">Date Range</a></li>
<li><a href="examples/daysInNextMonth.html">Days in next month</a></li>
<li><a href="examples/diableDayFn.html">Diable-day-fn</a></li>
<li><a href="examples/moment.html">Moment</a></li>
<li><a href="examples/positions.html">Positions</a></li>
<li><a href="examples/theme.html">Theme</a></li>
<li><a href="examples/trigger-range.html">Trigger Range</a></li>
<li><a href="examples/trigger.html">Trigger</a></li>
<li><a href="examples/two-picker-range-container.html">Two Picker Range Container</a></li>
<li><a href="examples/weeknumbers.html">Weeknumbers</a></li>
</ul>
<p class="small"><a href="https://www.hinderlingvolkart.com">Hinderling Volkart AG</a> | BSD & MIT license | Copyright © 2014 <a href="http://dbushell.com/">David Bushell</a> | BSD & MIT license</p>
<script src="pikaday.js"></script>
<script src="pikarange.js"></script>
<script>
var picker = new Pikaday(
{
field: document.getElementById('datepicker'),
firstDay: 1,
minDate: new Date(),
maxDate: new Date(2020, 12, 31),
yearRange: [2000,2020]
});
var rangepicker = new Pikarange(
{
start: document.getElementById('rangestart'),
end: document.getElementById('rangeend'),
firstDay: 1,
minDate: new Date(),
maxDate: new Date(2020, 12, 31),
yearRange: [2000,2020]
});
var rangepicker2 = new Pikarange(
{
start: document.getElementById('rangestart2'),
end: document.getElementById('rangeend2'),
container: document.getElementById('singlerange'),
firstDay: 1,
position: 'bottom center',
minDate: new Date(),
maxDate: new Date(2020, 12, 31),
yearRange: [2000,2020]
});
</script>
</body>
</html>