]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker demos: Coding standards.
authorScott González <scott.gonzalez@gmail.com>
Fri, 10 Sep 2010 12:50:53 +0000 (08:50 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 10 Sep 2010 12:50:53 +0000 (08:50 -0400)
15 files changed:
demos/datepicker/alt-field.html
demos/datepicker/animation.html
demos/datepicker/buttonbar.html
demos/datepicker/date-formats.html
demos/datepicker/default.html
demos/datepicker/dropdown-month-year.html
demos/datepicker/event-search.html
demos/datepicker/icon-trigger.html
demos/datepicker/index.html
demos/datepicker/inline.html
demos/datepicker/localization.html
demos/datepicker/min-max.html
demos/datepicker/multiple-calendars.html
demos/datepicker/other-months.html
demos/datepicker/show-week.html

index d51bf06346cfba3d4df18606a08780e31e3e6ef5..f45921d073e34c3ab4957ed28a5936cc3d2c0a46 100644 (file)
@@ -1,17 +1,20 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker - Populate alternate field</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.datepicker.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               $("#datepicker").datepicker({altField: '#alternate', altFormat: 'DD, d MM, yy'});
+               $( "#datepicker" ).datepicker({
+                       altField: "#alternate",
+                       altFormat: "DD, d MM, yy"
+               });
        });
        </script>
 </head>
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>Populate an alternate field with its own date format whenever a date is selected using the <code>altField</code> and <code>altFormat</code> options.  This feature could be used to present a human-friendly date for user selection, while passing a more computer-friendly date through for further processing.</p>
 
+<div class="demo-description">
+<p>Populate an alternate field with its own date format whenever a date is selected using the <code>altField</code> and <code>altFormat</code> options.  This feature could be used to present a human-friendly date for user selection, while passing a more computer-friendly date through for further processing.</p>
 </div><!-- End demo-description -->
 
 </body>
index 27f20ffb8b586a3bc156054ad7542de53c5921ba..8bc4dbaa8ce5edc80779ad19957609b865e15eac 100644 (file)
@@ -1,25 +1,27 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker - Animations</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.effects.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.effects.blind.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.effects.bounce.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.effects.clip.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.effects.drop.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.effects.fold.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.effects.slide.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.effects.core.js"></script>
+       <script src="../../ui/jquery.effects.blind.js"></script>
+       <script src="../../ui/jquery.effects.bounce.js"></script>
+       <script src="../../ui/jquery.effects.clip.js"></script>
+       <script src="../../ui/jquery.effects.drop.js"></script>
+       <script src="../../ui/jquery.effects.fold.js"></script>
+       <script src="../../ui/jquery.effects.slide.js"></script>
+       <script src="../../ui/jquery.ui.datepicker.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               $("#datepicker").datepicker();
-               $("#anim").change(function() { $('#datepicker').datepicker('option', {showAnim: $(this).val()}); });
+               $( "#datepicker" ).datepicker();
+               $( "#anim" ).change(function() {
+                       $( "#datepicker" ).datepicker( "option", "showAnim", $( this ).val() );
+               });
        });
        </script>
 </head>
                <option value="show">Show (default)</option>
                <option value="slideDown">Slide down</option>
                <option value="fadeIn">Fade in</option>
-               <!-- <option value="blind">Blind (UI Effect)</option>
+               <option value="blind">Blind (UI Effect)</option>
                <option value="bounce">Bounce (UI Effect)</option>
                <option value="clip">Clip (UI Effect)</option>
                <option value="drop">Drop (UI Effect)</option>
                <option value="fold">Fold (UI Effect)</option>
-               <option value="slide">Slide (UI Effect)</option> -->
+               <option value="slide">Slide (UI Effect)</option>
                <option value="">None</option>
        </select>
 </p>
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>Use different animations when opening or closing the datepicker.  Choose an animation from the dropdown, then click on the input to see its effect.  You can use one of the three standard animations or any of the UI Effects.</p>
 
+<div class="demo-description">
+<p>Use different animations when opening or closing the datepicker.  Choose an animation from the dropdown, then click on the input to see its effect.  You can use one of the three standard animations or any of the UI Effects.</p>
 </div><!-- End demo-description -->
 
 </body>
index 6cd4dbedc75bdcd30cd04f4178bdb2fa94532b43..df0cc73b029e944e9f0c64765c86f9148ea2cf64 100644 (file)
@@ -1,17 +1,17 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker - Display button bar</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.datepicker.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               $('#datepicker').datepicker({
+               $( "#datepicker" ).datepicker({
                        showButtonPanel: true
                });
        });
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>Display a button for selecting Today's date and a Done button for closing the calendar with the boolean <code>showButtonPanel</code> option.  Each button is enabled by default when the bar is displayed, but can be turned off with additional options.  Button text is customizable.</p>
 
+<div class="demo-description">
+<p>Display a button for selecting Today's date and a Done button for closing the calendar with the boolean <code>showButtonPanel</code> option.  Each button is enabled by default when the bar is displayed, but can be turned off with additional options.  Button text is customizable.</p>
 </div><!-- End demo-description -->
 
 </body>
index 435ef7096bb898c27e15ca8ca956d2261cf534cb..d20be91a4dc6d0337b91149255c0e6b88761331d 100644 (file)
@@ -1,18 +1,20 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker - Format date</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.datepicker.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               $("#datepicker").datepicker();
-               $("#format").change(function() { $('#datepicker').datepicker('option', {dateFormat: $(this).val()}); });
+               $( "#datepicker" ).datepicker();
+               $( "#format" ).change(function() {
+                       $( "#datepicker" ).datepicker( "option", "dateFormat", $( this ).val() );
+               });
        });
        </script>
 </head>
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>Display date feedback in a variety of ways.  Choose a date format from the dropdown, then click on the input and select a date to see it in that format.</p>
 
+<div class="demo-description">
+<p>Display date feedback in a variety of ways.  Choose a date format from the dropdown, then click on the input and select a date to see it in that format.</p>
 </div><!-- End demo-description -->
 
 </body>
index 4ab50e1746e7e1967a1eaef728b86c3842259e5d..32ce2120834af6e7717b9a416e75cdb1c14e2a5b 100644 (file)
@@ -1,17 +1,17 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker - Default functionality</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.datepicker.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               $("#datepicker").datepicker();
+               $( "#datepicker" ).datepicker();
        });
        </script>
 </head>
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>The datepicker is tied to a standard form input field.  Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay.  Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.</p>
 
+<div class="demo-description">
+<p>The datepicker is tied to a standard form input field.  Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay.  Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.</p>
 </div><!-- End demo-description -->
 
 </body>
index c31d8ba8524e7f7aa9812657d8a9def9dd1fc300..12877ab7af0dd2a1948df8018bd7b5a9d87396d7 100644 (file)
@@ -1,17 +1,17 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker - Display month &amp; year menus</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.datepicker.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               $('#datepicker').datepicker({
+               $( "#datepicker" ).datepicker({
                        changeMonth: true,
                        changeYear: true
                });
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>Show month and year dropdowns in place of the static month/year header to facilitate navigation through large timeframes.  Add the boolean <code>changeMonth</code> and <code>changeYear</code> options.</p>
 
+<div class="demo-description">
+<p>Show month and year dropdowns in place of the static month/year header to facilitate navigation through large timeframes.  Add the boolean <code>changeMonth</code> and <code>changeYear</code> options.</p>
 </div><!-- End demo-description -->
 
 </body>
index c87ae17a4691ec615690d5d07e7ce636d2aa09d6..2941f9dc1f3765dc86cab3edcfb514a957d2cdba 100644 (file)
@@ -1,25 +1,28 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker - Display multiple months</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.datepicker.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               var dates = $('#from, #to').datepicker({
+               var dates = $( "#from, #to" ).datepicker({
                        defaultDate: "+1w",
                        changeMonth: true,
                        numberOfMonths: 3,
-                       onSelect: function(selectedDate) {
-                               var option = this.id == "from" ? "minDate" : "maxDate";
-                               var instance = $(this).data("datepicker");
-                               var date = $.datepicker.parseDate(instance.settings.dateFormat || $.datepicker._defaults.dateFormat, selectedDate, instance.settings);
-                               dates.not(this).datepicker("option", option, date);
+                       onSelect: function( selectedDate ) {
+                               var option = this.id == "from" ? "minDate" : "maxDate",
+                                       instance = $( this ).data( "datepicker" );
+                                       date = $.datepicker.parseDate(
+                                               instance.settings.dateFormat ||
+                                               $.datepicker._defaults.dateFormat,
+                                               selectedDate, instance.settings );
+                               dates.not( this ).datepicker( "option", option, date );
                        }
                });
        });
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>Select the date range to search for.</p>
 
+<div class="demo-description">
+<p>Select the date range to search for.</p>
 </div><!-- End demo-description -->
 
 </body>
index 6da3a7792d5d5e1f633309af820ff7d5d86c422f..f6cd0ecd4882708587d30ff7a9fbe1f9e90c588e 100644 (file)
@@ -1,19 +1,19 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker - Icon trigger</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.datepicker.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               $("#datepicker").datepicker({
-                       showOn: 'button',
-                       buttonImage: 'images/calendar.gif',
+               $( "#datepicker" ).datepicker({
+                       showOn: "button",
+                       buttonImage: "images/calendar.gif",
                        buttonImageOnly: true
                });
        });
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>Click the icon next to the input field to show the datepicker.  Set the datepicker to open on focus (default behavior), on icon click, or both.</p>
 
+<div class="demo-description">
+<p>Click the icon next to the input field to show the datepicker.  Set the datepicker to open on focus (default behavior), on icon click, or both.</p>
 </div><!-- End demo-description -->
 
 </body>
index 5749ae757b6f0120beec5416aa212e36987f5328..37c8ef7148c7d46d3a6b916355ee6d0566bbf534 100644 (file)
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker Demos</title>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
+       <link rel="stylesheet" href="../demos.css">
 </head>
 <body>
 
index bf21fc927847c06c18eb5ab307819b024e212bba..d3a522e86f3b565ac05bcd26738619faae155fb8 100644 (file)
@@ -1,17 +1,17 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker - Display inline</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.datepicker.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               $("#datepicker").datepicker();
+               $( "#datepicker" ).datepicker();
        });
        </script>
 </head>
@@ -23,10 +23,10 @@ Date: <div id="datepicker"></div>
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>Display the datepicker embedded in the page instead of in an overlay.  Simply call .datepicker() on a div instead of an input.</p>
 
+<div class="demo-description">
+<p>Display the datepicker embedded in the page instead of in an overlay.  Simply call .datepicker() on a div instead of an input.</p>
 </div><!-- End demo-description -->
 
 </body>
index 022bd0add43bdfb644f4b4ace98ba6aeda1f2809..c2393fdea94477587a01248e2174a671599d22d8 100644 (file)
@@ -1,73 +1,74 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker - Localize calendar</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-af.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-ar.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-az.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-bg.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-bs.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-ca.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-cs.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-da.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-de.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-el.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-en-GB.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-eo.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-es.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-et.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-eu.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-fa.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-fi.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-fo.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-fr.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-fr-CH.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-he.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-hr.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-hu.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-hy.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-id.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-is.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-it.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-ja.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-ko.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-kz.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-lt.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-lv.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-ms.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-nl.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-no.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-pl.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-pt-BR.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-ro.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-ru.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-sk.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-sl.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-sq.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-sr.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-sr-SR.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-sv.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-ta.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-th.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-tr.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-uk.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-vi.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-zh-CN.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-zh-HK.js"></script>
-       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-zh-TW.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.datepicker.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-af.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-ar.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-az.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-bg.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-bs.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-ca.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-cs.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-da.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-de.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-el.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-en-GB.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-eo.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-es.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-et.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-eu.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-fa.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-fi.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-fo.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-fr.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-fr-CH.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-he.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-hr.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-hu.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-hy.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-id.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-is.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-it.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-ja.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-ko.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-kz.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-lt.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-lv.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-ms.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-nl.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-no.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-pl.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-pt-BR.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-ro.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-ru.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-sk.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-sl.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-sq.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-sr.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-sr-SR.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-sv.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-ta.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-th.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-tr.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-uk.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-vi.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-zh-CN.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-zh-HK.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-zh-TW.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               $.datepicker.setDefaults($.datepicker.regional['']);
-               $("#datepicker").datepicker($.datepicker.regional['fr']);
-               $("#locale").change(function() {
-                       $('#datepicker').datepicker('option', $.datepicker.regional[$(this).val()]);
+               $.datepicker.setDefaults( $.datepicker.regional[ "" ] );
+               $( "#datepicker" ).datepicker( $.datepicker.regional[ "fr" ] );
+               $( "#locale" ).change(function() {
+                       $( "#datepicker" ).datepicker( "option",
+                               $.datepicker.regional[ $( this ).val() ] );
                });
        });
        </script>
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>Localize the datepicker calendar language and format (English / Western formatting is the default).  The datepicker includes built-in support for languages that read right-to-left, such as Arabic and Hebrew.</p>
 
+<div class="demo-description">
+<p>Localize the datepicker calendar language and format (English / Western formatting is the default).  The datepicker includes built-in support for languages that read right-to-left, such as Arabic and Hebrew.</p>
 </div><!-- End demo-description -->
 
 </body>
index 7573e6926eed31c706e0473f95ef43edf870030c..8d9106d9baf5cf05227666c55e3fd4704c2af390 100644 (file)
@@ -1,17 +1,17 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker - Restrict date range</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.datepicker.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               $("#datepicker").datepicker({minDate: -20, maxDate: '+1M +10D'});
+               $( "#datepicker" ).datepicker({ minDate: -20, maxDate: "+1M +10D" });
        });
        </script>
 </head>
 
 </div><!-- End demo -->
 
-<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>
 
+<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>
 </div><!-- End demo-description -->
 
 </body>
index 8051ca524a1f949bc248be7140279346969271ca..117b2ca143beb53ad75ba6964a03ae2427ab937a 100644 (file)
@@ -1,17 +1,17 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker - Display multiple months</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.datepicker.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               $('#datepicker').datepicker({
+               $( "#datepicker" ).datepicker({
                        numberOfMonths: 3,
                        showButtonPanel: true
                });
 
 </div><!-- End demo -->
 
-<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 datepicker.</p>
 
+<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 datepicker.</p>
 </div><!-- End demo-description -->
 
 </body>
index 1c0b65559cdb393c98dd8e6cd062bd3ea8983a50..5a96617822b4f1a33beca6860894bbb85042efe4 100644 (file)
@@ -1,17 +1,20 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker - Dates in other months</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.datepicker.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               $("#datepicker").datepicker({showOtherMonths: true, selectOtherMonths: true});
+               $( "#datepicker" ).datepicker({
+                       showOtherMonths: true,
+                       selectOtherMonths: true
+               });
        });
        </script>
 </head>
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
+
+<div class="demo-description">
 <p>The datepicker can show dates that come from other than the main month
        being displayed. These other dates can also be made selectable.</p>
-
 </div><!-- End demo-description -->
 
 </body>
index f6015a2af37be8dd2d5a29b8453bfba86348152e..83e2349b63ff643d569cee2dd382c8a29bdce382 100644 (file)
@@ -1,17 +1,20 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Datepicker - Show week of the year</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.datepicker.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               $("#datepicker").datepicker({showWeek: true, firstDay: 1});
+               $( "#datepicker" ).datepicker({
+                       showWeek: true,
+                       firstDay: 1
+               });
        });
        </script>
 </head>
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
+
+<div class="demo-description">
 <p>The datepicker can show the week of the year. The default calculation follows
        the ISO 8601 definition: the week starts on Monday, the first week of the year
        contains the first Thursday of the year. This means that some days from one
        year may be placed into weeks 'belonging' to another year.</p>
-
 </div><!-- End demo-description -->
 
 </body>