Added wrappers for demo and description for each page.

This commit is contained in:
Todd Parker 2008-12-30 16:45:42 +00:00
parent 7b36620e6c
commit 8ea536f5c9
5 changed files with 57 additions and 2 deletions

View File

@ -15,9 +15,20 @@
</head>
<body>
<div class="demo">
<p>Date: <input type="text" id="date123"></p>
</div><!-- End demo -->
<div class="demo-description">
<p>This example adds a bar at the bottom of the calendar with buttons for selecting Today's date and a Done button for closing the calendar. The individual buttons are on by default if the bar is added but each can be turned off via options. The button text is customizable.</p>
</div><!-- End demo-description -->
</body>
</html>

View File

@ -15,7 +15,19 @@
</head>
<body>
<div class="demo">
Date: <input type="text" id="date123" />
</div><!-- End demo -->
<div class="demo-description">
<p>This is a default datepicker which is tied to a standard form input. The calendar opens in a small overlay onFocus and closes automatically onBlur if a date if selected.</p>
</div><!-- End demo-description -->
</body>
</html>

View File

@ -15,9 +15,19 @@
</head>
<body>
<div class="demo">
<p>Date: <input type="text" id="date123"></p>
</div><!-- End demo -->
<div class="demo-description">
<p>This datepicker has an optional month and year dropdown added to make it easier to navigate through large timeframes. This is done by adding the changeMonth:true and changeYear:true options.</p>
</div><!-- End demo-description -->
</body>
</html>

View File

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Datepicker - Default Demo</title>
<title>jQuery UI Datepicker - Inline Demo</title>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
@ -16,7 +16,19 @@
<body>
<div class="demo">
Date: <div id="date123" /></div>
</div><!-- End demo -->
<div class="demo-description">
<p>This is an example of an inline date picker that is embedded in the page instead of opening in an overlay. This is done by calling .datepicker() in a div instead of an input.</p>
</div><!-- End demo-description -->
</body>
</html>

View File

@ -9,15 +9,25 @@
<script type="text/javascript" src="../../ui/ui.datepicker.js"></script>
<script type="text/javascript">
$(function() {
$('#date123').datepicker({numberOfMonths: 3, showButtonPanel: true});
$('#date123').datepicker({numberOfMonths: 2, showButtonPanel: true});
});
</script>
</head>
<body>
<div class="demo">
<p>Date: <input type="text" id="date123"></p>
</div><!-- End demo -->
<div class="demo-description">
<p>This datepicker shows two months at a time by setting the numberOfMonths option to 2. This can be set to any number that will fit within your layout. The multiple calendars are used to make it easier to visually scan across months and make a selection. This is not a date range picker. In a future release, a custom date range plugin will be added. For users that want to use the old date range picker built into the datepicker, they must use the previous version of this plug.</p>
</div><!-- End demo-description -->
</body>