This repository has been archived by the owner on Jan 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 246
/
Copy pathindex.html
188 lines (163 loc) · 5.61 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>vue-datetime demo</title>
<meta name="description" content="vue-datetime demo docs">
<meta name="author" content="Mario Juárez">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/styles/atom-one-light.min.css">
</head>
<body>
<div id="app" class="page">
<h1><a href="https://github.com/mariomka/vue-datetime">vue-datetime demo</a></h1>
<h2>Date</h2>
<div class="example">
<div class="example-inputs">
<datetime v-model="date"></datetime>
<div class="values">
<p>
<strong>Value:</strong> {{ date }}
</p>
</div>
</div>
<div class="example-code">
<pre><code><datetime v-model="date"></datetime></code></pre>
</div>
</div>
<h2>Datetime</h2>
<div class="example">
<div class="example-inputs">
<datetime type="datetime" v-model="datetime"></datetime>
<div class="values">
<p>
<strong>Value:</strong> {{ datetime }}
</p>
</div>
</div>
<div class="example-code">
<pre><code><datetime type="datetime" v-model="datetime"></datetime></code></pre>
</div>
</div>
<h2>12h datetime</h2>
<div class="example">
<div class="example-inputs">
<datetime type="datetime" v-model="datetime12" use12-hour></datetime>
<div class="values">
<p>
<strong>Value:</strong> {{ datetime12 }}
</p>
</div>
</div>
<div class="example-code">
<pre><code><datetime type="datetime" v-model="datetime12" use12-hour></datetime></code></pre>
</div>
</div>
<h2>Time</h2>
<div class="example">
<div class="example-inputs">
<datetime type="time" v-model="time"></datetime>
<div class="values">
<p>
<strong>Value:</strong> {{ time }}
</p>
</div>
</div>
<div class="example-code">
<pre><code><datetime type="time" v-model="time"></datetime></code></pre>
</div>
</div>
<h2>Macro tokens</h2>
<div class="example">
<div class="example-inputs">
<datetime type="datetime" v-model="datetime13" format="yyyy-MM-dd HH:mm:ss"></datetime>
<div class="values">
<p>
<strong>Value:</strong> {{ datetime13 }}
</p>
</div>
</div>
<div class="example-code">
<pre><code><datetime type="datetime" v-model="datetime13" format="yyyy-MM-dd HH:mm:ss"></datetime></code></pre>
</div>
</div>
<h2>Complete demo</h2>
<div class="example">
<div class="example-inputs">
<datetime
type="datetime"
v-model="datetimeEmpty"
placeholder="Select date"
class="my-wrapper-class"
input-class="my-input-class"
value-zone="America/New_York"
zone="Asia/Shanghai"
:format="{ year: 'numeric', month: 'long', day: 'numeric', hour: 'numeric', minute: '2-digit', timeZoneName: 'short' }"
:phrases="{ok: 'Continue', cancel: 'Exit'}"
:hour-step="2"
:minute-step="15"
:min-datetime="minDatetime"
:max-datetime="maxDatetime"
:week-start="7"
use12-hour
auto
></datetime>
<div class="values">
<p>
<strong>Value:</strong> {{ datetimeEmpty }}
</p>
</div>
</div>
<div class="example-code">
<pre><code><datetime
type="datetime"
v-model="datetimeEmpty"
input-class="my-class"
value-zone="America/New_York"
zone="Asia/Shanghai"
:format="{ year: 'numeric', month: 'long', day: 'numeric', hour: 'numeric', minute: '2-digit', timeZoneName: 'short' }"
:phrases="{ok: 'Continue', cancel: 'Exit'}"
:hour-step="2"
:minute-step="15"
:min-datetime="minDatetime"
:max-datetime="maxDatetime"
:week-start="7"
use12-hour
auto
></datetime></code></pre>
</div>
</div>
<h2>Theming</h2>
<div class="example">
<div class="example-inputs">
<datetime type="datetime" v-model="datetimeTheming" class="theme-orange"></datetime>
<div class="values">
<p>
<strong>Value:</strong> {{ datetimeTheming }}
</p>
</div>
</div>
<div class="example-code">
<pre><code><datetime type="datetime" v-model="datetimeTheming" class="theme-orange"></datetime></code></pre>
<pre><code>.theme-orange .vdatetime-popup__header,
.theme-orange .vdatetime-calendar__month__day--selected > span > span,
.theme-orange .vdatetime-calendar__month__day--selected:hover > span > span {
background: #FF9800;
}
.theme-orange .vdatetime-year-picker__item--selected,
.theme-orange .vdatetime-time-picker__item--selected,
.theme-orange .vdatetime-popup__actions__button {
color: #ff9800;
}</code></pre>
</div>
</div>
<footer>
© <a href="https://github.com/mariomka">Mario Juárez</a> -
<a href="https://github.com/mariomka/vue-datetime">Code on Github</a>
</footer>
</div>
<script src="dist/app.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad()</script>
</body>
</html>