Skip to content
Permalink
Browse files

Added new resizable slider example

  • Loading branch information
Todd Parker
Todd Parker committed Dec 30, 2008
1 parent 56727f4 commit 04069424ced0b329d8335afcfba6a93de1181dea
Showing with 63 additions and 1 deletion.
  1. +17 −1 demos/progressbar/default.html
  2. +1 −0 demos/progressbar/index.html
  3. +45 −0 demos/progressbar/resize.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>
@@ -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>

@@ -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>

0 comments on commit 0406942

Please sign in to comment.
You can’t perform that action at this time.