aboutsummaryrefslogtreecommitdiffstats
path: root/demos/resizable
diff options
context:
space:
mode:
Diffstat (limited to 'demos/resizable')
-rw-r--r--demos/resizable/alsoresize.html29
-rw-r--r--demos/resizable/animate.html25
-rw-r--r--demos/resizable/aspectratio.html25
-rw-r--r--demos/resizable/containment.html27
-rw-r--r--demos/resizable/default.html23
-rw-r--r--demos/resizable/delay.html27
-rw-r--r--demos/resizable/distance.html27
-rw-r--r--demos/resizable/ghost.html25
-rw-r--r--demos/resizable/grid.html25
-rw-r--r--demos/resizable/index.html10
-rw-r--r--demos/resizable/max.html26
-rw-r--r--demos/resizable/min.html26
12 files changed, 295 insertions, 0 deletions
diff --git a/demos/resizable/alsoresize.html b/demos/resizable/alsoresize.html
new file mode 100644
index 000000000..c25dda29f
--- /dev/null
+++ b/demos/resizable/alsoresize.html
@@ -0,0 +1,29 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Resizable - Also 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.resizable.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#resizable").resizable({
+ alsoResize: '#also'
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div id="resizable" style="width: 200px; height: 200px; background-color: #f00;">
+ <p>Resize me</p>
+</div>
+
+<div id="also" style="width: 100px; height: 100px; background-color: #0f0; position: absolute, top: 300px;">
+ <p>I will resize with the other div!</p>
+</div>
+
+</body>
+</html>
diff --git a/demos/resizable/animate.html b/demos/resizable/animate.html
new file mode 100644
index 000000000..60ed76c44
--- /dev/null
+++ b/demos/resizable/animate.html
@@ -0,0 +1,25 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Resizable - Animate 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.resizable.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#resizable").resizable({
+ animate: true
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div id="resizable" style="width: 200px; height: 200px; background-color: #f00;">
+ <p>Resize me</p>
+</div>
+
+</body>
+</html>
diff --git a/demos/resizable/aspectratio.html b/demos/resizable/aspectratio.html
new file mode 100644
index 000000000..3e1442847
--- /dev/null
+++ b/demos/resizable/aspectratio.html
@@ -0,0 +1,25 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Resizable - Aspect Ratio 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.resizable.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#resizable").resizable({
+ aspectRatio: 2
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div id="resizable" style="width: 400px; height: 200px; background-color: #f00;">
+ <p>Resize me</p>
+</div>
+
+</body>
+</html>
diff --git a/demos/resizable/containment.html b/demos/resizable/containment.html
new file mode 100644
index 000000000..42c505fe0
--- /dev/null
+++ b/demos/resizable/containment.html
@@ -0,0 +1,27 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Resizable - Containment 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.resizable.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#resizable").resizable({
+ containment: '#container'
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div id="container" style="width: 600px; height: 600px; background-color: #0f0;">
+ <div id="resizable" style="width: 200px; height: 200px; background-color: #f00;">
+ <p>Resize me</p>
+ </div>
+</div>
+
+</body>
+</html>
diff --git a/demos/resizable/default.html b/demos/resizable/default.html
new file mode 100644
index 000000000..e3f3587a8
--- /dev/null
+++ b/demos/resizable/default.html
@@ -0,0 +1,23 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Resizable - Default 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.resizable.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#resizable").resizable();
+ });
+ </script>
+</head>
+<body>
+
+<div id="resizable" style="width: 200px; height: 200px; background-color: #f00;">
+ <p>Resize me</p>
+</div>
+
+</body>
+</html>
diff --git a/demos/resizable/delay.html b/demos/resizable/delay.html
new file mode 100644
index 000000000..be0171ebf
--- /dev/null
+++ b/demos/resizable/delay.html
@@ -0,0 +1,27 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Resizable - Delay 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.resizable.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#resizable").resizable({
+ delay: 1000
+ });
+ });
+ </script>
+</head>
+<body>
+
+<p>You must drag the div for at least 1 second before it will resize.</p>
+
+<div id="resizable" style="width: 200px; height: 200px; background-color: #f00;">
+ <p>Resize me</p>
+</div>
+
+</body>
+</html>
diff --git a/demos/resizable/distance.html b/demos/resizable/distance.html
new file mode 100644
index 000000000..2975ae5c2
--- /dev/null
+++ b/demos/resizable/distance.html
@@ -0,0 +1,27 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Resizable - Distance 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.resizable.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#resizable").resizable({
+ distance: 40
+ });
+ });
+ </script>
+</head>
+<body>
+
+<p>You must drag the div at least 40 pixels before it will resize.</p>
+
+<div id="resizable" style="width: 200px; height: 200px; background-color: #f00;">
+ <p>Resize me</p>
+</div>
+
+</body>
+</html>
diff --git a/demos/resizable/ghost.html b/demos/resizable/ghost.html
new file mode 100644
index 000000000..4052ba5ec
--- /dev/null
+++ b/demos/resizable/ghost.html
@@ -0,0 +1,25 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Resizable - Ghost 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.resizable.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#resizable").resizable({
+ ghost: true
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div id="resizable" style="width: 200px; height: 200px; background-color: #f00;">
+ <p>Resize me</p>
+</div>
+
+</body>
+</html>
diff --git a/demos/resizable/grid.html b/demos/resizable/grid.html
new file mode 100644
index 000000000..b0f57a245
--- /dev/null
+++ b/demos/resizable/grid.html
@@ -0,0 +1,25 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Resizable - Grid 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.resizable.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#resizable").resizable({
+ grid: 50
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div id="resizable" style="width: 200px; height: 200px; background-color: #f00;">
+ <p>Resize me</p>
+</div>
+
+</body>
+</html>
diff --git a/demos/resizable/index.html b/demos/resizable/index.html
index 2638983bb..e07831d1b 100644
--- a/demos/resizable/index.html
+++ b/demos/resizable/index.html
@@ -9,6 +9,16 @@
<dl class="nav">
<dt>Resizable</dt>
<dd><a href="default.html">Default</a></dd>
+ <dd><a href="alsoresize.html">Also Resize</a></dd>
+ <dd><a href="animate.html">Animate</a></dd>
+ <dd><a href="aspectratio.html">Aspect Ratio</a></dd>
+ <dd><a href="containment.html">Containment</a></dd>
+ <dd><a href="delay.html">Delay</a></dd>
+ <dd><a href="distance.html">Distance</a></dd>
+ <dd><a href="ghost.html">Ghost</a></dd>
+ <dd><a href="grid.html">Grid</a></dd>
+ <dd><a href="max.html">Max Height / Width</a></dd>
+ <dd><a href="min.html">Min Height / Width</a></dd>
</dl>
</body>
diff --git a/demos/resizable/max.html b/demos/resizable/max.html
new file mode 100644
index 000000000..ce5210066
--- /dev/null
+++ b/demos/resizable/max.html
@@ -0,0 +1,26 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Resizable - Max Height / Width 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.resizable.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#resizable").resizable({
+ maxHeight: 400,
+ maxWidth: 600
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div id="resizable" style="width: 200px; height: 200px; background-color: #f00;">
+ <p>Resize me</p>
+</div>
+
+</body>
+</html>
diff --git a/demos/resizable/min.html b/demos/resizable/min.html
new file mode 100644
index 000000000..880f1d77b
--- /dev/null
+++ b/demos/resizable/min.html
@@ -0,0 +1,26 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Resizable - Min Height / Width 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.resizable.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#resizable").resizable({
+ minHeight: 50,
+ minWidth: 100
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div id="resizable" style="width: 200px; height: 200px; background-color: #f00;">
+ <p>Resize me</p>
+</div>
+
+</body>
+</html>