-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsample.html
44 lines (35 loc) · 1.86 KB
/
sample.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
<!DOCTYPE html>
<html>
<head>
<title></title>
<link href="http://cdn.kendostatic.com/2018.1.221/styles/kendo.common.min.css" rel="stylesheet" />
<link href="http://cdn.kendostatic.com/2018.1.221/styles/kendo.default.min.css" rel="stylesheet" />
<script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="JalaliDate.js"></script>
<script src="kendo.web.js"></script>
<script src="fa-IR.js"></script>
<script src="kendo.calendar.fa.js"></script>
<script src="kendo.datepicker.fa.js"></script>
</head>
<body style="direction: rtl; font-family: tahoma;">
<div id="example" class="k-content">
<div style="margin-right: 10px;">
<input id="datepicker" value="2018/03/22" style="width:150px;" /><br/><br/>
<input id="datepickerShamsi" value="1397/01/02" style="width:150px;" /><br/><br/>
<input id="timepicker" value="16:00" style="width:150px;" /><br/><br/>
<div id="calendar"></div>
<div id="calendarShamsi"></div>
</div>
<script>
$(document).ready(function () {
// create DatePicker from input HTML element
$("#datepicker").kendoDatePicker({ culture: "en-US" });
$("#datepickerShamsi").kendoDatePickerShamsi({ culture: "fa-IR" });
$("#calendar").kendoCalendar({ culture: "en-US" });
$("#calendarShamsi").kendoCalendarShamsi({ culture: "fa-IR" });
$("#timepicker").kendoTimePicker();
});
</script>
</div>
</body>
</html>