This repository has been archived by the owner on May 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
102 lines (88 loc) · 3.7 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 http-equiv="content-type" content="text/html; charset=utf-8">
<script data-main="../main" src="../src/bower_components/requirejs/require.js"></script>
<link rel="stylesheet" href="src/bower_components/pickadate/lib/themes/classic.css"/>
<link rel="stylesheet" href="src/bower_components/pickadate/lib/themes/classic.date.css"/>
<link rel="stylesheet" href="src/bower_components/pickadate/lib/themes/classic.time.css"/>
<link rel="stylesheet" href="src/bower_components/select2/select2.css" type="text/css">
<link rel="stylesheet" href="src/bower_components/patternslib/style/common.css" type="text/css">
<link rel="stylesheet" href="src/bower_components/patternslib/style/patterns.css" type="text/css">
<title>Pickadate Pattern demo</title>
<style>
legend {
border: 1px solid lightgrey;
padding: 1em;
margin: 1em;
}
</style>
</head>
<body>
<div id="container">
<h1>Pickadate Pattern demo</h1>
<form>
<legend>
<p>Date and time</p>
<label>Example 1:</label>
<input class="pat-date-picker"/>
</legend>
<legend>
<p>Date and time with initial data</p>
<label>Example 2:</label>
<input class="pat-date-picker" value="2010-12-31 00:45" />
</legend>
<legend>
<p>Only the date</p>
<label>Example 3:</label>
<input class="pat-date-picker" data-pat-date-picker="show: date"/>
</legend>
<legend>
<p>Predefined date, no time</p>
<label>Example 4:</label>
<input class="pat-date-picker" value="2010-12-31" data-pat-date-picker="show date"/>
</legend>
<legend>
<p>Only time</p>
<label>Example 5:</label>
<input class="pat-date-picker" data-pat-date-picker="show time"/>
</legend>
<legend>
<p>Predefined time</p>
<label>Example 6:</label>
<input class="pat-date-picker" value="00:00" data-pat-date-picker="show time"/>
</legend>
<legend>
<p>Date and time with timezone</p>
<label>Example 7:</label>
<input class="pat-date-picker" data-pat-date-picker='{"show": ["date", "time", "timezone"], "timezone": {"data": [{"id":"Europe/Berlin","text":"Europe/Berlin"},{"id":"Europe/Vienna","text":"Europe/Vienna"}]}}'/>
</legend>
<legend>
<p>Date and time with timezone and default value</p>
<label>Example 8:</label>
<input class="pat-date-picker" data-pat-date-picker='{"show": ["date", "time", "timezone"], "timezone": {"default": "Europe/Vienna", "data": [{"id":"Europe/Berlin","text":"Europe/Berlin"},{"id":"Europe/Vienna","text":"Europe/Vienna"}]}}'/>
</legend>
<legend>
<p>Date and time with one timezone</p>
<label>Example 9:</label>
<input class="pat-date-picker" data-pat-date-picker='{"show": ["date", "time", "timezone"], "timezone": {"data": [{"id":"Europe/Berlin","text":"Europe/Berlin"}]}}'/>
</legend>
<legend>
<p>Only timezone</p>
<label>Example 10:</label>
<input class="pat-date-picker" data-pat-date-picker='{"show": ["timezone"], "timezone": {"data": [{"id":"Europe/Berlin","text":"Europe/Berlin"}]}}'/>
</legend>
<legend>
<p>Polyfill Date</p>
<label>Example 11:</label>
<input class="pat-date-picker" type="date" data-pat-date-picker="behavior: polyfill; show: date"/>
</legend>
<legend>
<p>Polyfill Date and Time</p>
<label>Example 11:</label>
<input class="pat-date-picker" type="datetime-local" data-pat-date-picker="behaviour: polyfill; show: date, time"/>
</legend>
</form>
</div>
</body>
</html>