Skip to content

Commit

Permalink
Position: Update demos to use AMD
Browse files Browse the repository at this point in the history
Ref #10119
  • Loading branch information
arschmitz committed Jul 21, 2015
1 parent f5eb4ef commit febd120
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
9 changes: 2 additions & 7 deletions demos/position/cycler.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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",
Expand Down Expand Up @@ -83,7 +79,6 @@
center( $( "img:eq(1)" ), animate );
right( $( "img:eq(2)" ), animate );
});
});
</script>
</head>
<body>
Expand Down
11 changes: 2 additions & 9 deletions demos/position/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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" ),
Expand All @@ -61,7 +55,6 @@
});

position();
});
</script>
</head>
<body>
Expand Down

0 comments on commit febd120

Please sign in to comment.