diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-09-27 15:42:06 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-09-27 15:42:06 -0400 |
commit | 6b6e1d76e701c80a2431c2806550e6b2160074dc (patch) | |
tree | 33047892e5d7a7f38bb2dc15f919bc2db1bf6fea /demos/resizable/constrain-area.html | |
parent | f02c41ec51a72d62c8f3e3de47f31b3cb1976a9b (diff) | |
download | jquery-ui-6b6e1d76e701c80a2431c2806550e6b2160074dc.tar.gz jquery-ui-6b6e1d76e701c80a2431c2806550e6b2160074dc.zip |
Resizable demos: coding standards.
Diffstat (limited to 'demos/resizable/constrain-area.html')
-rw-r--r-- | demos/resizable/constrain-area.html | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/demos/resizable/constrain-area.html b/demos/resizable/constrain-area.html index 2fdbbd957..559dfebc2 100644 --- a/demos/resizable/constrain-area.html +++ b/demos/resizable/constrain-area.html @@ -1,30 +1,31 @@ <!DOCTYPE html> <html lang="en"> <head> - <meta charset="UTF-8" /> + <meta charset="utf-8"> <title>jQuery UI Resizable - Constrain resize area</title> - <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" /> - <script type="text/javascript" src="../../jquery-1.4.2.js"></script> - <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script> - <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script> - <script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script> - <script type="text/javascript" src="../../ui/jquery.ui.resizable.js"></script> - <link type="text/css" href="../demos.css" rel="stylesheet" /> - <style type="text/css"> + <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> + <script src="../../jquery-1.4.2.js"></script> + <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.resizable.js"></script> + <link rel="stylesheet" href="../demos.css"> + <style\> #container { width: 300px; height: 300px; } #container h3 { text-align: center; margin: 0; margin-bottom: 10px; } #resizable { background-position: top left; width: 150px; height: 150px; } #resizable, #container { padding: 0.5em; } </style> - <script type="text/javascript"> + <script> $(function() { - $("#resizable").resizable({ - containment: '#container' + $( "#resizable" ).resizable({ + containment: "#container" }); }); </script> </head> <body> + <div class="demo"> <div id="container" class="ui-widget-content"> @@ -36,10 +37,11 @@ </div><!-- End demo --> -<div class="demo-description"> -<p>Define the boundaries of the resizable area. Use the <code>containment</code> option to specify a parent DOM element or a jQuery selector, like 'document.'</p> +<div class="demo-description"> +<p>Define the boundaries of the resizable area. Use the <code>containment</code> option to specify a parent DOM element or a jQuery selector, like 'document.'</p> </div><!-- End demo-description --> + </body> </html> |