]> source.dussan.org Git - jquery-ui.git/commitdiff
Dstepicker - Demonstrate opening/closing animations
authorKeith Wood <kbwood.au@gmail.com>
Tue, 8 Dec 2009 00:08:44 +0000 (00:08 +0000)
committerKeith Wood <kbwood.au@gmail.com>
Tue, 8 Dec 2009 00:08:44 +0000 (00:08 +0000)
demos/datepicker/animation.html [new file with mode: 0644]
demos/datepicker/index.html

diff --git a/demos/datepicker/animation.html b/demos/datepicker/animation.html
new file mode 100644 (file)
index 0000000..804cc3d
--- /dev/null
@@ -0,0 +1,54 @@
+<!doctype html>\r
+<html lang="en">\r
+<head>\r
+       <title>jQuery UI Datepicker - Animations</title>\r
+       <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />\r
+       <script type="text/javascript" src="../../jquery-1.3.2.js"></script>\r
+       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>\r
+       <script type="text/javascript" src="../../ui/jquery.ui.effects.core.js"></script>\r
+       <script type="text/javascript" src="../../ui/jquery.ui.effects.blind.js"></script>\r
+       <script type="text/javascript" src="../../ui/jquery.ui.effects.bounce.js"></script>\r
+       <script type="text/javascript" src="../../ui/jquery.ui.effects.clip.js"></script>\r
+       <script type="text/javascript" src="../../ui/jquery.ui.effects.drop.js"></script>\r
+       <script type="text/javascript" src="../../ui/jquery.ui.effects.fold.js"></script>\r
+       <script type="text/javascript" src="../../ui/jquery.ui.effects.slide.js"></script>\r
+       <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>\r
+       <link type="text/css" href="../demos.css" rel="stylesheet" />\r
+       <script type="text/javascript">\r
+       $(function() {\r
+               $("#datepicker").datepicker();\r
+               $("#anim").change(function() { $('#datepicker').datepicker('option', {showAnim: $(this).val()}); });\r
+       });\r
+       </script>\r
+</head>\r
+<body>\r
+\r
+<div class="demo">\r
+\r
+<p>Date: <input type="text" id="datepicker" size="30"/></p>\r
+\r
+<p>Animations:<br />\r
+       <select id="anim">\r
+               <option value="show">Show (default)</option>\r
+               <option value="slideDown">Slide down</option>\r
+               <option value="fadeIn">Fade in</option>\r
+               <!-- <option value="blind">Blind (UI Effect)</option>\r
+               <option value="bounce">Bounce (UI Effect)</option>\r
+               <option value="clip">Clip (UI Effect)</option>\r
+               <option value="drop">Drop (UI Effect)</option>\r
+               <option value="fold">Fold (UI Effect)</option>\r
+               <option value="slide">Slide (UI Effect)</option> -->\r
+               <option value="">None</option>\r
+       </select>\r
+</p>\r
+\r
+</div><!-- End demo -->\r
+\r
+<div class="demo-description">\r
+\r
+<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>\r
+\r
+</div><!-- End demo-description -->\r
+\r
+</body>\r
+</html>\r
index f66e0ede3289aa061314cd73b252ebf4e49c363b..5bba2ecc0b41f85238a2786f635c5b8169adaea7 100644 (file)
@@ -21,6 +21,7 @@
                <li><a href="show-week.html">Show week of the year</a></li>             
                <li><a href="multiple-calendars.html">Display multiple months</a></li>          
                <li><a href="icon-trigger.html">Icon trigger</a></li>
+               <li><a href="animation.html">Animations</a></li>
                <li><a href="event-search.html">Event Search</a></li>
        </ul>
 </div>