diff options
Diffstat (limited to 'dist/index.html')
-rw-r--r-- | dist/index.html | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/dist/index.html b/dist/index.html index 98ca2bd..6272dd6 100644 --- a/dist/index.html +++ b/dist/index.html @@ -38,7 +38,7 @@ .ebook .buyp a iframe{ margin-bottom: -5px; } </style> - <link rel="stylesheet" media="all" type="text/css" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" /> + <link rel="stylesheet" media="all" type="text/css" href="http://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css" /> <link rel="stylesheet" media="all" type="text/css" href="jquery-ui-timepicker-addon.css" /> </head> @@ -112,6 +112,8 @@ .ui-timepicker-rtl dl dt{ float: right; clear: right; } .ui-timepicker-rtl dl dd { margin: 0 45% 10px 10px; } </pre> + + <p>If you prefer a hosted CDN there are a couple available: <a href="http://cdnjs.com/libraries/jquery-ui-timepicker-addon" title="Timepicker on CDNJS">CDNJS</a>, <a href="http://www.jsdelivr.com/#!jquery.ui.timepicker.addon" title="Timepicker on jsDelivr">jsDelivr</a>.</p> <br /> <h3>Requirements</h3> @@ -124,9 +126,9 @@ <br /> <h3>Version</h3> - <p>Version 1.4.5</p> + <p>Version 1.4.6</p> - <p>Last updated on 2014-05-26</p> + <p>Last updated on 2014-08-09</p> <p>jQuery Timepicker Addon is currently available for use in all personal or commercial projects under the MIT license.</p> <p><a href="http://trentrichardson.com/Impromptu/MIT-LICENSE.txt" title="MIT License">MIT License</a></p> @@ -459,7 +461,8 @@ closeText: 'Закрыть' }); </pre> - <p>However, if you plan to use timepicker extensively you will need to include (build your own) localization. It is simply assigning those same variables to an object. As you see in the example below we maintain a separate object for timepicker. This way we aren't bound to any changes within datepicker.</p> + <p>However, if you plan to use timepicker extensively you will need to include (build your own) localization. It is simply assigning those same variables to an object.</p> + <p>As you see in the example below we maintain a separate object for timepicker. This way we aren't bound to any future changes within datepicker.</p> <pre>$.datepicker.regional['ru'] = { closeText: 'Закрыть', @@ -500,8 +503,14 @@ $.timepicker.regional['ru'] = { }; $.timepicker.setDefaults($.timepicker.regional['ru']); </pre> + <p>Now all you have to do is call timepicker and the Russian localization is used. Generally you only need to include the localization file, it will setDefaults() for you.</p> - <p>You can also visit <a href="http://docs.jquery.com/UI/Datepicker/Localization" title="localization for datepicker" target="_BLANK">localization for datepicker</a> for more information about datepicker localizations.</p> + <p>As of version 1.4.5 a combined file of all localizations available is included. This file DOES NOT call setDefaults(), so you will need to pass, or merge with your options.</p> + +<pre>$('#example123').timepicker($.timepicker.regional['ru']); +</pre> + + <p>Localization files for datepicker are typically available in your jQueryUI downloads.</p> </div> <!-- ############################################################################# --> @@ -557,6 +566,20 @@ $('#basic_example_3').datetimepicker({ </pre> </div> + + <!-- ============= example --> + <div class="example-container"> + <p>Timepicker comes with a collection of localization files and one combined file with all available localizations. $.timepicker.regional["your localization code here"] is a simple object with preset options:</p> + <div> + <input type="text" name="basic_example_4" id="basic_example_4" value="" /> + </div> +<pre> +$('#basic_example_4').timepicker( + $.timepicker.regional['es'] +); +</pre> + </div> + <h3 id="timezone_examples">Using Timezones</h3> <!-- ============= example --> @@ -952,8 +975,9 @@ $('#utility_example_3').text(JSON.stringify( <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.min.js"></script> - <script type="text/javascript" src="http://code.jquery.com/ui/1.10.4/jquery-ui.min.js"></script> + <script type="text/javascript" src="http://code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script> <script type="text/javascript" src="jquery-ui-timepicker-addon.js"></script> + <script type="text/javascript" src="i18n/jquery-ui-timepicker-addon-i18n.min.js"></script> <script type="text/javascript" src="jquery-ui-sliderAccess.js"></script> <script type="text/javascript"> |