]> source.dussan.org Git - jquery-ui.git/commitdiff
progressbar demos: Added animated progressbar demo
authorRichard Worth <rdworth@gmail.com>
Sat, 31 Jan 2009 06:08:17 +0000 (06:08 +0000)
committerRichard Worth <rdworth@gmail.com>
Sat, 31 Jan 2009 06:08:17 +0000 (06:08 +0000)
demos/progressbar/animated.html [new file with mode: 0644]
demos/progressbar/images/pbar-ani.gif [new file with mode: 0644]
demos/progressbar/index.html

diff --git a/demos/progressbar/animated.html b/demos/progressbar/animated.html
new file mode 100644 (file)
index 0000000..f932384
--- /dev/null
@@ -0,0 +1,42 @@
+<!doctype html>\r
+<html lang="en">\r
+<head>\r
+       <title>jQuery UI Progressbar - Animated</title>\r
+       <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />\r
+       <script type="text/javascript" src="../../jquery-1.3.1.js"></script>\r
+       <script type="text/javascript" src="../../ui/ui.core.js"></script>\r
+       <script type="text/javascript" src="../../ui/ui.progressbar.js"></script>\r
+       <link type="text/css" href="../demos.css" rel="stylesheet" />\r
+       <style type="text/css">\r
+               .ui-progressbar-value { background-image: url(images/pbar-ani.gif);\r
+       </style>\r
+       <script type="text/javascript">\r
+       $(function() {\r
+               $("#progressbar").progressbar({\r
+                       value: 59\r
+               });\r
+       });\r
+       </script>\r
+</head>\r
+<body>\r
+\r
+<div class="demo">\r
+\r
+<div id="progressbar"></div>\r
+\r
+</div><!-- End demo -->\r
+\r
+<div class="demo-description">\r
+\r
+<p>\r
+This progressbar has an animated fill by setting the\r
+<code>background-image</code>\r
+on the\r
+<code>.ui-progressbar-value</code>\r
+element, using css.\r
+</p>\r
+\r
+</div><!-- End demo-description -->\r
+\r
+</body>\r
+</html>\r
diff --git a/demos/progressbar/images/pbar-ani.gif b/demos/progressbar/images/pbar-ani.gif
new file mode 100644 (file)
index 0000000..0dfd45b
Binary files /dev/null and b/demos/progressbar/images/pbar-ani.gif differ
index 50299a1049b38d8647f31af1ee64d0173369fba6..542bf144622b2960c346eac91d98071d32f29228 100644 (file)
@@ -10,6 +10,7 @@
        <h4>Examples</h4>
        <ul>
                <li class="demo-config-on"><a href="default.html">Default functionality</a></li>
+               <li><a href="animated.html">Animated</a></li>
                <li><a href="resize.html">Resizable progressbar</a></li>
        </ul>
 </div>