diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-06-30 19:01:59 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-07-21 11:00:41 -0400 |
commit | febd120d75d2acb61906949dcd41ffd760585472 (patch) | |
tree | c48ad932bc801602a198aff036db75f21e2fef7b /demos/position | |
parent | f5eb4eff60003497aecfe0cedd902bb084074560 (diff) | |
download | jquery-ui-febd120d75d2acb61906949dcd41ffd760585472.tar.gz jquery-ui-febd120d75d2acb61906949dcd41ffd760585472.zip |
Position: Update demos to use AMD
Ref #10119
Diffstat (limited to 'demos/position')
-rw-r--r-- | demos/position/cycler.html | 9 | ||||
-rw-r--r-- | demos/position/default.html | 11 |
2 files changed, 4 insertions, 16 deletions
diff --git a/demos/position/cycler.html b/demos/position/cycler.html index f7e0b1302..af0c00a82 100644 --- a/demos/position/cycler.html +++ b/demos/position/cycler.html @@ -4,10 +4,6 @@ <meta charset="utf-8"> <title>jQuery UI Position - Image Cycler</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/position.js"></script> <link rel="stylesheet" href="../demos.css"> <style> body { @@ -23,8 +19,8 @@ position: absolute; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> function left( element, using ) { element.position({ my: "right middle", @@ -83,7 +79,6 @@ center( $( "img:eq(1)" ), animate ); right( $( "img:eq(2)" ), animate ); }); - }); </script> </head> <body> diff --git a/demos/position/default.html b/demos/position/default.html index 284653c96..142787980 100644 --- a/demos/position/default.html +++ b/demos/position/default.html @@ -4,12 +4,6 @@ <meta charset="utf-8"> <title>jQuery UI Position - 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/draggable.js"></script> - <script src="../../ui/position.js"></script> <link rel="stylesheet" href="../demos.css"> <style> #parent { @@ -41,8 +35,8 @@ margin-left: 15px; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js" data-modules="draggable"> function position() { $( ".positionable" ).position({ of: $( "#parent" ), @@ -61,7 +55,6 @@ }); position(); - }); </script> </head> <body> |