<script type="text/javascript" src="../../ui/ui.sortable.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
- ul { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; }
- li { margin: 3px; padding: 2px; width: 120px; }
+ .demo ul { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; }
+ .demo li { margin: 3px; padding: 2px; width: 120px; }
</style>
<script type="text/javascript">
$(function() {
</script>
</head>
<body>
+<div class="demo">
<ul>
<li class="ui-state-default">Item 1</li>
<li class="ui-state-highlight">Item 5</li>
</ul>
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+<p>
+The easiest way to make an element draggable. Hold down the mouse and drag it around.
+</p>
+
+</div><!-- End demo-description -->
+
</body>
</html>
<script type="text/javascript" src="../../ui/ui.sortable.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
- ul { list-style-type: none; margin: 0; padding: 0; }
- li { margin: 3px; padding: 2px; }
+ .demo ul { list-style-type: none; margin: 0; padding: 0; }
+ .demo li { margin: 3px; padding: 2px; }
</style>
<script type="text/javascript">
$(function() {
</script>
</head>
<body>
+<div class="demo">
<ul>
<li class="ui-state-default">Item 1</li>
<li class="ui-state-default">Item 10</li>
</ul>
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+<p>
+The easiest way to make an element draggable. Hold down the mouse and drag it around.
+</p>
+
+</div><!-- End demo-description -->
+
</body>
</html>
<script type="text/javascript" src="../../ui/ui.sortable.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
- ul { list-style-type: none; margin: 0; padding: 0; margin-bottom: 20px; }
- li { margin: 3px; padding: 2px; }
+ .demo ul { list-style-type: none; margin: 0; padding: 0; margin-bottom: 20px; }
+ .demo li { margin: 3px; padding: 2px; }
</style>
<script type="text/javascript">
$(function() {
</script>
</head>
<body>
+<div class="demo">
<p>Delay of 1000ms</p>
<li class="ui-state-default">Item 5</li>
</ul>
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+<p>
+The easiest way to make an element draggable. Hold down the mouse and drag it around.
+</p>
+
+</div><!-- End demo-description -->
+
</body>
</html>
<script type="text/javascript" src="../../ui/ui.sortable.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
- ul { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; background: #eee; padding: 5px; width: 133px;}
- li { margin: 3px; padding: 2px; width: 120px; }
+ .demo ul { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; background: #eee; padding: 5px; width: 133px;}
+ .demo li { margin: 3px; padding: 2px; width: 120px; }
</style>
<script type="text/javascript">
$(function() {
</script>
</head>
<body>
+<div class="demo">
<ul class='droptrue'>
<li class="ui-state-default">Can be dropped..</li>
<br clear="both" />
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+<p>
+The easiest way to make an element draggable. Hold down the mouse and drag it around.
+</p>
+
+</div><!-- End demo-description -->
+
</body>
</html>
</script>
</head>
<body>
+<div class="demo">
<div id="droppable" class="ui-widget-header">
<p>Drop a list item on me - sortable items are automatically connected to droppables.</p>
<li class="ui-state-default">Item 5</li>
</ul>
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+<p>
+The easiest way to make an element draggable. Hold down the mouse and drag it around.
+</p>
+
+</div><!-- End demo-description -->
+
</body>
</html>
</script>
</head>
<body>
+<div class="demo">
<ul id="sortable">
<li class="ui-state-default">Item 1</li>
<li class="ui-state-default">Item 12</li>
</ul>
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+<p>
+The easiest way to make an element draggable. Hold down the mouse and drag it around.
+</p>
+
+</div><!-- End demo-description -->
+
</body>
</html>
</script>
</head>
<body>
+<div class="demo">
<p>Completely exclude items from the sorting logic using the 'items' option</p>
<li class="ui-state-default">Item 5</li>
</ul>
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+<p>
+The easiest way to make an element draggable. Hold down the mouse and drag it around.
+</p>
+
+</div><!-- End demo-description -->
+
</body>
</html>
</script>
</head>
<body>
+<div class="demo">
<ul id="sortable">
<li class="ui-state-default">Item 1</li>
<li class="ui-state-default">Item 10</li>
</ul>
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+<p>
+The easiest way to make an element draggable. Hold down the mouse and drag it around.
+</p>
+
+</div><!-- End demo-description -->
+
</body>
</html>