2010-03-12 03:18:34 +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" >
2009-01-20 20:13:03 +00:00
< title > jQuery UI Progressbar - Resizable< / title >
2010-09-10 14:27:32 +00:00
< link rel = "stylesheet" href = "../../themes/base/jquery.ui.all.css" >
2011-10-18 14:00:03 +00:00
< script src = "../../jquery-1.6.4.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 >
< div class = "demo" >
2008-12-31 01:20:50 +00:00
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
< / div > <!-- End demo -->
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 >
2008-12-30 20:40:41 +00:00
< / div > <!-- End demo - description -->
< / body >
< / html >