diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-06-30 22:14:51 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-07-21 11:00:41 -0400 |
commit | 4ea6f8f0b42c630174de684767de54bd078a5578 (patch) | |
tree | b81e7325208fb9bbced8f241083ff36315e460de | |
parent | df37d7d505edc429f4238f105e61ff3644a17b8b (diff) | |
download | jquery-ui-4ea6f8f0b42c630174de684767de54bd078a5578.tar.gz jquery-ui-4ea6f8f0b42c630174de684767de54bd078a5578.zip |
Resizable: Update demos to use AMD
Ref #10119
-rw-r--r-- | demos/resizable/animate.html | 10 | ||||
-rw-r--r-- | demos/resizable/aspect-ratio.html | 10 | ||||
-rw-r--r-- | demos/resizable/constrain-area.html | 10 | ||||
-rw-r--r-- | demos/resizable/default.html | 10 | ||||
-rw-r--r-- | demos/resizable/helper.html | 10 | ||||
-rw-r--r-- | demos/resizable/max-min.html | 10 | ||||
-rw-r--r-- | demos/resizable/snap-to-grid.html | 10 | ||||
-rw-r--r-- | demos/resizable/synchronous-resize.html | 10 | ||||
-rw-r--r-- | demos/resizable/textarea.html | 10 | ||||
-rw-r--r-- | demos/resizable/visual-feedback.html | 10 |
10 files changed, 20 insertions, 80 deletions
diff --git a/demos/resizable/animate.html b/demos/resizable/animate.html index b06e41ddb..344bba014 100644 --- a/demos/resizable/animate.html +++ b/demos/resizable/animate.html @@ -4,23 +4,17 @@ <meta charset="utf-8"> <title>jQuery UI Resizable - Animate</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/mouse.js"></script> - <script src="../../ui/resizable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> #resizable { width: 150px; height: 150px; padding: 0.5em; } #resizable h3 { text-align: center; margin: 0; } .ui-resizable-helper { border: 1px dotted gray; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#resizable" ).resizable({ animate: true }); - }); </script> </head> <body> diff --git a/demos/resizable/aspect-ratio.html b/demos/resizable/aspect-ratio.html index 2da2a2926..3878b18ec 100644 --- a/demos/resizable/aspect-ratio.html +++ b/demos/resizable/aspect-ratio.html @@ -4,22 +4,16 @@ <meta charset="utf-8"> <title>jQuery UI Resizable - Preserve aspect ratio</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/mouse.js"></script> - <script src="../../ui/resizable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> #resizable { width: 160px; height: 90px; padding: 0.5em; } #resizable h3 { text-align: center; margin: 0; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#resizable" ).resizable({ aspectRatio: 16 / 9 }); - }); </script> </head> <body> diff --git a/demos/resizable/constrain-area.html b/demos/resizable/constrain-area.html index e6ce3b28b..e000fcf07 100644 --- a/demos/resizable/constrain-area.html +++ b/demos/resizable/constrain-area.html @@ -4,11 +4,6 @@ <meta charset="utf-8"> <title>jQuery UI Resizable - Constrain resize area</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/mouse.js"></script> - <script src="../../ui/resizable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> #container { width: 300px; height: 300px; } @@ -16,12 +11,11 @@ #resizable { background-position: top left; width: 150px; height: 150px; } #resizable, #container { padding: 0.5em; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#resizable" ).resizable({ containment: "#container" }); - }); </script> </head> <body> diff --git a/demos/resizable/default.html b/demos/resizable/default.html index a77afc34e..60b3380ef 100644 --- a/demos/resizable/default.html +++ b/demos/resizable/default.html @@ -4,20 +4,14 @@ <meta charset="utf-8"> <title>jQuery UI Resizable - Default functionality</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/mouse.js"></script> - <script src="../../ui/resizable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> #resizable { width: 150px; height: 150px; padding: 0.5em; } #resizable h3 { text-align: center; margin: 0; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#resizable" ).resizable(); - }); </script> </head> <body> diff --git a/demos/resizable/helper.html b/demos/resizable/helper.html index fff0c8bd9..d10e5b523 100644 --- a/demos/resizable/helper.html +++ b/demos/resizable/helper.html @@ -4,23 +4,17 @@ <meta charset="utf-8"> <title>jQuery UI Resizable - Helper</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/mouse.js"></script> - <script src="../../ui/resizable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> #resizable { width: 150px; height: 150px; padding: 0.5em; } #resizable h3 { text-align: center; margin: 0; } .ui-resizable-helper { border: 2px dotted #00F; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#resizable" ).resizable({ helper: "ui-resizable-helper" }); - }); </script> </head> <body> diff --git a/demos/resizable/max-min.html b/demos/resizable/max-min.html index 88e8ca3f3..ed43ec795 100644 --- a/demos/resizable/max-min.html +++ b/demos/resizable/max-min.html @@ -4,25 +4,19 @@ <meta charset="utf-8"> <title>jQuery UI Resizable - Maximum / minimum size</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/mouse.js"></script> - <script src="../../ui/resizable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> #resizable { width: 200px; height: 150px; padding: 5px; } #resizable h3 { text-align: center; margin: 0; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#resizable" ).resizable({ maxHeight: 250, maxWidth: 350, minHeight: 150, minWidth: 200 }); - }); </script> </head> <body> diff --git a/demos/resizable/snap-to-grid.html b/demos/resizable/snap-to-grid.html index 6e13ae618..ce897a98e 100644 --- a/demos/resizable/snap-to-grid.html +++ b/demos/resizable/snap-to-grid.html @@ -4,22 +4,16 @@ <meta charset="utf-8"> <title>jQuery UI Resizable - Snap to grid</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/mouse.js"></script> - <script src="../../ui/resizable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> #resizable { width: 150px; height: 150px; padding: 0.5em; } #resizable h3 { text-align: center; margin: 0; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#resizable" ).resizable({ grid: 50 }); - }); </script> </head> <body> diff --git a/demos/resizable/synchronous-resize.html b/demos/resizable/synchronous-resize.html index e645ea351..ddc89cd88 100644 --- a/demos/resizable/synchronous-resize.html +++ b/demos/resizable/synchronous-resize.html @@ -4,11 +4,6 @@ <meta charset="utf-8"> <title>jQuery UI Resizable - Synchronous resize</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/mouse.js"></script> - <script src="../../ui/resizable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> #resizable { background-position: top left; } @@ -16,13 +11,12 @@ #resizable h3, #also h3 { text-align: center; margin: 0; } #also { margin-top: 1em; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#resizable" ).resizable({ alsoResize: "#also" }); $( "#also" ).resizable(); - }); </script> </head> <body> diff --git a/demos/resizable/textarea.html b/demos/resizable/textarea.html index 04b180a11..f3e0fa25e 100644 --- a/demos/resizable/textarea.html +++ b/demos/resizable/textarea.html @@ -4,23 +4,17 @@ <meta charset="utf-8"> <title>jQuery UI Resizable - Textarea</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/mouse.js"></script> - <script src="../../ui/resizable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> .ui-resizable-se { bottom: 17px; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#resizable" ).resizable({ handles: "se" }); - }); </script> </head> <body> diff --git a/demos/resizable/visual-feedback.html b/demos/resizable/visual-feedback.html index aa66fb5cf..a9a1c3f39 100644 --- a/demos/resizable/visual-feedback.html +++ b/demos/resizable/visual-feedback.html @@ -4,23 +4,17 @@ <meta charset="utf-8"> <title>jQuery UI Resizable - Visual feedback</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/mouse.js"></script> - <script src="../../ui/resizable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> #resizable { width: 150px; height: 150px; padding: 0.5em; } #resizable h3 { text-align: center; margin: 0; } .ui-resizable-ghost { border: 1px dotted gray; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#resizable" ).resizable({ ghost: true }); - }); </script> </head> <body> |