diff options
Diffstat (limited to 'demos/sortable/placeholder.html')
-rw-r--r-- | demos/sortable/placeholder.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/demos/sortable/placeholder.html b/demos/sortable/placeholder.html index d9c7e838c..bb1709290 100644 --- a/demos/sortable/placeholder.html +++ b/demos/sortable/placeholder.html @@ -1,27 +1,27 @@ <!DOCTYPE html> <html lang="en"> <head> - <meta charset="UTF-8" /> + <meta charset="utf-8"> <title>jQuery UI Sortable - Drop placeholder</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.sortable.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.sortable.js"></script> + <link rel="stylesheet" href="../demos.css"> + <style> #sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; } #sortable li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; height: 1.5em; } html>body #sortable li { height: 1.5em; line-height: 1.2em; } .ui-state-highlight { height: 1.5em; line-height: 1.2em; } </style> - <script type="text/javascript"> + <script> $(function() { - $("#sortable").sortable({ - placeholder: 'ui-state-highlight' + $( "#sortable" ).sortable({ + placeholder: "ui-state-highlight" }); - $("#sortable").disableSelection(); + $( "#sortable" ).disableSelection(); }); </script> </head> @@ -40,8 +40,9 @@ </div><!-- End demo --> -<div class="demo-description"> + +<div class="demo-description"> <p> When dragging a sortable item to a new location, other items will make room for the that item by shifting to allow white space between them. Pass a @@ -49,7 +50,6 @@ be visible. Use the boolean <code>forcePlaceholderSize</code> option to set dimensions on the placeholder. </p> - </div><!-- End demo-description --> </body> |