aboutsummaryrefslogtreecommitdiffstats
path: root/demos/progressbar
diff options
context:
space:
mode:
Diffstat (limited to 'demos/progressbar')
-rw-r--r--demos/progressbar/default.html18
-rw-r--r--demos/progressbar/index.html1
-rw-r--r--demos/progressbar/resize.html45
3 files changed, 63 insertions, 1 deletions
diff --git a/demos/progressbar/default.html b/demos/progressbar/default.html
index 470fdc2f8..5a53999a7 100644
--- a/demos/progressbar/default.html
+++ b/demos/progressbar/default.html
@@ -17,7 +17,23 @@
</head>
<body>
-<div id="progressbar"></div>
+<div class="demo">
+
+ <div id="progressbar"></div>
+
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>This is the default determinate progress bar that is used to provide the current % complete status of a process. If the actual percent complete status cannot be calculated, an indeterminate progress bar (coming soon) or spinner animation is a better way to provide user feedback.</p>
+
+<p>The progressbar plugin accepts a single option of Value which can be updated programmatically to animate the bar.</p>
+
+</div><!-- End demo-description -->
+
+
</body>
</html>
diff --git a/demos/progressbar/index.html b/demos/progressbar/index.html
index f517f244d..9cc4209bc 100644
--- a/demos/progressbar/index.html
+++ b/demos/progressbar/index.html
@@ -10,6 +10,7 @@
<h4>Progressbar</h4>
<ul>
<li class="demo-config-on"><a href="default.html">Default</a></li>
+ <li class="demo-config-on"><a href="resize.html">Resizable</a></li>
</ul>
</div>
diff --git a/demos/progressbar/resize.html b/demos/progressbar/resize.html
new file mode 100644
index 000000000..c50a75bdf
--- /dev/null
+++ b/demos/progressbar/resize.html
@@ -0,0 +1,45 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Progressbar - Resize 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>
+ <script type="text/javascript" src="../../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../../ui/ui.progressbar.js"></script>
+ <script type="text/javascript" src="../../ui/ui.resizable.js"></script>
+
+ <script type="text/javascript">
+ $(function() {
+ $("#progressbar").progressbar({
+ value: 37
+ });
+ });
+ $(function() {
+ $("#progressbarWrapper").resizable({
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div class="demo">
+
+ <div id="progressbarWrapper" style="height:10px; padding:2px;" class="ui-widget-default">
+ <div id="progressbar" style="height:100%;"></div>
+ </div>
+
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>Since the progress bar is coded in percentages for flexible sizing, it will resize to fit whatever block it's placed inside. Try resizing the height and width of this bar to see how it maintains the correct proportions.</p>
+
+</div><!-- End demo-description -->
+
+
+
+</body>
+</html>