-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
222 lines (186 loc) · 9.92 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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Jalali Bootstrap 4 Calendar/Datepicker | By Rafi Haidari</title>
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/customize.css">
<link rel="stylesheet" type="text/css" href="assets/css/calendar/calendar-blue.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU"
crossorigin="anonymous">
<script src="assets/js/jquery-3.3.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/jalali.js"></script>
<script src="assets/js/calendar.js"></script>
<script src="assets/js/calendar-setup.js"></script>
<script src="lang/calendar-dari.js"></script>
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
<style>
.input-group{
margin-bottom: 15px;
}
</style>
</head>
<body>
<article class="container">
<section class="jumbotron text-center">
<p>Jalali <span class="badge badge-primary">Bootstrap v4.0.0</span> Calendar/Datepicker</p>
<p class="farsi-font">
تقویم و DatePicker هجری شمسی (جلالی) بر پایه
<span class="badge badge-primary">
بوتسترپ ۴
</span>
<br>
<br>
<section class="githubButtons">
<!-- Place this tag where you want the button to render. -->
<a class="github-button" href="https://github.com/rafihaidari/Jalali-Calendar-and-Datepicker/archive/master.zip"
data-icon="octicon-cloud-download" aria-label="Download rafihaidari/Jalali-Calendar-and-Datepicker on GitHub">Download</a>
<!-- Place this tag where you want the button to render. -->
<a class="github-button" href="https://github.com/rafihaidari" aria-label="Follow @rafihaidari on GitHub">Follow
@rafihaidari</a>
<!-- Place this tag where you want the button to render. -->
<a class="github-button" href="https://github.com/rafihaidari/Jalali-Calendar-and-Datepicker"
data-icon="octicon-star" data-show-count="true" aria-label="Star rafihaidari/Jalali-Calendar-and-Datepicker on GitHub">Star</a>
</section>
</p>
<hr>
<p class="farsi-font">
پشتیبانی از زبان های
</p>
<section class="text-left farsi-font" style="direction:rtl;text-align: center !important">
<span class="badge badge-warning">دری | افغانستان</span>
<span class="badge badge-danger">پشتو | افغانستان</span>
<span class="badge badge-danger">فارسی | ایران</span>
<span class="badge badge-danger">Afrikaans</span>
<span class="badge badge-danger">Albanian</span>
<span class="badge badge-danger">Bulgarian</span>
<span class="badge badge-danger">Traditional Chinese</span>
<span class="badge badge-danger">Portuguese</span>
<span class="badge badge-danger">Germany</span>
<span class="badge badge-danger">Spanish</span>
<span class="badge badge-danger">Russian</span>
<span class="badge badge-danger">Turkish</span>
<span class="badge badge-danger">French</span>
<span class="badge badge-danger">Croatian</span>
<span class="badge badge-danger">Japanese</span>
<span class="badge badge-info">Other</span>
</section>
</section>
<article class="row col-11" style="margin:0 auto">
<div class="col-12 col-sm-6 col-md-5 col-lg-6">
<h2 class="display-5 farsi-font farsi-input">تاریخ هجری شمسی</h2>
<br>
<div class="input-group">
<input id="date_input_one" type="text" class="form-control farsi-input farsi-font" placeholder="تاریخ شمسی">
<div class="input-group-btn">
<button id="date_btn_one" class="btn btn-info" type="submit">
<i class="fa fa-calendar"></i>
</button>
</div>
</div>
<script type="text/javascript">
Calendar.setup({
inputField: "date_input_one", // id of the input field
button: "date_btn_one", // trigger for the calendar (button ID)
ifFormat: "%Y/%m/%d", // format of the input field
dateType: 'jalali',
weekNumbers: true
});
</script>
<div class="input-group">
<input id="date_input_two" type="text" class="form-control farsi-input farsi-font" placeholder="تاریخ شمسی و ساعت قالب ۲۴ ساعته">
<div class="input-group-btn">
<button id="date_btn_two" class="btn btn-info" type="submit">
<i class="fa fa-calendar"></i>
</button>
</div>
</div>
<script type="text/javascript">
Calendar.setup({
inputField: "date_input_two", // id of the input field
button: "date_btn_two", // trigger for the calendar (button ID)
ifFormat: "%Y/%m/%d %H:%M", // format of the input field
showsTime: true,
dateType: 'jalali',
timeFormat: "24",
weekNumbers: false
});
</script>
<div class="input-group">
<input id="date_input_three" type="text" class="form-control farsi-input farsi-font" placeholder="تاریخ شمسی و ساعت قالب ۱۲ ساعته">
<div class="input-group-btn">
<button id="date_btn_three" class="btn btn-info" type="submit">
<i class="fa fa-calendar"></i>
</button>
</div>
</div>
<script type="text/javascript">
Calendar.setup({
inputField: "date_input_three", // id of the input field
button: "date_btn_three", // trigger for the calendar (button ID)
ifFormat: "%Y/%m/%d %I:%M %P", // format of the input field
showsTime: true,
dateType: 'jalali',
timeFormat: "12",
weekNumbers: false
});
</script>
<div class="input-group">
<input id="date_input_four" type="text" class="form-control farsi-input farsi-font" placeholder="تاریخ شمسی با نام ماه و روز">
<div class="input-group-btn">
<button id="date_btn_four" class="btn btn-info" type="submit">
<i class="fa fa-calendar"></i>
</button>
</div>
</div>
<script type="text/javascript">
Calendar.setup({
inputField: "date_input_four", // id of the input field
button: "date_btn_four", // trigger for the calendar (button ID)
ifFormat: "%A, %e %B %Y", // format of the input field
dateType: 'jalali',
weekNumbers: false
});
</script>
</div>
<div class="col-12 col-sm-6 col-md-5 col-lg-6">
<h2 class="display-5 farsi-font farsi-input">
تقویم هجری شمسی
</h2>
<span id="display_area_1" class="farsi-font badge badge-warning" style="font-size:15px">یک تاریخ را
انتخاب کنید</span>
<form method="get" action="#">
<input id="date_input_7" type="hidden" name="date" />
</form>
<div id="flat_calendar_1"></div>
<script type="text/javascript">
Calendar.setup({
inputField: "date_input_7",
displayArea: "display_area_1",
flat: "flat_calendar_1", // id of the input field
ifFormat: "%Y-%m-%d", // format of the input field
dateType: 'jalali',
weekNumbers: false
});
</script>
</div>
</article>
</article>
<hr>
<footer>
<article class="container-fluid">
<div class="col-12 copy-right">
<span class="badge badge-warning">
Copyright © 2018 <a href="http://haidari.co" target="_blank">Rafi Haidari</a></span>
<p class="display-6">Distributed under GNU GPL.
<br>
Based on The DHTML Calendar developed by <a href="http://dynarch.com" target="_blank">Dynarch.com</a>.</p>
</div>
</article>
</footer>
</body>
</html>