jquery-ui/demos/progressbar/resize.html

34 lines
1.2 KiB
HTML
Raw Normal View History

2012-09-10 15:33:46 +00:00
<!doctype html>
2008-12-30 20:40:41 +00:00
<html lang="en">
<head>
2010-09-10 14:27:32 +00:00
<meta charset="utf-8">
<title>jQuery UI Progressbar - Resizable</title>
2010-09-10 14:27:32 +00:00
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
2012-09-21 01:41:47 +00:00
<script src="../../jquery-1.8.2.js"></script>
2010-09-10 14:27:32 +00:00
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"></script>
<script src="../../ui/jquery.ui.mouse.js"></script>
<script src="../../ui/jquery.ui.progressbar.js"></script>
<script src="../../ui/jquery.ui.resizable.js"></script>
<link rel="stylesheet" href="../demos.css">
<script>
2008-12-30 20:40:41 +00:00
$(function() {
2010-09-10 14:27:32 +00:00
$( "#progressbar" ).progressbar({
2008-12-30 20:40:41 +00:00
value: 37
});
2010-09-10 14:27:32 +00:00
$( "#progressbarWrapper" ).resizable();
2008-12-30 20:40:41 +00:00
});
</script>
</head>
<body>
2010-09-10 14:27:32 +00:00
<div id="progressbarWrapper" style="height:30px; " class="ui-widget-default">
<div id="progressbar" style="height:100%;"></div>
</div>
2008-12-30 20:40:41 +00:00
2010-09-10 14:27:32 +00:00
<div class="demo-description">
<p>The progress bar's widths are specified in percentages for flexible sizing so it will resize to fit its container. Try resizing the height and width of this bar to see how it maintains the correct proportions. (This is not necessarily a real-world example, but it's a good illustration of how flexibly all the plugins are coded.)</p>
2012-09-10 15:33:46 +00:00
</div>
2008-12-30 20:40:41 +00:00
</body>
</html>