-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo_date_picker.html
196 lines (195 loc) · 8.45 KB
/
demo_date_picker.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
189
190
191
192
193
194
195
196
<html>
<head>
<meta charset="utf-8"/>
<script src="lib/jquery.js"></script>
<link rel="stylesheet" href="dist/css/persian-datepicker-0.4.5.css"/>
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
<link href="dist/css/persian-datepicker-0.4.5.css" rel="stylesheet" type="text/css"/>
<script src="lib/persian-date.js"></script>
<script type="text/javascript" src="dist/js/persian-datepicker-0.4.5.js"></script>
<script type="text/javascript" src="dist/js/date_picker_initialize.js"></script>
<style>
.ToUse{
font-size:18px;
}
xmp{
background-color:white;
margin-left:30px;
width:900px;
border-radius:5px;
}
.main-div{
margin-left:130px;
width:1050px;
background-color:#e1e1e8;
}
.sub-section{
padding:30px;
border-radius:5px;
}
</style>
</head>
<body>
<div class="main-div">
<div class="sub-section">
<p>This Project is an extension of the <a href="http://babakhani.github.io/PersianWebToolkit/doc/datepicker/0.4.5/">Persian Date Picker</a></p>
<p>For more details on how to use this toolkit, refer to the following link: <a href="http://babakhani.github.io/PersianWebToolkit/doc/datepicker/0.4.5/">Persian Date Picker</a></p>
<p>Apart from the instructions given in the link above you can take advantage of the date_picker_initialize.js to easily use the Pashto Datepicker.</p><br/>
<h3>Without Time Picker</h3>
<span>To use only the datepicker to select year, month, day</span><br/><br/>
<span>e.g. </span><input type="text" class="pashto_datepicker"/><br/><br/>
<span class="ToUse">To Use:</span>
<xmp>
<html>
<meta charset="utf-8"/>
<script src="lib/jquery.js"></script>
<link rel="stylesheet" href="dist/css/persian-datepicker-0.4.5.css"/>
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
<link href="dist/css/persian-datepicker-0.4.5.css" rel="stylesheet" type="text/css"/>
<script src="lib/persian-date.js"></script>
<script type="text/javascript" src="dist/js/persian-datepicker-0.4.5.js"></script>
<script type="text/javascript" src="dist/js/date_picker_initialize.js"></script>
</html>
<body>
<input type="text" class="pashto_datepicker"/>
</body>
</xmp>
</div>
<div class="sub-section">
<h3>With Time Picker</h3>
<span>To use only the datepicker to select complete date and time</span><br/><br/>
<span>e.g. </span><input type="text" class="pashto_datetimepicker"/><br/><br/>
<span class="ToUse">To Use:</span>
<xmp>
<head>
<meta charset="utf-8"/>
<script src="lib/jquery.js"></script>
<link rel="stylesheet" href="dist/css/persian-datepicker-0.4.5.css"/>
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
<link href="dist/css/persian-datepicker-0.4.5.css" rel="stylesheet" type="text/css"/>
<script src="lib/persian-date.js"></script>
<script type="text/javascript" src="dist/js/persian-datepicker-0.4.5.js"></script>
<script type="text/javascript" src="dist/js/date_picker_initialize.js"></script>
</head>
<body>
<input type="text" class="pashto_datetimepicker"/>
</body>
</xmp>
</div>
<div class="sub-section">
<h3>Only Time Picker</h3>
<span>To use only the datepicker to select only time</span><br/><br/>
<span>e.g. </span><input type="text" class="pashto_timepicker"/><br/><br/>
<span class="ToUse">To Use:</span>
<xmp>
<head>
<meta charset="utf-8"/>
<script src="lib/jquery.js"></script>
<link rel="stylesheet" href="dist/css/persian-datepicker-0.4.5.css"/>
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
<link href="dist/css/persian-datepicker-0.4.5.css" rel="stylesheet" type="text/css"/>
<script src="lib/persian-date.js"></script>
<script type="text/javascript" src="dist/js/persian-datepicker-0.4.5.js"></script>
<script type="text/javascript" src="dist/js/date_picker_initialize.js"></script>
</head>
<body>
<input type="text" class="pashto_timepicker"/>
</body>
</xmp>
</div>
<div class="sub-section">
<h3>Only Year Picker</h3>
<span>To use only the datepicker to select only the year, not month, day or time</span><br/><br/>
<input type="text" class="pashto_yearpicker"/><br/><br/>
<span>e.g. </span><span class="ToUse">To Use:</span>
<xmp>
<head>
<meta charset="utf-8"/>
<script src="lib/jquery.js"></script>
<link rel="stylesheet" href="dist/css/persian-datepicker-0.4.5.css"/>
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
<link href="dist/css/persian-datepicker-0.4.5.css" rel="stylesheet" type="text/css"/>
<script src="lib/persian-date.js"></script>
<script type="text/javascript" src="dist/js/persian-datepicker-0.4.5.js"></script>
<script type="text/javascript" src="dist/js/date_picker_initialize.js"></script>
</head>
<body>
<input type="text" class="pashto_yearpicker"/>
</body>
</xmp>
</div>
<div class="sub-section">
<h3>Only Month Picker</h3>
<span>To use only the datepicker to select only the month, not year, day or time</span><br/><br/>
<span>e.g. </span><input type="text" class="pashto_monthpicker"/><br/><br/>
<span class="ToUse">To Use:</span>
<xmp>
<head>
<meta charset="utf-8"/>
<script src="lib/jquery.js"></script>
<link rel="stylesheet" href="dist/css/persian-datepicker-0.4.5.css"/>
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
<link href="dist/css/persian-datepicker-0.4.5.css" rel="stylesheet" type="text/css"/>
<script src="lib/persian-date.js"></script>
<script type="text/javascript" src="dist/js/persian-datepicker-0.4.5.js"></script>
<script type="text/javascript" src="dist/js/date_picker_initialize.js"></script>
</head>
<body>
<input type="text" class="pashto_monthpicker"/>
</body>
</xmp>
</div>
<div class="sub-section">
<h3>Only Year & Month Picker</h3>
<span>To use only the datepicker to select both the year and the month not day or time</span><br/><br/>
<span>e.g. </span><input type="text" class="pashto_yearandmonthpicker"/><br/><br/>
<span class="ToUse">To Use:</span>
<xmp>
<head>
<meta charset="utf-8"/>
<script src="lib/jquery.js"></script>
<link rel="stylesheet" href="dist/css/persian-datepicker-0.4.5.css"/>
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
<link href="dist/css/persian-datepicker-0.4.5.css" rel="stylesheet" type="text/css"/>
<script src="lib/persian-date.js"></script>
<script type="text/javascript" src="dist/js/persian-datepicker-0.4.5.js"></script>
<script type="text/javascript" src="dist/js/date_picker_initialize.js"></script>
</head>
<body>
<input type="text" class="pashto_yearandmonthpicker"/>
</body>
</xmp>
</div>
<div class="sub-section">
<h3>English Digits</h3>
<span>To display the days only in only the datepicker to select only the year, not month, day or time</span><br/><br/>
<span>e.g. </span>
<input type="text" class="pashto_englishdigitpicker"/><br/><br/>
<span class="ToUse">To Use:</span>
<xmp>
<head>
<meta charset="utf-8"/>
<script src="lib/jquery.js"></script>
<link rel="stylesheet" href="dist/css/persian-datepicker-0.4.5.css"/>
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
<link href="dist/css/persian-datepicker-0.4.5.css" rel="stylesheet" type="text/css"/>
<script src="lib/persian-date.js"></script>
<script type="text/javascript" src="dist/js/persian-datepicker-0.4.5.js"></script>
<script type="text/javascript" src="dist/js/date_picker_initialize.js"></script>
</head>
<body>
<input type="text" class="pashto_englishdigitpicker"/>
</body>
</xmp>
</div>
</div>
</body>
</html>