forked from kbwood/calendars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
calendarsPickerBasic.html
43 lines (42 loc) · 1.91 KB
/
calendarsPickerBasic.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>jQuery Calendars Datepicker</title>
<link rel="stylesheet" href="jquery.calendars.picker.css">
<!-- OR for ThemeRoller styling
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/south-street/jquery-ui.css">
<link rel="stylesheet" href="ui-southstreet.datepick.css">
-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="jquery.plugin.js"></script>
<!--<script src="jquery.calendars.all.js"></script><!-- Use instead of calendars, plus, and picker below -->
<script src="jquery.calendars.js"></script>
<script src="jquery.calendars.plus.js"></script>
<script src="jquery.calendars.picker.js"></script>
<!--<script src="jquery.calendars.picker.ext.js"></script><!-- Include for ThemeRoller styling -->
<script src="jquery.calendars.persian.js"></script>
<script>
$(function() {
// $.calendars.picker.setDefaults({renderer: $.calendars.picker.themeRollerRenderer}); // Requires jquery.calendars.picker.ext.js
var calendar = $.calendars.instance('persian');
$('#popupDatepicker').calendarsPicker({calendar: calendar});
$('#inlineDatepicker').calendarsPicker({calendar: calendar, onSelect: showDate});
});
function showDate(date) {
alert('The date chosen is ' + date);
}
</script>
</head>
<body>
<h1>jQuery Calendars Datepicker</h1>
<p>This page demonstrates the very basics of the
<a href="http://keith-wood.name/calendarsPicker.html">jQuery Calendars Datepicker plugin</a>.
It contains the minimum requirements for using the plugin and
can be used as the basis for your own experimentation.</p>
<p>For more detail see the <a href="http://keith-wood.name/calendarsPickerRef.html">documentation reference</a> page.</p>
<p>A popup datepicker <input type="text" id="popupDatepicker"></p>
<p>Or inline</p>
<div id="inlineDatepicker"></div>
</body>
</html>