Skip to content
Permalink
Browse files

demos: added wrappers for sortables

  • Loading branch information
Paul Bakaus
Paul Bakaus committed Dec 31, 2008
1 parent 64adc91 commit 24f46c501e231e7f1ffa91d1490a02139123852e
@@ -8,8 +8,8 @@
<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() {
@@ -20,6 +20,7 @@
</script>
</head>
<body>
<div class="demo">

<ul>
<li class="ui-state-default">Item 1</li>
@@ -37,5 +38,15 @@
<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>
@@ -8,8 +8,8 @@
<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() {
@@ -18,6 +18,7 @@
</script>
</head>
<body>
<div class="demo">

<ul>
<li class="ui-state-default">Item 1</li>
@@ -32,5 +33,15 @@
<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>
@@ -8,8 +8,8 @@
<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() {
@@ -26,6 +26,7 @@
</script>
</head>
<body>
<div class="demo">

<p>Delay of 1000ms</p>

@@ -47,5 +48,15 @@
<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>
@@ -8,8 +8,8 @@
<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() {
@@ -25,6 +25,7 @@
</script>
</head>
<body>
<div class="demo">

<ul class='droptrue'>
<li class="ui-state-default">Can be dropped..</li>
@@ -47,5 +48,15 @@

<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>
@@ -27,6 +27,7 @@
</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>
@@ -40,5 +41,15 @@
<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>
@@ -18,6 +18,7 @@
</script>
</head>
<body>
<div class="demo">

<ul id="sortable">
<li class="ui-state-default">Item 1</li>
@@ -34,5 +35,15 @@
<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>
@@ -23,6 +23,7 @@
</script>
</head>
<body>
<div class="demo">

<p>Completely exclude items from the sorting logic using the 'items' option</p>

@@ -44,5 +45,15 @@
<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>
@@ -20,6 +20,7 @@
</script>
</head>
<body>
<div class="demo">

<ul id="sortable">
<li class="ui-state-default">Item 1</li>
@@ -34,5 +35,15 @@
<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>

0 comments on commit 24f46c5

Please sign in to comment.
You can’t perform that action at this time.