forked from alexpylko/jQuery-UI-Monthpicker-Quarterpicker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
110 lines (100 loc) · 2.84 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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>Datepicker Extension</title>
<link rel="shortcut icon" href="fw-logo.ico">
<link rel="stylesheet" href="themes/base/minified/jquery.ui.all.min.css" />
<script type="text/javascript" src="jquery-1.10.2.js"></script>
<script src="jquery.ui.core.js"></script>
<script src="jquery.ui.widget.js"></script>
<script src="jquery.ui.datepicker.js"></script>
<script src="jquery.ui.period.datepicker.js"></script>
<style>
/* For Demo */
*{font:12px/1.5em "Lucida Grande",Segoe,Tahoma,sans-serif}
#monthTest{margin-bottom:20px;}
/* For Component */
.ui-datepicker-year-header{font-weight:bold;}
table.ui-fwpicker-calendar{margin-top:5px;}
.ui-datepicker-prev, .ui-datepicker-next{cursor:pointer;}
</style>
</head>
<body>
<h3>Date Picker</h3>
<div id="date">
<input type="text" id="datepicker1" />
<input type="text" id="datepicker2" />
</div>
<script>
$(function() {
$("#datepicker1").datepicker();
$("#datepicker2").datepicker();
});
</script>
<h3>Weekends Picker</h3>
<div id="week">
<input type="text" id="weekpicker5" />
<input type="text" id="weekpicker6" />
</div>
<script>
$(function() {
$("#weekpicker5").datepicker({
beforeShowDay: $.datepicker.onlyWeekends
});
$("#weekpicker6").datepicker({
beforeShowDay: $.datepicker.onlyWeekends
});
});
</script>
<h3>Month Picker</h3>
<div id="month">
<input type="text" id="monthpicker1" />
<input type="text" id="monthpicker2" />
</div>
<script>
$(function() {
$("#monthpicker1").datepicker({
monthpicker: true
});
$("#monthpicker2").datepicker({
monthpicker: true,
lastDay: true
});
});
</script>
<h3>Quarter Picker</h3>
<div id="quarter">
<input type="text" id="quarterpicker1" />
<input type="text" id="quarterpicker2" />
</div>
<script>
$(function() {
$("#quarterpicker1").datepicker({
quarterpicker: true
});
$("#quarterpicker2").datepicker({
quarterpicker: true,
lastDay: true
});
});
</script>
<h3>Year Picker</h3>
<div id="quarter">
<input type="text" id="yearpicker1" />
<input type="text" id="yearpicker2" />
</div>
<script>
$(function() {
$("#yearpicker1").datepicker({
yearpicker: true
});
$("#yearpicker2").datepicker({
yearpicker: true,
lastDay: true
});
});
</script>
</body>
</html>