aboutsummaryrefslogtreecommitdiffstats
path: root/demos/resizable/synchronous-resize.html
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-09-27 15:42:06 -0400
committerScott González <scott.gonzalez@gmail.com>2010-09-27 15:42:06 -0400
commit6b6e1d76e701c80a2431c2806550e6b2160074dc (patch)
tree33047892e5d7a7f38bb2dc15f919bc2db1bf6fea /demos/resizable/synchronous-resize.html
parentf02c41ec51a72d62c8f3e3de47f31b3cb1976a9b (diff)
downloadjquery-ui-6b6e1d76e701c80a2431c2806550e6b2160074dc.tar.gz
jquery-ui-6b6e1d76e701c80a2431c2806550e6b2160074dc.zip
Resizable demos: coding standards.
Diffstat (limited to 'demos/resizable/synchronous-resize.html')
-rw-r--r--demos/resizable/synchronous-resize.html32
1 files changed, 17 insertions, 15 deletions
diff --git a/demos/resizable/synchronous-resize.html b/demos/resizable/synchronous-resize.html
index 3b3b37241..5a27c825c 100644
--- a/demos/resizable/synchronous-resize.html
+++ b/demos/resizable/synchronous-resize.html
@@ -1,31 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta charset="UTF-8" />
+ <meta charset="utf-8">
<title>jQuery UI Resizable - Synchronous resize</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>
#resizable { background-position: top left; }
#resizable, #also { width: 150px; height: 120px; padding: 0.5em; }
#resizable h3, #also h3 { text-align: center; margin: 0; }
#also { margin-top: 1em; }
</style>
- <script type="text/javascript">
+ <script>
$(function() {
- $("#resizable").resizable({
- alsoResize: '#also'
+ $( "#resizable" ).resizable({
+ alsoResize: "#also"
});
- $("#also").resizable();
+ $( "#also" ).resizable();
});
</script>
</head>
<body>
+
<div class="demo">
<div id="resizable" class="ui-widget-header">
@@ -38,10 +39,11 @@
</div><!-- End demo -->
-<div class="demo-description">
-<p>Resize multiple elements simultaneously by clicking and dragging the sides of one. Pass a shared selector into the <code>alsoResize</code> option.</p>
+<div class="demo-description">
+<p>Resize multiple elements simultaneously by clicking and dragging the sides of one. Pass a shared selector into the <code>alsoResize</code> option.</p>
</div><!-- End demo-description -->
+
</body>
</html>