Revize c883131e
Přidáno uživatelem Martin Sebela před téměř 5 roky(ů)
website/public/css/bootstrap-datepicker3.css | ||
---|---|---|
1 |
/*! |
|
2 |
* Datepicker for Bootstrap v1.9.0 (https://github.com/uxsolutions/bootstrap-datepicker) |
|
3 |
* |
|
4 |
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0) |
|
5 |
*/ |
|
6 |
|
|
7 |
.datepicker { |
|
8 |
border-radius: 4px; |
|
9 |
direction: ltr; |
|
10 |
z-index: 1000; |
|
11 |
} |
|
12 |
.datepicker-inline { |
|
13 |
width: 220px; |
|
14 |
} |
|
15 |
.datepicker-rtl { |
|
16 |
direction: rtl; |
|
17 |
} |
|
18 |
.datepicker-rtl.dropdown-menu { |
|
19 |
left: auto; |
|
20 |
} |
|
21 |
.datepicker-rtl table tr td span { |
|
22 |
float: right; |
|
23 |
} |
|
24 |
.datepicker-dropdown { |
|
25 |
top: 0; |
|
26 |
left: 0; |
|
27 |
padding: 4px; |
|
28 |
} |
|
29 |
.datepicker-dropdown:before { |
|
30 |
content: ''; |
|
31 |
display: inline-block; |
|
32 |
border-left: 7px solid transparent; |
|
33 |
border-right: 7px solid transparent; |
|
34 |
border-bottom: 7px solid rgba(0, 0, 0, 0.15); |
|
35 |
border-top: 0; |
|
36 |
border-bottom-color: rgba(0, 0, 0, 0.2); |
|
37 |
position: absolute; |
|
38 |
} |
|
39 |
.datepicker-dropdown:after { |
|
40 |
content: ''; |
|
41 |
display: inline-block; |
|
42 |
border-left: 6px solid transparent; |
|
43 |
border-right: 6px solid transparent; |
|
44 |
border-bottom: 6px solid #fff; |
|
45 |
border-top: 0; |
|
46 |
position: absolute; |
|
47 |
} |
|
48 |
.datepicker-dropdown.datepicker-orient-left:before { |
|
49 |
left: 6px; |
|
50 |
} |
|
51 |
.datepicker-dropdown.datepicker-orient-left:after { |
|
52 |
left: 7px; |
|
53 |
} |
|
54 |
.datepicker-dropdown.datepicker-orient-right:before { |
|
55 |
right: 6px; |
|
56 |
} |
|
57 |
.datepicker-dropdown.datepicker-orient-right:after { |
|
58 |
right: 7px; |
|
59 |
} |
|
60 |
.datepicker-dropdown.datepicker-orient-bottom:before { |
|
61 |
top: -7px; |
|
62 |
} |
|
63 |
.datepicker-dropdown.datepicker-orient-bottom:after { |
|
64 |
top: -6px; |
|
65 |
} |
|
66 |
.datepicker-dropdown.datepicker-orient-top:before { |
|
67 |
bottom: -7px; |
|
68 |
border-bottom: 0; |
|
69 |
border-top: 7px solid rgba(0, 0, 0, 0.15); |
|
70 |
} |
|
71 |
.datepicker-dropdown.datepicker-orient-top:after { |
|
72 |
bottom: -6px; |
|
73 |
border-bottom: 0; |
|
74 |
border-top: 6px solid #fff; |
|
75 |
} |
|
76 |
.datepicker table { |
|
77 |
margin: 0; |
|
78 |
-webkit-touch-callout: none; |
|
79 |
-webkit-user-select: none; |
|
80 |
-khtml-user-select: none; |
|
81 |
-moz-user-select: none; |
|
82 |
-ms-user-select: none; |
|
83 |
user-select: none; |
|
84 |
} |
|
85 |
.datepicker table tr td, |
|
86 |
.datepicker table tr th { |
|
87 |
text-align: center; |
|
88 |
width: 35px; |
|
89 |
height: 30px; |
|
90 |
border-radius: 4px; |
|
91 |
border: none; |
|
92 |
} |
|
93 |
.table-striped .datepicker table tr td, |
|
94 |
.table-striped .datepicker table tr th { |
|
95 |
background-color: transparent; |
|
96 |
} |
|
97 |
.datepicker table tr td.old, |
|
98 |
.datepicker table tr td.new { |
|
99 |
color: #777777; |
|
100 |
} |
|
101 |
.datepicker table tr td.day:hover, |
|
102 |
.datepicker table tr td.focused { |
|
103 |
background: #004FB3; |
|
104 |
cursor: pointer; |
|
105 |
} |
|
106 |
.datepicker table tr td.disabled, |
|
107 |
.datepicker table tr td.disabled:hover { |
|
108 |
background: none; |
|
109 |
color: #77777740; |
|
110 |
cursor: default; |
|
111 |
} |
|
112 |
.datepicker table tr td.highlighted { |
|
113 |
color: #000; |
|
114 |
background-color: #d9edf7; |
|
115 |
border-color: #85c5e5; |
|
116 |
border-radius: 0; |
|
117 |
} |
|
118 |
.datepicker table tr td.highlighted:focus, |
|
119 |
.datepicker table tr td.highlighted.focus { |
|
120 |
color: #000; |
|
121 |
background-color: #afd9ee; |
|
122 |
border-color: #298fc2; |
|
123 |
} |
|
124 |
.datepicker table tr td.highlighted:hover { |
|
125 |
color: #000; |
|
126 |
background-color: #afd9ee; |
|
127 |
border-color: #52addb; |
|
128 |
} |
|
129 |
.datepicker table tr td.highlighted:active, |
|
130 |
.datepicker table tr td.highlighted.active { |
|
131 |
color: #000; |
|
132 |
background-color: #afd9ee; |
|
133 |
border-color: #52addb; |
|
134 |
} |
|
135 |
.datepicker table tr td.highlighted:active:hover, |
|
136 |
.datepicker table tr td.highlighted.active:hover, |
|
137 |
.datepicker table tr td.highlighted:active:focus, |
|
138 |
.datepicker table tr td.highlighted.active:focus, |
|
139 |
.datepicker table tr td.highlighted:active.focus, |
|
140 |
.datepicker table tr td.highlighted.active.focus { |
|
141 |
color: #000; |
|
142 |
background-color: #91cbe8; |
|
143 |
border-color: #298fc2; |
|
144 |
} |
|
145 |
.datepicker table tr td.highlighted.disabled:hover, |
|
146 |
.datepicker table tr td.highlighted[disabled]:hover, |
|
147 |
fieldset[disabled] .datepicker table tr td.highlighted:hover, |
|
148 |
.datepicker table tr td.highlighted.disabled:focus, |
|
149 |
.datepicker table tr td.highlighted[disabled]:focus, |
|
150 |
fieldset[disabled] .datepicker table tr td.highlighted:focus, |
|
151 |
.datepicker table tr td.highlighted.disabled.focus, |
|
152 |
.datepicker table tr td.highlighted[disabled].focus, |
|
153 |
fieldset[disabled] .datepicker table tr td.highlighted.focus { |
|
154 |
background-color: #d9edf7; |
|
155 |
border-color: #85c5e5; |
|
156 |
} |
|
157 |
.datepicker table tr td.highlighted.focused { |
|
158 |
background: #afd9ee; |
|
159 |
} |
|
160 |
.datepicker table tr td.highlighted.disabled, |
|
161 |
.datepicker table tr td.highlighted.disabled:active { |
|
162 |
background: #d9edf7; |
|
163 |
color: #777777; |
|
164 |
} |
|
165 |
.datepicker table tr td.today { |
|
166 |
color: #000; |
|
167 |
background-color: #ffdb99; |
|
168 |
border-color: #ffb733; |
|
169 |
} |
|
170 |
.datepicker table tr td.today:focus, |
|
171 |
.datepicker table tr td.today.focus { |
|
172 |
color: #000; |
|
173 |
background-color: #ffc966; |
|
174 |
border-color: #b37400; |
|
175 |
} |
|
176 |
.datepicker table tr td.today:hover { |
|
177 |
color: #000; |
|
178 |
background-color: #ffc966; |
|
179 |
border-color: #f59e00; |
|
180 |
} |
|
181 |
.datepicker table tr td.today:active, |
|
182 |
.datepicker table tr td.today.active { |
|
183 |
color: #000; |
|
184 |
background-color: #ffc966; |
|
185 |
border-color: #f59e00; |
|
186 |
} |
|
187 |
.datepicker table tr td.today:active:hover, |
|
188 |
.datepicker table tr td.today.active:hover, |
|
189 |
.datepicker table tr td.today:active:focus, |
|
190 |
.datepicker table tr td.today.active:focus, |
|
191 |
.datepicker table tr td.today:active.focus, |
|
192 |
.datepicker table tr td.today.active.focus { |
|
193 |
color: #000; |
|
194 |
background-color: #ffbc42; |
|
195 |
border-color: #b37400; |
|
196 |
} |
|
197 |
.datepicker table tr td.today.disabled:hover, |
|
198 |
.datepicker table tr td.today[disabled]:hover, |
|
199 |
fieldset[disabled] .datepicker table tr td.today:hover, |
|
200 |
.datepicker table tr td.today.disabled:focus, |
|
201 |
.datepicker table tr td.today[disabled]:focus, |
|
202 |
fieldset[disabled] .datepicker table tr td.today:focus, |
|
203 |
.datepicker table tr td.today.disabled.focus, |
|
204 |
.datepicker table tr td.today[disabled].focus, |
|
205 |
fieldset[disabled] .datepicker table tr td.today.focus { |
|
206 |
background-color: #ffdb99; |
|
207 |
border-color: #ffb733; |
|
208 |
} |
|
209 |
.datepicker table tr td.today.focused { |
|
210 |
background: #ffc966; |
|
211 |
} |
|
212 |
.datepicker table tr td.today.disabled, |
|
213 |
.datepicker table tr td.today.disabled:active { |
|
214 |
background: #ffdb99; |
|
215 |
color: #777777; |
|
216 |
} |
|
217 |
.datepicker table tr td.range { |
|
218 |
color: #000; |
|
219 |
background-color: #eeeeee; |
|
220 |
border-color: #bbbbbb; |
|
221 |
border-radius: 0; |
|
222 |
} |
|
223 |
.datepicker table tr td.range:focus, |
|
224 |
.datepicker table tr td.range.focus { |
|
225 |
color: #000; |
|
226 |
background-color: #d5d5d5; |
|
227 |
border-color: #7c7c7c; |
|
228 |
} |
|
229 |
.datepicker table tr td.range:hover { |
|
230 |
color: #000; |
|
231 |
background-color: #d5d5d5; |
|
232 |
border-color: #9d9d9d; |
|
233 |
} |
|
234 |
.datepicker table tr td.range:active, |
|
235 |
.datepicker table tr td.range.active { |
|
236 |
color: #000; |
|
237 |
background-color: #d5d5d5; |
|
238 |
border-color: #9d9d9d; |
|
239 |
} |
|
240 |
.datepicker table tr td.range:active:hover, |
|
241 |
.datepicker table tr td.range.active:hover, |
|
242 |
.datepicker table tr td.range:active:focus, |
|
243 |
.datepicker table tr td.range.active:focus, |
|
244 |
.datepicker table tr td.range:active.focus, |
|
245 |
.datepicker table tr td.range.active.focus { |
|
246 |
color: #000; |
|
247 |
background-color: #c3c3c3; |
|
248 |
border-color: #7c7c7c; |
|
249 |
} |
|
250 |
.datepicker table tr td.range.disabled:hover, |
|
251 |
.datepicker table tr td.range[disabled]:hover, |
|
252 |
fieldset[disabled] .datepicker table tr td.range:hover, |
|
253 |
.datepicker table tr td.range.disabled:focus, |
|
254 |
.datepicker table tr td.range[disabled]:focus, |
|
255 |
fieldset[disabled] .datepicker table tr td.range:focus, |
|
256 |
.datepicker table tr td.range.disabled.focus, |
|
257 |
.datepicker table tr td.range[disabled].focus, |
|
258 |
fieldset[disabled] .datepicker table tr td.range.focus { |
|
259 |
background-color: #eeeeee; |
|
260 |
border-color: #bbbbbb; |
|
261 |
} |
|
262 |
.datepicker table tr td.range.focused { |
|
263 |
background: #d5d5d5; |
|
264 |
} |
|
265 |
.datepicker table tr td.range.disabled, |
|
266 |
.datepicker table tr td.range.disabled:active { |
|
267 |
background: #eeeeee; |
|
268 |
color: #777777; |
|
269 |
} |
|
270 |
.datepicker table tr td.range.highlighted { |
|
271 |
color: #000; |
|
272 |
background-color: #e4eef3; |
|
273 |
border-color: #9dc1d3; |
|
274 |
} |
|
275 |
.datepicker table tr td.range.highlighted:focus, |
|
276 |
.datepicker table tr td.range.highlighted.focus { |
|
277 |
color: #000; |
|
278 |
background-color: #c1d7e3; |
|
279 |
border-color: #4b88a6; |
|
280 |
} |
|
281 |
.datepicker table tr td.range.highlighted:hover { |
|
282 |
color: #000; |
|
283 |
background-color: #c1d7e3; |
|
284 |
border-color: #73a6c0; |
|
285 |
} |
|
286 |
.datepicker table tr td.range.highlighted:active, |
|
287 |
.datepicker table tr td.range.highlighted.active { |
|
288 |
color: #000; |
|
289 |
background-color: #c1d7e3; |
|
290 |
border-color: #73a6c0; |
|
291 |
} |
|
292 |
.datepicker table tr td.range.highlighted:active:hover, |
|
293 |
.datepicker table tr td.range.highlighted.active:hover, |
|
294 |
.datepicker table tr td.range.highlighted:active:focus, |
|
295 |
.datepicker table tr td.range.highlighted.active:focus, |
|
296 |
.datepicker table tr td.range.highlighted:active.focus, |
|
297 |
.datepicker table tr td.range.highlighted.active.focus { |
|
298 |
color: #000; |
|
299 |
background-color: #a8c8d8; |
|
300 |
border-color: #4b88a6; |
|
301 |
} |
|
302 |
.datepicker table tr td.range.highlighted.disabled:hover, |
|
303 |
.datepicker table tr td.range.highlighted[disabled]:hover, |
|
304 |
fieldset[disabled] .datepicker table tr td.range.highlighted:hover, |
|
305 |
.datepicker table tr td.range.highlighted.disabled:focus, |
|
306 |
.datepicker table tr td.range.highlighted[disabled]:focus, |
|
307 |
fieldset[disabled] .datepicker table tr td.range.highlighted:focus, |
|
308 |
.datepicker table tr td.range.highlighted.disabled.focus, |
|
309 |
.datepicker table tr td.range.highlighted[disabled].focus, |
|
310 |
fieldset[disabled] .datepicker table tr td.range.highlighted.focus { |
|
311 |
background-color: #e4eef3; |
|
312 |
border-color: #9dc1d3; |
|
313 |
} |
|
314 |
.datepicker table tr td.range.highlighted.focused { |
|
315 |
background: #c1d7e3; |
|
316 |
} |
|
317 |
.datepicker table tr td.range.highlighted.disabled, |
|
318 |
.datepicker table tr td.range.highlighted.disabled:active { |
|
319 |
background: #e4eef3; |
|
320 |
color: #777777; |
|
321 |
} |
|
322 |
.datepicker table tr td.range.today { |
|
323 |
color: #000; |
|
324 |
background-color: #f7ca77; |
|
325 |
border-color: #f1a417; |
|
326 |
} |
|
327 |
.datepicker table tr td.range.today:focus, |
|
328 |
.datepicker table tr td.range.today.focus { |
|
329 |
color: #000; |
|
330 |
background-color: #f4b747; |
|
331 |
border-color: #815608; |
|
332 |
} |
|
333 |
.datepicker table tr td.range.today:hover { |
|
334 |
color: #000; |
|
335 |
background-color: #f4b747; |
|
336 |
border-color: #bf800c; |
|
337 |
} |
|
338 |
.datepicker table tr td.range.today:active, |
|
339 |
.datepicker table tr td.range.today.active { |
|
340 |
color: #000; |
|
341 |
background-color: #f4b747; |
|
342 |
border-color: #bf800c; |
|
343 |
} |
|
344 |
.datepicker table tr td.range.today:active:hover, |
|
345 |
.datepicker table tr td.range.today.active:hover, |
|
346 |
.datepicker table tr td.range.today:active:focus, |
|
347 |
.datepicker table tr td.range.today.active:focus, |
|
348 |
.datepicker table tr td.range.today:active.focus, |
|
349 |
.datepicker table tr td.range.today.active.focus { |
|
350 |
color: #000; |
|
351 |
background-color: #f2aa25; |
|
352 |
border-color: #815608; |
|
353 |
} |
|
354 |
.datepicker table tr td.range.today.disabled:hover, |
|
355 |
.datepicker table tr td.range.today[disabled]:hover, |
|
356 |
fieldset[disabled] .datepicker table tr td.range.today:hover, |
|
357 |
.datepicker table tr td.range.today.disabled:focus, |
|
358 |
.datepicker table tr td.range.today[disabled]:focus, |
|
359 |
fieldset[disabled] .datepicker table tr td.range.today:focus, |
|
360 |
.datepicker table tr td.range.today.disabled.focus, |
|
361 |
.datepicker table tr td.range.today[disabled].focus, |
|
362 |
fieldset[disabled] .datepicker table tr td.range.today.focus { |
|
363 |
background-color: #f7ca77; |
|
364 |
border-color: #f1a417; |
|
365 |
} |
|
366 |
.datepicker table tr td.range.today.disabled, |
|
367 |
.datepicker table tr td.range.today.disabled:active { |
|
368 |
background: #f7ca77; |
|
369 |
color: #777777; |
|
370 |
} |
|
371 |
.datepicker table tr td.selected, |
|
372 |
.datepicker table tr td.selected.highlighted { |
|
373 |
color: #fff; |
|
374 |
background-color: #777777; |
|
375 |
border-color: #555555; |
|
376 |
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); |
|
377 |
} |
|
378 |
.datepicker table tr td.selected:focus, |
|
379 |
.datepicker table tr td.selected.highlighted:focus, |
|
380 |
.datepicker table tr td.selected.focus, |
|
381 |
.datepicker table tr td.selected.highlighted.focus { |
|
382 |
color: #fff; |
|
383 |
background-color: #5e5e5e; |
|
384 |
border-color: #161616; |
|
385 |
} |
|
386 |
.datepicker table tr td.selected:hover, |
|
387 |
.datepicker table tr td.selected.highlighted:hover { |
|
388 |
color: #fff; |
|
389 |
background-color: #5e5e5e; |
|
390 |
border-color: #373737; |
|
391 |
} |
|
392 |
.datepicker table tr td.selected:active, |
|
393 |
.datepicker table tr td.selected.highlighted:active, |
|
394 |
.datepicker table tr td.selected.active, |
|
395 |
.datepicker table tr td.selected.highlighted.active { |
|
396 |
color: #fff; |
|
397 |
background-color: #5e5e5e; |
|
398 |
border-color: #373737; |
|
399 |
} |
|
400 |
.datepicker table tr td.selected:active:hover, |
|
401 |
.datepicker table tr td.selected.highlighted:active:hover, |
|
402 |
.datepicker table tr td.selected.active:hover, |
|
403 |
.datepicker table tr td.selected.highlighted.active:hover, |
|
404 |
.datepicker table tr td.selected:active:focus, |
|
405 |
.datepicker table tr td.selected.highlighted:active:focus, |
|
406 |
.datepicker table tr td.selected.active:focus, |
|
407 |
.datepicker table tr td.selected.highlighted.active:focus, |
|
408 |
.datepicker table tr td.selected:active.focus, |
|
409 |
.datepicker table tr td.selected.highlighted:active.focus, |
|
410 |
.datepicker table tr td.selected.active.focus, |
|
411 |
.datepicker table tr td.selected.highlighted.active.focus { |
|
412 |
color: #fff; |
|
413 |
background-color: #4c4c4c; |
|
414 |
border-color: #161616; |
|
415 |
} |
|
416 |
.datepicker table tr td.selected.disabled:hover, |
|
417 |
.datepicker table tr td.selected.highlighted.disabled:hover, |
|
418 |
.datepicker table tr td.selected[disabled]:hover, |
|
419 |
.datepicker table tr td.selected.highlighted[disabled]:hover, |
|
420 |
fieldset[disabled] .datepicker table tr td.selected:hover, |
|
421 |
fieldset[disabled] .datepicker table tr td.selected.highlighted:hover, |
|
422 |
.datepicker table tr td.selected.disabled:focus, |
|
423 |
.datepicker table tr td.selected.highlighted.disabled:focus, |
|
424 |
.datepicker table tr td.selected[disabled]:focus, |
|
425 |
.datepicker table tr td.selected.highlighted[disabled]:focus, |
|
426 |
fieldset[disabled] .datepicker table tr td.selected:focus, |
|
427 |
fieldset[disabled] .datepicker table tr td.selected.highlighted:focus, |
|
428 |
.datepicker table tr td.selected.disabled.focus, |
|
429 |
.datepicker table tr td.selected.highlighted.disabled.focus, |
|
430 |
.datepicker table tr td.selected[disabled].focus, |
|
431 |
.datepicker table tr td.selected.highlighted[disabled].focus, |
|
432 |
fieldset[disabled] .datepicker table tr td.selected.focus, |
|
433 |
fieldset[disabled] .datepicker table tr td.selected.highlighted.focus { |
|
434 |
background-color: #777777; |
|
435 |
border-color: #555555; |
|
436 |
} |
|
437 |
.datepicker table tr td.active, |
|
438 |
.datepicker table tr td.active.highlighted { |
|
439 |
color: #fff; |
|
440 |
background-color: #337ab7; |
|
441 |
border-color: #2e6da4; |
|
442 |
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); |
|
443 |
} |
|
444 |
.datepicker table tr td.active:focus, |
|
445 |
.datepicker table tr td.active.highlighted:focus, |
|
446 |
.datepicker table tr td.active.focus, |
|
447 |
.datepicker table tr td.active.highlighted.focus { |
|
448 |
color: #fff; |
|
449 |
background-color: #286090; |
|
450 |
border-color: #122b40; |
|
451 |
} |
|
452 |
.datepicker table tr td.active:hover, |
|
453 |
.datepicker table tr td.active.highlighted:hover { |
|
454 |
color: #fff; |
|
455 |
background-color: #286090; |
|
456 |
border-color: #204d74; |
|
457 |
} |
|
458 |
.datepicker table tr td.active:active, |
|
459 |
.datepicker table tr td.active.highlighted:active, |
|
460 |
.datepicker table tr td.active.active, |
|
461 |
.datepicker table tr td.active.highlighted.active { |
|
462 |
color: #fff; |
|
463 |
background-color: #0B155A; |
|
464 |
border-color: #204d74; |
|
465 |
} |
|
466 |
.datepicker table tr td.active:active:hover, |
|
467 |
.datepicker table tr td.active.highlighted:active:hover, |
|
468 |
.datepicker table tr td.active.active:hover, |
|
469 |
.datepicker table tr td.active.highlighted.active:hover, |
|
470 |
.datepicker table tr td.active:active:focus, |
|
471 |
.datepicker table tr td.active.highlighted:active:focus, |
|
472 |
.datepicker table tr td.active.active:focus, |
|
473 |
.datepicker table tr td.active.highlighted.active:focus, |
|
474 |
.datepicker table tr td.active:active.focus, |
|
475 |
.datepicker table tr td.active.highlighted:active.focus, |
|
476 |
.datepicker table tr td.active.active.focus, |
|
477 |
.datepicker table tr td.active.highlighted.active.focus { |
|
478 |
color: #fff; |
|
479 |
background-color: #004FB3; |
|
480 |
border-color: #122b40; |
|
481 |
} |
|
482 |
.datepicker table tr td.active.disabled:hover, |
|
483 |
.datepicker table tr td.active.highlighted.disabled:hover, |
|
484 |
.datepicker table tr td.active[disabled]:hover, |
|
485 |
.datepicker table tr td.active.highlighted[disabled]:hover, |
|
486 |
fieldset[disabled] .datepicker table tr td.active:hover, |
|
487 |
fieldset[disabled] .datepicker table tr td.active.highlighted:hover, |
|
488 |
.datepicker table tr td.active.disabled:focus, |
|
489 |
.datepicker table tr td.active.highlighted.disabled:focus, |
|
490 |
.datepicker table tr td.active[disabled]:focus, |
|
491 |
.datepicker table tr td.active.highlighted[disabled]:focus, |
|
492 |
fieldset[disabled] .datepicker table tr td.active:focus, |
|
493 |
fieldset[disabled] .datepicker table tr td.active.highlighted:focus, |
|
494 |
.datepicker table tr td.active.disabled.focus, |
|
495 |
.datepicker table tr td.active.highlighted.disabled.focus, |
|
496 |
.datepicker table tr td.active[disabled].focus, |
|
497 |
.datepicker table tr td.active.highlighted[disabled].focus, |
|
498 |
fieldset[disabled] .datepicker table tr td.active.focus, |
|
499 |
fieldset[disabled] .datepicker table tr td.active.highlighted.focus { |
|
500 |
background-color: #337ab7; |
|
501 |
border-color: #2e6da4; |
|
502 |
} |
|
503 |
.datepicker table tr td span { |
|
504 |
display: block; |
|
505 |
width: 23%; |
|
506 |
height: 54px; |
|
507 |
line-height: 54px; |
|
508 |
float: left; |
|
509 |
margin: 1%; |
|
510 |
cursor: pointer; |
|
511 |
border-radius: 4px; |
|
512 |
} |
|
513 |
.datepicker table tr td span:hover, |
|
514 |
.datepicker table tr td span.focused { |
|
515 |
background: #004FB3; |
|
516 |
} |
|
517 |
.datepicker table tr td span.disabled, |
|
518 |
.datepicker table tr td span.disabled:hover { |
|
519 |
background: none; |
|
520 |
color: #777777; |
|
521 |
cursor: default; |
|
522 |
} |
|
523 |
.datepicker table tr td span.active, |
|
524 |
.datepicker table tr td span.active:hover, |
|
525 |
.datepicker table tr td span.active.disabled, |
|
526 |
.datepicker table tr td span.active.disabled:hover { |
|
527 |
color: #fff; |
|
528 |
background-color: #337ab7; |
|
529 |
border-color: #2e6da4; |
|
530 |
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); |
|
531 |
} |
|
532 |
.datepicker table tr td span.active:focus, |
|
533 |
.datepicker table tr td span.active:hover:focus, |
|
534 |
.datepicker table tr td span.active.disabled:focus, |
|
535 |
.datepicker table tr td span.active.disabled:hover:focus, |
|
536 |
.datepicker table tr td span.active.focus, |
|
537 |
.datepicker table tr td span.active:hover.focus, |
|
538 |
.datepicker table tr td span.active.disabled.focus, |
|
539 |
.datepicker table tr td span.active.disabled:hover.focus { |
|
540 |
color: #fff; |
|
541 |
background-color: #286090; |
|
542 |
border-color: #122b40; |
|
543 |
} |
|
544 |
.datepicker table tr td span.active:hover, |
|
545 |
.datepicker table tr td span.active:hover:hover, |
|
546 |
.datepicker table tr td span.active.disabled:hover, |
|
547 |
.datepicker table tr td span.active.disabled:hover:hover { |
|
548 |
color: #fff; |
|
549 |
background-color: #286090; |
|
550 |
border-color: #204d74; |
|
551 |
} |
|
552 |
.datepicker table tr td span.active:active, |
|
553 |
.datepicker table tr td span.active:hover:active, |
|
554 |
.datepicker table tr td span.active.disabled:active, |
|
555 |
.datepicker table tr td span.active.disabled:hover:active, |
|
556 |
.datepicker table tr td span.active.active, |
|
557 |
.datepicker table tr td span.active:hover.active, |
|
558 |
.datepicker table tr td span.active.disabled.active, |
|
559 |
.datepicker table tr td span.active.disabled:hover.active { |
|
560 |
color: #fff; |
|
561 |
background-color: #286090; |
|
562 |
border-color: #204d74; |
|
563 |
} |
|
564 |
.datepicker table tr td span.active:active:hover, |
|
565 |
.datepicker table tr td span.active:hover:active:hover, |
|
566 |
.datepicker table tr td span.active.disabled:active:hover, |
|
567 |
.datepicker table tr td span.active.disabled:hover:active:hover, |
|
568 |
.datepicker table tr td span.active.active:hover, |
|
569 |
.datepicker table tr td span.active:hover.active:hover, |
|
570 |
.datepicker table tr td span.active.disabled.active:hover, |
|
571 |
.datepicker table tr td span.active.disabled:hover.active:hover, |
|
572 |
.datepicker table tr td span.active:active:focus, |
|
573 |
.datepicker table tr td span.active:hover:active:focus, |
|
574 |
.datepicker table tr td span.active.disabled:active:focus, |
|
575 |
.datepicker table tr td span.active.disabled:hover:active:focus, |
|
576 |
.datepicker table tr td span.active.active:focus, |
|
577 |
.datepicker table tr td span.active:hover.active:focus, |
|
578 |
.datepicker table tr td span.active.disabled.active:focus, |
|
579 |
.datepicker table tr td span.active.disabled:hover.active:focus, |
|
580 |
.datepicker table tr td span.active:active.focus, |
|
581 |
.datepicker table tr td span.active:hover:active.focus, |
|
582 |
.datepicker table tr td span.active.disabled:active.focus, |
|
583 |
.datepicker table tr td span.active.disabled:hover:active.focus, |
|
584 |
.datepicker table tr td span.active.active.focus, |
|
585 |
.datepicker table tr td span.active:hover.active.focus, |
|
586 |
.datepicker table tr td span.active.disabled.active.focus, |
|
587 |
.datepicker table tr td span.active.disabled:hover.active.focus { |
|
588 |
color: #fff; |
|
589 |
background-color: #204d74; |
|
590 |
border-color: #122b40; |
|
591 |
} |
|
592 |
.datepicker table tr td span.active.disabled:hover, |
|
593 |
.datepicker table tr td span.active:hover.disabled:hover, |
|
594 |
.datepicker table tr td span.active.disabled.disabled:hover, |
|
595 |
.datepicker table tr td span.active.disabled:hover.disabled:hover, |
|
596 |
.datepicker table tr td span.active[disabled]:hover, |
|
597 |
.datepicker table tr td span.active:hover[disabled]:hover, |
|
598 |
.datepicker table tr td span.active.disabled[disabled]:hover, |
|
599 |
.datepicker table tr td span.active.disabled:hover[disabled]:hover, |
|
600 |
fieldset[disabled] .datepicker table tr td span.active:hover, |
|
601 |
fieldset[disabled] .datepicker table tr td span.active:hover:hover, |
|
602 |
fieldset[disabled] .datepicker table tr td span.active.disabled:hover, |
|
603 |
fieldset[disabled] .datepicker table tr td span.active.disabled:hover:hover, |
|
604 |
.datepicker table tr td span.active.disabled:focus, |
|
605 |
.datepicker table tr td span.active:hover.disabled:focus, |
|
606 |
.datepicker table tr td span.active.disabled.disabled:focus, |
|
607 |
.datepicker table tr td span.active.disabled:hover.disabled:focus, |
|
608 |
.datepicker table tr td span.active[disabled]:focus, |
|
609 |
.datepicker table tr td span.active:hover[disabled]:focus, |
|
610 |
.datepicker table tr td span.active.disabled[disabled]:focus, |
|
611 |
.datepicker table tr td span.active.disabled:hover[disabled]:focus, |
|
612 |
fieldset[disabled] .datepicker table tr td span.active:focus, |
|
613 |
fieldset[disabled] .datepicker table tr td span.active:hover:focus, |
|
614 |
fieldset[disabled] .datepicker table tr td span.active.disabled:focus, |
|
615 |
fieldset[disabled] .datepicker table tr td span.active.disabled:hover:focus, |
|
616 |
.datepicker table tr td span.active.disabled.focus, |
|
617 |
.datepicker table tr td span.active:hover.disabled.focus, |
|
618 |
.datepicker table tr td span.active.disabled.disabled.focus, |
|
619 |
.datepicker table tr td span.active.disabled:hover.disabled.focus, |
|
620 |
.datepicker table tr td span.active[disabled].focus, |
|
621 |
.datepicker table tr td span.active:hover[disabled].focus, |
|
622 |
.datepicker table tr td span.active.disabled[disabled].focus, |
|
623 |
.datepicker table tr td span.active.disabled:hover[disabled].focus, |
|
624 |
fieldset[disabled] .datepicker table tr td span.active.focus, |
|
625 |
fieldset[disabled] .datepicker table tr td span.active:hover.focus, |
|
626 |
fieldset[disabled] .datepicker table tr td span.active.disabled.focus, |
|
627 |
fieldset[disabled] .datepicker table tr td span.active.disabled:hover.focus { |
|
628 |
background-color: #337ab7; |
|
629 |
border-color: #2e6da4; |
|
630 |
} |
|
631 |
.datepicker table tr td span.old, |
|
632 |
.datepicker table tr td span.new { |
|
633 |
color: #777777; |
|
634 |
} |
|
635 |
.datepicker .datepicker-switch { |
|
636 |
width: 145px; |
|
637 |
} |
|
638 |
.datepicker .datepicker-switch, |
|
639 |
.datepicker .prev, |
|
640 |
.datepicker .next, |
|
641 |
.datepicker tfoot tr th { |
|
642 |
cursor: pointer; |
|
643 |
} |
|
644 |
.datepicker .datepicker-switch:hover, |
|
645 |
.datepicker .prev:hover, |
|
646 |
.datepicker .next:hover, |
|
647 |
.datepicker tfoot tr th:hover { |
|
648 |
background: #eeeeee; |
|
649 |
} |
|
650 |
.datepicker .prev.disabled, |
|
651 |
.datepicker .next.disabled { |
|
652 |
visibility: hidden; |
|
653 |
} |
|
654 |
.datepicker .cw { |
|
655 |
font-size: 10px; |
|
656 |
width: 12px; |
|
657 |
padding: 0 2px 0 5px; |
|
658 |
vertical-align: middle; |
|
659 |
} |
|
660 |
.input-group.date .input-group-addon { |
|
661 |
cursor: pointer; |
|
662 |
} |
|
663 |
.input-daterange { |
|
664 |
width: 100%; |
|
665 |
} |
|
666 |
.input-daterange input { |
|
667 |
text-align: center; |
|
668 |
} |
|
669 |
.input-daterange input:first-child { |
|
670 |
border-radius: 3px 0 0 3px; |
|
671 |
} |
|
672 |
.input-daterange input:last-child { |
|
673 |
border-radius: 0 3px 3px 0; |
|
674 |
} |
|
675 |
.input-daterange .input-group-addon { |
|
676 |
width: auto; |
|
677 |
min-width: 16px; |
|
678 |
padding: 4px 5px; |
|
679 |
line-height: 1.42857143; |
|
680 |
border-width: 1px 0; |
|
681 |
margin-left: -5px; |
|
682 |
margin-right: -5px; |
|
683 |
} |
|
684 |
.day { |
|
685 |
color: #fff; |
|
686 |
background-color: #0048A9; |
|
687 |
border-color: #122b40; |
|
688 |
} |
website/public/js/bootstrap-datepicker.cs.min.js | ||
---|---|---|
1 |
!function(a){a.fn.datepicker.dates.cs={days:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"],daysShort:["Ned","Pon","Úte","Stř","Čtv","Pát","Sob"],daysMin:["Ne","Po","Út","St","Čt","Pá","So"],months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],monthsShort:["Led","Úno","Bře","Dub","Kvě","Čer","Čnc","Srp","Zář","Říj","Lis","Pro"],today:"Dnes",clear:"Vymazat",monthsTitle:"Měsíc",weekStart:1,format:"dd.mm.yyyy"}}(jQuery); |
website/public/js/bootstrap-datepicker.min.js | ||
---|---|---|
1 |
/*! |
|
2 |
* Datepicker for Bootstrap v1.9.0 (https://github.com/uxsolutions/bootstrap-datepicker) |
|
3 |
* |
|
4 |
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0) |
|
5 |
*/ |
|
6 |
|
|
7 |
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a,b){function c(){return new Date(Date.UTC.apply(Date,arguments))}function d(){var a=new Date;return c(a.getFullYear(),a.getMonth(),a.getDate())}function e(a,b){return a.getUTCFullYear()===b.getUTCFullYear()&&a.getUTCMonth()===b.getUTCMonth()&&a.getUTCDate()===b.getUTCDate()}function f(c,d){return function(){return d!==b&&a.fn.datepicker.deprecated(d),this[c].apply(this,arguments)}}function g(a){return a&&!isNaN(a.getTime())}function h(b,c){function d(a,b){return b.toLowerCase()}var e,f=a(b).data(),g={},h=new RegExp("^"+c.toLowerCase()+"([A-Z])");c=new RegExp("^"+c.toLowerCase());for(var i in f)c.test(i)&&(e=i.replace(h,d),g[e]=f[i]);return g}function i(b){var c={};if(q[b]||(b=b.split("-")[0],q[b])){var d=q[b];return a.each(p,function(a,b){b in d&&(c[b]=d[b])}),c}}var j=function(){var b={get:function(a){return this.slice(a)[0]},contains:function(a){for(var b=a&&a.valueOf(),c=0,d=this.length;c<d;c++)if(0<=this[c].valueOf()-b&&this[c].valueOf()-b<864e5)return c;return-1},remove:function(a){this.splice(a,1)},replace:function(b){b&&(a.isArray(b)||(b=[b]),this.clear(),this.push.apply(this,b))},clear:function(){this.length=0},copy:function(){var a=new j;return a.replace(this),a}};return function(){var c=[];return c.push.apply(c,arguments),a.extend(c,b),c}}(),k=function(b,c){a.data(b,"datepicker",this),this._events=[],this._secondaryEvents=[],this._process_options(c),this.dates=new j,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=a(b),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn"),this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=a(r.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(a,b){return Number(b)+1}),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()};k.prototype={constructor:k,_resolveViewName:function(b){return a.each(r.viewModes,function(c,d){if(b===c||-1!==a.inArray(b,d.names))return b=c,!1}),b},_resolveDaysOfWeek:function(b){return a.isArray(b)||(b=b.split(/[,\s]*/)),a.map(b,Number)},_check_template:function(c){try{if(c===b||""===c)return!1;if((c.match(/[<>]/g)||[]).length<=0)return!0;return a(c).length>0}catch(a){return!1}},_process_options:function(b){this._o=a.extend({},this._o,b);var e=this.o=a.extend({},this._o),f=e.language;q[f]||(f=f.split("-")[0],q[f]||(f=o.language)),e.language=f,e.startView=this._resolveViewName(e.startView),e.minViewMode=this._resolveViewName(e.minViewMode),e.maxViewMode=this._resolveViewName(e.maxViewMode),e.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,e.startView)),!0!==e.multidate&&(e.multidate=Number(e.multidate)||!1,!1!==e.multidate&&(e.multidate=Math.max(0,e.multidate))),e.multidateSeparator=String(e.multidateSeparator),e.weekStart%=7,e.weekEnd=(e.weekStart+6)%7;var g=r.parseFormat(e.format);e.startDate!==-1/0&&(e.startDate?e.startDate instanceof Date?e.startDate=this._local_to_utc(this._zero_time(e.startDate)):e.startDate=r.parseDate(e.startDate,g,e.language,e.assumeNearbyYear):e.startDate=-1/0),e.endDate!==1/0&&(e.endDate?e.endDate instanceof Date?e.endDate=this._local_to_utc(this._zero_time(e.endDate)):e.endDate=r.parseDate(e.endDate,g,e.language,e.assumeNearbyYear):e.endDate=1/0),e.daysOfWeekDisabled=this._resolveDaysOfWeek(e.daysOfWeekDisabled||[]),e.daysOfWeekHighlighted=this._resolveDaysOfWeek(e.daysOfWeekHighlighted||[]),e.datesDisabled=e.datesDisabled||[],a.isArray(e.datesDisabled)||(e.datesDisabled=e.datesDisabled.split(",")),e.datesDisabled=a.map(e.datesDisabled,function(a){return r.parseDate(a,g,e.language,e.assumeNearbyYear)});var h=String(e.orientation).toLowerCase().split(/\s+/g),i=e.orientation.toLowerCase();if(h=a.grep(h,function(a){return/^auto|left|right|top|bottom$/.test(a)}),e.orientation={x:"auto",y:"auto"},i&&"auto"!==i)if(1===h.length)switch(h[0]){case"top":case"bottom":e.orientation.y=h[0];break;case"left":case"right":e.orientation.x=h[0]}else i=a.grep(h,function(a){return/^left|right$/.test(a)}),e.orientation.x=i[0]||"auto",i=a.grep(h,function(a){return/^top|bottom$/.test(a)}),e.orientation.y=i[0]||"auto";else;if(e.defaultViewDate instanceof Date||"string"==typeof e.defaultViewDate)e.defaultViewDate=r.parseDate(e.defaultViewDate,g,e.language,e.assumeNearbyYear);else if(e.defaultViewDate){var j=e.defaultViewDate.year||(new Date).getFullYear(),k=e.defaultViewDate.month||0,l=e.defaultViewDate.day||1;e.defaultViewDate=c(j,k,l)}else e.defaultViewDate=d()},_applyEvents:function(a){for(var c,d,e,f=0;f<a.length;f++)c=a[f][0],2===a[f].length?(d=b,e=a[f][1]):3===a[f].length&&(d=a[f][1],e=a[f][2]),c.on(e,d)},_unapplyEvents:function(a){for(var c,d,e,f=0;f<a.length;f++)c=a[f][0],2===a[f].length?(e=b,d=a[f][1]):3===a[f].length&&(e=a[f][1],d=a[f][2]),c.off(d,e)},_buildEvents:function(){var b={keyup:a.proxy(function(b){-1===a.inArray(b.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:a.proxy(this.keydown,this),paste:a.proxy(this.paste,this)};!0===this.o.showOnFocus&&(b.focus=a.proxy(this.show,this)),this.isInput?this._events=[[this.element,b]]:this.component&&this.inputField.length?this._events=[[this.inputField,b],[this.component,{click:a.proxy(this.show,this)}]]:this._events=[[this.element,{click:a.proxy(this.show,this),keydown:a.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:a.proxy(function(a){this._focused_from=a.target},this)}],[this.element,{blur:a.proxy(function(a){this._focused_from=a.target},this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":a.proxy(function(a){this.update(a.date)},this)}]),this._secondaryEvents=[[this.picker,{click:a.proxy(this.click,this)}],[this.picker,".prev, .next",{click:a.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:a.proxy(this.dayCellClick,this)}],[a(window),{resize:a.proxy(this.place,this)}],[a(document),{"mousedown touchstart":a.proxy(function(a){this.element.is(a.target)||this.element.find(a.target).length||this.picker.is(a.target)||this.picker.find(a.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(b,c){var d=c||this.dates.get(-1),e=this._utc_to_local(d);this.element.trigger({type:b,date:e,viewMode:this.viewMode,dates:a.map(this.dates,this._utc_to_local),format:a.proxy(function(a,b){0===arguments.length?(a=this.dates.length-1,b=this.o.format):"string"==typeof a&&(b=a,a=this.dates.length-1),b=b||this.o.format;var c=this.dates.get(a);return r.formatDate(c,b,this.o.language)},this)})},show:function(){if(!(this.inputField.is(":disabled")||this.inputField.prop("readonly")&&!1===this.o.enableOnReadonly))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&a(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide"),this)},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(b){var c;if(b.originalEvent.clipboardData&&b.originalEvent.clipboardData.types&&-1!==a.inArray("text/plain",b.originalEvent.clipboardData.types))c=b.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;c=window.clipboardData.getData("Text")}this.setDate(c),this.update(),b.preventDefault()},_utc_to_local:function(a){if(!a)return a;var b=new Date(a.getTime()+6e4*a.getTimezoneOffset());return b.getTimezoneOffset()!==a.getTimezoneOffset()&&(b=new Date(a.getTime()+6e4*b.getTimezoneOffset())),b},_local_to_utc:function(a){return a&&new Date(a.getTime()-6e4*a.getTimezoneOffset())},_zero_time:function(a){return a&&new Date(a.getFullYear(),a.getMonth(),a.getDate())},_zero_utc_time:function(a){return a&&c(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate())},getDates:function(){return a.map(this.dates,this._utc_to_local)},getUTCDates:function(){return a.map(this.dates,function(a){return new Date(a)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var a=this.dates.get(-1);return a!==b?new Date(a):null},clearDates:function(){this.inputField.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var b=a.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,b),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var b=a.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,a.map(b,this._utc_to_local)),this},setDate:f("setDates"),setUTCDate:f("setUTCDates"),remove:f("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var a=this.getFormattedDate();return this.inputField.val(a),this},getFormattedDate:function(c){c===b&&(c=this.o.format);var d=this.o.language;return a.map(this.dates,function(a){return r.formatDate(a,c,d)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(a){return this._process_options({startDate:a}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(a){return this._process_options({endDate:a}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(a){return this._process_options({daysOfWeekDisabled:a}),this.update(),this},setDaysOfWeekHighlighted:function(a){return this._process_options({daysOfWeekHighlighted:a}),this.update(),this},setDatesDisabled:function(a){return this._process_options({datesDisabled:a}),this.update(),this},place:function(){if(this.isInline)return this;var b=this.picker.outerWidth(),c=this.picker.outerHeight(),d=a(this.o.container),e=d.width(),f="body"===this.o.container?a(document).scrollTop():d.scrollTop(),g=d.offset(),h=[0];this.element.parents().each(function(){var b=a(this).css("z-index");"auto"!==b&&0!==Number(b)&&h.push(Number(b))});var i=Math.max.apply(Math,h)+this.o.zIndexOffset,j=this.component?this.component.parent().offset():this.element.offset(),k=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),l=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),m=j.left-g.left,n=j.top-g.top;"body"!==this.o.container&&(n+=f),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(m-=b-l)):j.left<0?(this.picker.addClass("datepicker-orient-left"),m-=j.left-10):m+b>e?(this.picker.addClass("datepicker-orient-right"),m+=l-b):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var o,p=this.o.orientation.y;if("auto"===p&&(o=-f+n-c,p=o<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+p),"top"===p?n-=c+parseInt(this.picker.css("padding-top")):n+=k,this.o.rtl){var q=e-(m+l);this.picker.css({top:n,right:q,zIndex:i})}else this.picker.css({top:n,left:m,zIndex:i});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var b=this.dates.copy(),c=[],d=!1;return arguments.length?(a.each(arguments,a.proxy(function(a,b){b instanceof Date&&(b=this._local_to_utc(b)),c.push(b)},this)),d=!0):(c=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),c=c&&this.o.multidate?c.split(this.o.multidateSeparator):[c],delete this.element.data().date),c=a.map(c,a.proxy(function(a){return r.parseDate(a,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),c=a.grep(c,a.proxy(function(a){return!this.dateWithinRange(a)||!a},this),!0),this.dates.replace(c),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),d?(this.setValue(),this.element.change()):this.dates.length&&String(b)!==String(this.dates)&&d&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&b.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var b=this.o.weekStart,c="<tr>";for(this.o.calendarWeeks&&(c+='<th class="cw"> </th>');b<this.o.weekStart+7;)c+='<th class="dow',-1!==a.inArray(b,this.o.daysOfWeekDisabled)&&(c+=" disabled"),c+='">'+q[this.o.language].daysMin[b++%7]+"</th>";c+="</tr>",this.picker.find(".datepicker-days thead").append(c)}},fillMonths:function(){for(var a,b=this._utc_to_local(this.viewDate),c="",d=0;d<12;d++)a=b&&b.getMonth()===d?" focused":"",c+='<span class="month'+a+'">'+q[this.o.language].monthsShort[d]+"</span>";this.picker.find(".datepicker-months td").html(c)},setRange:function(b){b&&b.length?this.range=a.map(b,function(a){return a.valueOf()}):delete this.range,this.fill()},getClassNames:function(b){var c=[],f=this.viewDate.getUTCFullYear(),g=this.viewDate.getUTCMonth(),h=d();return b.getUTCFullYear()<f||b.getUTCFullYear()===f&&b.getUTCMonth()<g?c.push("old"):(b.getUTCFullYear()>f||b.getUTCFullYear()===f&&b.getUTCMonth()>g)&&c.push("new"),this.focusDate&&b.valueOf()===this.focusDate.valueOf()&&c.push("focused"),this.o.todayHighlight&&e(b,h)&&c.push("today"),-1!==this.dates.contains(b)&&c.push("active"),this.dateWithinRange(b)||c.push("disabled"),this.dateIsDisabled(b)&&c.push("disabled","disabled-date"),-1!==a.inArray(b.getUTCDay(),this.o.daysOfWeekHighlighted)&&c.push("highlighted"),this.range&&(b>this.range[0]&&b<this.range[this.range.length-1]&&c.push("range"),-1!==a.inArray(b.valueOf(),this.range)&&c.push("selected"),b.valueOf()===this.range[0]&&c.push("range-start"),b.valueOf()===this.range[this.range.length-1]&&c.push("range-end")),c},_fill_yearsView:function(c,d,e,f,g,h,i){for(var j,k,l,m="",n=e/10,o=this.picker.find(c),p=Math.floor(f/e)*e,q=p+9*n,r=Math.floor(this.viewDate.getFullYear()/n)*n,s=a.map(this.dates,function(a){return Math.floor(a.getUTCFullYear()/n)*n}),t=p-n;t<=q+n;t+=n)j=[d],k=null,t===p-n?j.push("old"):t===q+n&&j.push("new"),-1!==a.inArray(t,s)&&j.push("active"),(t<g||t>h)&&j.push("disabled"),t===r&&j.push("focused"),i!==a.noop&&(l=i(new Date(t,0,1)),l===b?l={}:"boolean"==typeof l?l={enabled:l}:"string"==typeof l&&(l={classes:l}),!1===l.enabled&&j.push("disabled"),l.classes&&(j=j.concat(l.classes.split(/\s+/))),l.tooltip&&(k=l.tooltip)),m+='<span class="'+j.join(" ")+'"'+(k?' title="'+k+'"':"")+">"+t+"</span>";o.find(".datepicker-switch").text(p+"-"+q),o.find("td").html(m)},fill:function(){var e,f,g=new Date(this.viewDate),h=g.getUTCFullYear(),i=g.getUTCMonth(),j=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,k=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,m=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,n=q[this.o.language].today||q.en.today||"",o=q[this.o.language].clear||q.en.clear||"",p=q[this.o.language].titleFormat||q.en.titleFormat,s=d(),t=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&s>=this.o.startDate&&s<=this.o.endDate&&!this.weekOfDateIsDisabled(s);if(!isNaN(h)&&!isNaN(i)){this.picker.find(".datepicker-days .datepicker-switch").text(r.formatDate(g,p,this.o.language)),this.picker.find("tfoot .today").text(n).css("display",t?"table-cell":"none"),this.picker.find("tfoot .clear").text(o).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var u=c(h,i,0),v=u.getUTCDate();u.setUTCDate(v-(u.getUTCDay()-this.o.weekStart+7)%7);var w=new Date(u);u.getUTCFullYear()<100&&w.setUTCFullYear(u.getUTCFullYear()),w.setUTCDate(w.getUTCDate()+42),w=w.valueOf();for(var x,y,z=[];u.valueOf()<w;){if((x=u.getUTCDay())===this.o.weekStart&&(z.push("<tr>"),this.o.calendarWeeks)){var A=new Date(+u+(this.o.weekStart-x-7)%7*864e5),B=new Date(Number(A)+(11-A.getUTCDay())%7*864e5),C=new Date(Number(C=c(B.getUTCFullYear(),0,1))+(11-C.getUTCDay())%7*864e5),D=(B-C)/864e5/7+1;z.push('<td class="cw">'+D+"</td>")}y=this.getClassNames(u),y.push("day");var E=u.getUTCDate();this.o.beforeShowDay!==a.noop&&(f=this.o.beforeShowDay(this._utc_to_local(u)),f===b?f={}:"boolean"==typeof f?f={enabled:f}:"string"==typeof f&&(f={classes:f}),!1===f.enabled&&y.push("disabled"),f.classes&&(y=y.concat(f.classes.split(/\s+/))),f.tooltip&&(e=f.tooltip),f.content&&(E=f.content)),y=a.isFunction(a.uniqueSort)?a.uniqueSort(y):a.unique(y),z.push('<td class="'+y.join(" ")+'"'+(e?' title="'+e+'"':"")+' data-date="'+u.getTime().toString()+'">'+E+"</td>"),e=null,x===this.o.weekEnd&&z.push("</tr>"),u.setUTCDate(u.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(z.join(""));var F=q[this.o.language].monthsTitle||q.en.monthsTitle||"Months",G=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?F:h).end().find("tbody span").removeClass("active");if(a.each(this.dates,function(a,b){b.getUTCFullYear()===h&&G.eq(b.getUTCMonth()).addClass("active")}),(h<j||h>l)&&G.addClass("disabled"),h===j&&G.slice(0,k).addClass("disabled"),h===l&&G.slice(m+1).addClass("disabled"),this.o.beforeShowMonth!==a.noop){var H=this;a.each(G,function(c,d){var e=new Date(h,c,1),f=H.o.beforeShowMonth(e);f===b?f={}:"boolean"==typeof f?f={enabled:f}:"string"==typeof f&&(f={classes:f}),!1!==f.enabled||a(d).hasClass("disabled")||a(d).addClass("disabled"),f.classes&&a(d).addClass(f.classes),f.tooltip&&a(d).prop("title",f.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,h,j,l,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,h,j,l,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,h,j,l,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var a,b,c=new Date(this.viewDate),d=c.getUTCFullYear(),e=c.getUTCMonth(),f=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,g=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,i=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,j=1;switch(this.viewMode){case 4:j*=10;case 3:j*=10;case 2:j*=10;case 1:a=Math.floor(d/j)*j<=f,b=Math.floor(d/j)*j+j>h;break;case 0:a=d<=f&&e<=g,b=d>=h&&e>=i}this.picker.find(".prev").toggleClass("disabled",a),this.picker.find(".next").toggleClass("disabled",b)}},click:function(b){b.preventDefault(),b.stopPropagation();var e,f,g,h;e=a(b.target),e.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),e.hasClass("today")&&!e.hasClass("day")&&(this.setViewMode(0),this._setDate(d(),"linked"===this.o.todayBtn?null:"view")),e.hasClass("clear")&&this.clearDates(),e.hasClass("disabled")||(e.hasClass("month")||e.hasClass("year")||e.hasClass("decade")||e.hasClass("century"))&&(this.viewDate.setUTCDate(1),f=1,1===this.viewMode?(h=e.parent().find("span").index(e),g=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(h)):(h=0,g=Number(e.text()),this.viewDate.setUTCFullYear(g)),this._trigger(r.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(c(g,h,f)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(b){var c=a(b.currentTarget),d=c.data("date"),e=new Date(d);this.o.updateViewDate&&(e.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),e.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(e)},navArrowsClick:function(b){var c=a(b.currentTarget),d=c.hasClass("prev")?-1:1;0!==this.viewMode&&(d*=12*r.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,d),this._trigger(r.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(a){var b=this.dates.contains(a);if(a||this.dates.clear(),-1!==b?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(b):!1===this.o.multidate?(this.dates.clear(),this.dates.push(a)):this.dates.push(a),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(a,b){b&&"date"!==b||this._toggle_multidate(a&&new Date(a)),(!b&&this.o.updateViewDate||"view"===b)&&(this.viewDate=a&&new Date(a)),this.fill(),this.setValue(),b&&"view"===b||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||b&&"date"!==b||this.hide()},moveDay:function(a,b){var c=new Date(a);return c.setUTCDate(a.getUTCDate()+b),c},moveWeek:function(a,b){return this.moveDay(a,7*b)},moveMonth:function(a,b){if(!g(a))return this.o.defaultViewDate;if(!b)return a;var c,d,e=new Date(a.valueOf()),f=e.getUTCDate(),h=e.getUTCMonth(),i=Math.abs(b);if(b=b>0?1:-1,1===i)d=-1===b?function(){return e.getUTCMonth()===h}:function(){return e.getUTCMonth()!==c},c=h+b,e.setUTCMonth(c),c=(c+12)%12;else{for(var j=0;j<i;j++)e=this.moveMonth(e,b);c=e.getUTCMonth(),e.setUTCDate(f),d=function(){return c!==e.getUTCMonth()}}for(;d();)e.setUTCDate(--f),e.setUTCMonth(c);return e},moveYear:function(a,b){return this.moveMonth(a,12*b)},moveAvailableDate:function(a,b,c){do{if(a=this[c](a,b),!this.dateWithinRange(a))return!1;c="moveDay"}while(this.dateIsDisabled(a));return a},weekOfDateIsDisabled:function(b){return-1!==a.inArray(b.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(b){return this.weekOfDateIsDisabled(b)||a.grep(this.o.datesDisabled,function(a){return e(b,a)}).length>0},dateWithinRange:function(a){return a>=this.o.startDate&&a<=this.o.endDate},keydown:function(a){if(!this.picker.is(":visible"))return void(40!==a.keyCode&&27!==a.keyCode||(this.show(),a.stopPropagation()));var b,c,d=!1,e=this.focusDate||this.viewDate;switch(a.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),a.preventDefault(),a.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;b=37===a.keyCode||38===a.keyCode?-1:1,0===this.viewMode?a.ctrlKey?(c=this.moveAvailableDate(e,b,"moveYear"))&&this._trigger("changeYear",this.viewDate):a.shiftKey?(c=this.moveAvailableDate(e,b,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===a.keyCode||39===a.keyCode?c=this.moveAvailableDate(e,b,"moveDay"):this.weekOfDateIsDisabled(e)||(c=this.moveAvailableDate(e,b,"moveWeek")):1===this.viewMode?(38!==a.keyCode&&40!==a.keyCode||(b*=4),c=this.moveAvailableDate(e,b,"moveMonth")):2===this.viewMode&&(38!==a.keyCode&&40!==a.keyCode||(b*=4),c=this.moveAvailableDate(e,b,"moveYear")),c&&(this.focusDate=this.viewDate=c,this.setValue(),this.fill(),a.preventDefault());break;case 13:if(!this.o.forceParse)break;e=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(e),d=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(a.preventDefault(),a.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}d&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(a){this.viewMode=a,this.picker.children("div").hide().filter(".datepicker-"+r.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var l=function(b,c){a.data(b,"datepicker",this),this.element=a(b),this.inputs=a.map(c.inputs,function(a){return a.jquery?a[0]:a}),delete c.inputs,this.keepEmptyValues=c.keepEmptyValues,delete c.keepEmptyValues,n.call(a(this.inputs),c).on("changeDate",a.proxy(this.dateUpdated,this)),this.pickers=a.map(this.inputs,function(b){return a.data(b,"datepicker")}),this.updateDates()};l.prototype={updateDates:function(){this.dates=a.map(this.pickers,function(a){return a.getUTCDate()}),this.updateRanges()},updateRanges:function(){var b=a.map(this.dates,function(a){return a.valueOf()});a.each(this.pickers,function(a,c){c.setRange(b)})},clearDates:function(){a.each(this.pickers,function(a,b){b.clearDates()})},dateUpdated:function(c){if(!this.updating){this.updating=!0;var d=a.data(c.target,"datepicker");if(d!==b){var e=d.getUTCDate(),f=this.keepEmptyValues,g=a.inArray(c.target,this.inputs),h=g-1,i=g+1,j=this.inputs.length;if(-1!==g){if(a.each(this.pickers,function(a,b){b.getUTCDate()||b!==d&&f||b.setUTCDate(e)}),e<this.dates[h])for(;h>=0&&e<this.dates[h];)this.pickers[h--].setUTCDate(e);else if(e>this.dates[i])for(;i<j&&e>this.dates[i];)this.pickers[i++].setUTCDate(e);this.updateDates(),delete this.updating}}}},destroy:function(){a.map(this.pickers,function(a){a.destroy()}),a(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:f("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var m=a.fn.datepicker,n=function(c){var d=Array.apply(null,arguments);d.shift();var e;if(this.each(function(){var b=a(this),f=b.data("datepicker"),g="object"==typeof c&&c;if(!f){var j=h(this,"date"),m=a.extend({},o,j,g),n=i(m.language),p=a.extend({},o,n,j,g);b.hasClass("input-daterange")||p.inputs?(a.extend(p,{inputs:p.inputs||b.find("input").toArray()}),f=new l(this,p)):f=new k(this,p),b.data("datepicker",f)}"string"==typeof c&&"function"==typeof f[c]&&(e=f[c].apply(f,d))}),e===b||e instanceof k||e instanceof l)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+c+" function)");return e};a.fn.datepicker=n;var o=a.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:a.noop,beforeShowMonth:a.noop,beforeShowYear:a.noop,beforeShowDecade:a.noop,beforeShowCentury:a.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:1000,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},p=a.fn.datepicker.locale_opts=["format","rtl","weekStart"];a.fn.datepicker.Constructor=k;var q=a.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},r={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(a){if("function"==typeof a.toValue&&"function"==typeof a.toDisplay)return a;var b=a.replace(this.validParts,"\0").split("\0"),c=a.match(this.validParts);if(!b||!b.length||!c||0===c.length)throw new Error("Invalid date format.");return{separators:b,parts:c}},parseDate:function(c,e,f,g){function h(a,b){return!0===b&&(b=10),a<100&&(a+=2e3)>(new Date).getFullYear()+b&&(a-=100),a}function i(){var a=this.slice(0,j[n].length),b=j[n].slice(0,a.length);return a.toLowerCase()===b.toLowerCase()}if(!c)return b;if(c instanceof Date)return c;if("string"==typeof e&&(e=r.parseFormat(e)),e.toValue)return e.toValue(c,e,f);var j,l,m,n,o,p={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},s={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(c in s&&(c=s[c]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(c)){for(j=c.match(/([\-+]\d+)([dmwy])/gi),c=new Date,n=0;n<j.length;n++)l=j[n].match(/([\-+]\d+)([dmwy])/i),m=Number(l[1]),o=p[l[2].toLowerCase()],c=k.prototype[o](c,m);return k.prototype._zero_utc_time(c)}j=c&&c.match(this.nonpunctuation)||[];var t,u,v={},w=["yyyy","yy","M","MM","m","mm","d","dd"],x={yyyy:function(a,b){return a.setUTCFullYear(g?h(b,g):b)},m:function(a,b){if(isNaN(a))return a;for(b-=1;b<0;)b+=12;for(b%=12,a.setUTCMonth(b);a.getUTCMonth()!==b;)a.setUTCDate(a.getUTCDate()-1);return a},d:function(a,b){return a.setUTCDate(b)}};x.yy=x.yyyy,x.M=x.MM=x.mm=x.m,x.dd=x.d,c=d();var y=e.parts.slice();if(j.length!==y.length&&(y=a(y).filter(function(b,c){return-1!==a.inArray(c,w)}).toArray()),j.length===y.length){var z;for(n=0,z=y.length;n<z;n++){if(t=parseInt(j[n],10),l=y[n],isNaN(t))switch(l){case"MM":u=a(q[f].months).filter(i),t=a.inArray(u[0],q[f].months)+1;break;case"M":u=a(q[f].monthsShort).filter(i),t=a.inArray(u[0],q[f].monthsShort)+1}v[l]=t}var A,B;for(n=0;n<w.length;n++)(B=w[n])in v&&!isNaN(v[B])&&(A=new Date(c),x[B](A,v[B]),isNaN(A)||(c=A))}return c},formatDate:function(b,c,d){if(!b)return"";if("string"==typeof c&&(c=r.parseFormat(c)),c.toDisplay)return c.toDisplay(b,c,d);var e={d:b.getUTCDate(),D:q[d].daysShort[b.getUTCDay()],DD:q[d].days[b.getUTCDay()],m:b.getUTCMonth()+1,M:q[d].monthsShort[b.getUTCMonth()],MM:q[d].months[b.getUTCMonth()],yy:b.getUTCFullYear().toString().substring(2),yyyy:b.getUTCFullYear()};e.dd=(e.d<10?"0":"")+e.d,e.mm=(e.m<10?"0":"")+e.m,b=[];for(var f=a.extend([],c.separators),g=0,h=c.parts.length;g<=h;g++)f.length&&b.push(f.shift()),b.push(e[c.parts[g]]);return b.join("")}, |
|
8 |
headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+o.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+o.templates.rightArrow+"</th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};r.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+r.headTemplate+"<tbody></tbody>"+r.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+r.headTemplate+r.contTemplate+r.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+r.headTemplate+r.contTemplate+r.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+r.headTemplate+r.contTemplate+r.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+r.headTemplate+r.contTemplate+r.footTemplate+"</table></div></div>",a.fn.datepicker.DPGlobal=r,a.fn.datepicker.noConflict=function(){return a.fn.datepicker=m,this},a.fn.datepicker.version="1.9.0",a.fn.datepicker.deprecated=function(a){var b=window.console;b&&b.warn&&b.warn("DEPRECATED: "+a)},a(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(b){var c=a(this);c.data("datepicker")||(b.preventDefault(),n.call(c,"show"))}),a(function(){n.call(a('[data-provide="datepicker-inline"]'))})}); |
website/templates/heatmap.html.twig | ||
---|---|---|
2 | 2 |
|
3 | 3 |
{% block title %} Heatmap.ZČU {% endblock %} |
4 | 4 |
{% block stylesheets %} |
5 |
<link rel="stylesheet" href="{{ asset('css/leaflet.css') }}" /> |
|
6 |
<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}" /> |
|
7 |
<link rel="stylesheet" href="{{ asset('css/style.css') }}" /> |
|
5 |
<link rel="stylesheet" href="{{ asset('css/leaflet.css') }}"> |
|
6 |
<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}"> |
|
7 |
<link rel="stylesheet" href="{{ asset('css/style.css') }}"> |
|
8 |
<link rel="stylesheet" href="{{ asset('css/bootstrap-datepicker3.css') }}"> |
|
8 | 9 |
{% endblock %} |
9 | 10 |
|
10 | 11 |
|
... | ... | |
30 | 31 |
{{ |
31 | 32 |
form_widget(form.date, |
32 | 33 |
{ |
33 |
'type' : 'date',
|
|
34 |
'type' : 'text',
|
|
34 | 35 |
'id' : 'date', |
35 | 36 |
'attr' : { |
36 |
'max' : 'now'|date('Y-m-d'), |
|
37 | 37 |
'class' : 'form-control', |
38 | 38 |
'onChange' : 'checkDataSetsAvailability("' ~ path('available') ~ '")' |
39 | 39 |
} |
... | ... | |
151 | 151 |
|
152 | 152 |
<script src="{{ asset('js/jquery-3.4.1.min.js') }}"></script> |
153 | 153 |
<script src="{{ asset('js/bootstrap.min.js') }}"></script> |
154 |
<script src="{{ asset('js/bootstrap-datepicker.min.js') }}"></script> |
|
155 |
<script src="{{ asset('js/bootstrap-datepicker.cs.min.js') }}" charset="UTF-8"></script> |
|
154 | 156 |
<script src="{{ asset('js/leaflet.js') }}"></script> |
155 | 157 |
<script src="{{ asset('js/leaflet-heat.js') }}"></script> |
156 | 158 |
<script src="{{ asset('js/zcu-heatmap.js') }}"></script> |
... | ... | |
160 | 162 |
{% if submitted %} |
161 | 163 |
loadCurrentTimeHeatmap("{{ path('opendata') }}"); |
162 | 164 |
{% endif %} |
163 |
</script> |
|
164 |
|
|
165 |
|
|
166 |
var datesetDates = '23-04-2019,24-04-2019,25-04-2019,24-05-2020,27-05-2020'.split(','); |
|
167 |
|
|
168 |
function formatDate(date) { |
|
169 |
var day = String(date.getDate()); |
|
170 |
var month = String(date.getMonth() + 1); |
|
171 |
|
|
172 |
if (day.length === 1) { |
|
173 |
day = '0' + day; |
|
174 |
} |
|
175 |
|
|
176 |
if (month.length === 1) { |
|
177 |
month = '0' + month; |
|
178 |
} |
|
179 |
|
|
180 |
return day + '-' + month + '-' + date.getFullYear(); |
|
181 |
} |
|
182 |
|
|
183 |
$(function () { |
|
184 |
$('#date').datepicker({ |
|
185 |
format: 'yyyy-mm-dd', |
|
186 |
language: 'cs', |
|
187 |
beforeShowDay: function(date) { |
|
188 |
if (datesetDates.indexOf(formatDate(date)) < 0) { |
|
189 |
return {enabled: false, tooltip: 'Žádná data'} |
|
190 |
} |
|
191 |
else { |
|
192 |
return {enabled: true} |
|
193 |
} |
|
194 |
}, |
|
195 |
autoclose: true |
|
196 |
}) |
|
197 |
}); |
|
198 |
</script> |
|
165 | 199 |
|
166 | 200 |
{% endblock %} |
Také k dispozici: Unified diff
Re #8076 - implemented new datepicker