- Notifications
You must be signed in to change notification settings - Fork 5.3k
Calendar rebase (4) #1371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar rebase (4) #1371
Changes from 25 commits
738a95e
ee0f537
ca654c5
54b6e2f
56744d0
f3b058a
730cde5
7e87b53
4fe8c4c
f590a43
dd0bd1a
dbdc846
e1478cc
45bc3ec
0b54ad1
f5b569d
4d9c598
d4ee2bc
5c168fb
da2b9ae
ad38ad4
49c0102
73c1d18
565a9e1
2309f4d
efe643e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
| @@ -28,6 +28,7 @@ var | |
"core", | ||
"accordion", | ||
"autocomplete", | ||
"calendar", | ||
"button", | ||
"datepicker", | ||
"dialog", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>jQuery UI Calendar Demos</title> | ||
</head> | ||
<body> | ||
| ||
<ul> | ||
<li><a href="default.html">Default functionality</a></li> | ||
<li><a href="buttonbar.html">Display button bar</a></li> | ||
<li><a href="dropdown-month-year.html">Display month & year menus</a></li> | ||
<li><a href="localization.html">Localize calendar</a></li> | ||
<li><a href="min-max.html">Restrict date range</a></li> | ||
<li><a href="multiple-months.html">Display multiple months</a></li> | ||
<li><a href="other-months.html">Dates in other months</a></li> | ||
<li><a href="show-week.html">Show week of the year</a></li> | ||
</ul> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. | ||
| ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>jQuery UI Calendar - Localize calendar</title> | ||
<link rel="stylesheet" href="../../themes/base/all.css"> | ||
<script src="../../external/jquery/jquery.js"></script> | ||
<script src="../../external/globalize/globalize.js"></script> | ||
<script src="../../external/date.js"></script> | ||
<script src="../../external/localization.js"></script> | ||
<script src="../../ui/core.js"></script> | ||
<script src="../../ui/widget.js"></script> | ||
<script src="../../ui/button.js"></script> | ||
<script src="../../ui/calendar.js"></script> | ||
<script src="../../ui/position.js"></script> | ||
<link rel="stylesheet" href="../demos.css"> | ||
<script> | ||
$(function() { | ||
var calendar = $( "#calendar" ), | ||
select = $( "#locale" ); | ||
| ||
Globalize.locale( select.val() ); | ||
calendar.calendar(); | ||
| ||
select.change( function() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. extraneous space There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. | ||
Globalize.locale( $( this ).val() ); | ||
calendar.calendar( "valueAsDate", calendar.calendar( "valueAsDate" ) ); | ||
}); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
| ||
<div id="calendar"></div> | ||
<select id="locale"> | ||
<option value="de-DE" selected>German (Deutsch)</option> | ||
<option value="en">English</option> | ||
</select> | ||
| ||
<div class="demo-description"> | ||
<p>Localize the calendar calendar language and format (English / Western formatting is the default). The calendar includes built-in support for languages that read right-to-left, such as Arabic and Hebrew.</p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "calendar calendar" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. | ||
</div> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
| @@ -2,7 +2,7 @@ | |
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>jQuery UI Datepicker - Restrict date range</title> | ||
<title>jQuery UI Calendar - Restrict date range</title> | ||
<link rel="stylesheet" href="../../themes/base/all.css"> | ||
<script src="../../external/jquery/jquery.js"></script> | ||
<script src="../../external/globalize/globalize.js"></script> | ||
| @@ -11,21 +11,28 @@ | |
<script src="../../ui/core.js"></script> | ||
<script src="../../ui/widget.js"></script> | ||
<script src="../../ui/button.js"></script> | ||
<script src="../../ui/calendar.js"></script> | ||
<script src="../../ui/position.js"></script> | ||
<script src="../../ui/datepicker.js"></script> | ||
<link rel="stylesheet" href="../demos.css"> | ||
<script> | ||
$(function() { | ||
$( "#datepicker" ).datepicker({ minDate: -20, maxDate: "+1M +10D" }); | ||
var now = new Date(), | ||
dateMin = new Date( now.getFullYear(), now.getMonth(), now.getDay() + 1 ), | ||
dateMax = new Date( now.getFullYear(), now.getMonth(), now.getDay() + 8 ); | ||
| ||
$( "#calendar" ).calendar({ | ||
min: dateMin, | ||
max: dateMax | ||
}); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
| ||
<p>Date: <input type="text" id="datepicker"></p> | ||
<div id="calendar"></div> | ||
| ||
<div class="demo-description"> | ||
<p>Restrict the range of selectable dates with the <code>minDate</code> and <code>maxDate</code> options. Set the beginning and end dates as actual dates (new Date(2009, 1 - 1, 26)), as a numeric offset from today (-20), or as a string of periods and units ('+1M +10D'). For the last, use 'D' for days, 'W' for weeks, 'M' for months, or 'Y' for years.</p> | ||
<p>Restrict the range of selectable dates with the <code>min</code> and <code>max</code> options. Set the beginning and end dates as actual dates (new Date(2009, 1 - 1, 26)).</p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Put the example at the end in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. | ||
</div> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>jQuery UI Calendar - Display multiple months</title> | ||
<link rel="stylesheet" href="../../themes/base/all.css"> | ||
<script src="../../external/jquery/jquery.js"></script> | ||
<script src="../../external/globalize/globalize.js"></script> | ||
<script src="../../external/date.js"></script> | ||
<script src="../../external/localization.js"></script> | ||
<script src="../../ui/core.js"></script> | ||
<script src="../../ui/widget.js"></script> | ||
<script src="../../ui/button.js"></script> | ||
<script src="../../ui/calendar.js"></script> | ||
<script src="../../ui/position.js"></script> | ||
<link rel="stylesheet" href="../demos.css"> | ||
<script> | ||
$(function() { | ||
$( "#calendar" ).calendar({ | ||
numberOfMonths: 3 | ||
}); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
| ||
<div id="calendar"></div> | ||
| ||
<div class="demo-description"> | ||
<p>Set the <code>numberOfMonths</code> option to an integer of 2 or more to show multiple months in a single calendar.</p> | ||
</div> | ||
</body> | ||
</html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop the quotes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.