-
Notifications
You must be signed in to change notification settings - Fork 566
Expand file tree
/
Copy pathcustom.html
More file actions
76 lines (69 loc) · 1.96 KB
/
custom.html
File metadata and controls
76 lines (69 loc) · 1.96 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Date Picker Demo</title>
<link rel="stylesheet" href="daterangepicker.css" />
<script src="jquery-1.11.2.min.js"></script>
<script src="moment.min.js"></script>
<script src="jquery.daterangepicker.js"></script>
<style>
#wrapper
{
width:800px;
margin:0 auto;
color:#333;
font-family:Tahoma;
line-height:1.5;
font-size:14px;
}
.demo { margin:30px 0;}
.date-picker-wrapper .month-wrapper table .day.lalala { background-color:orange; }
.options { display:none; border-left:6px solid #8ae; padding:10px; font-size:12px; line-height:1.4; background-color:#eee; border-radius:4px;}
.date-picker-wrapper.date-range-picker19 .day.first-date-selected { background-color: red !important; }
.date-picker-wrapper.date-range-picker19 .day.last-date-selected { background-color: orange !important; }
</style>
</head>
<body>
plese check the source code of this page to see instructions.
<form action="custom.html" method="get">
date range:
<span id="two-inputs">
<input name="date-from" type="text" size="50" value="2016-02-02">
to
<input name="date-to" type="text" size="50" value="2016-02-21">
</span>
<div id="two-inputs-2" style="position:absolute; right:0; top:0;">
<input name="date-from2" type="text" size="50" value="2016-02-02">
to
<input name="date-to2" type="text" size="50" value="2016-02-21">
</div>
<br>
<input type="submit" value="submit">
</form>
<script>
$(function()
{
$('#two-inputs').customDateRangePicker(
{
//the value format
format: 'YYYY-MM-DD',
//the display format
displayFormat: 'MMMM Do YYYY',
autoWidth: false,
singleMonth: false
});
$('#two-inputs-2').customDateRangePicker(
{
//the value format
format: 'YYYY-MM-DD',
//the display format
displayFormat: 'MMMM Do YYYY',
autoWidth: false,
singleMonth: false
});
});
</script>
</body>
</html>