diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-12-31 14:17:03 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-12-31 14:17:03 +0000 |
commit | 24f46c501e231e7f1ffa91d1490a02139123852e (patch) | |
tree | f68fdd46642a1fdd54003a8c02ec73faa2a58f79 /demos | |
parent | 64adc9136fb6966132ed295dfed8a313e80b03f1 (diff) | |
download | jquery-ui-24f46c501e231e7f1ffa91d1490a02139123852e.tar.gz jquery-ui-24f46c501e231e7f1ffa91d1490a02139123852e.zip |
demos: added wrappers for sortables
Diffstat (limited to 'demos')
-rw-r--r-- | demos/sortable/connectwith.html | 15 | ||||
-rw-r--r-- | demos/sortable/default.html | 15 | ||||
-rw-r--r-- | demos/sortable/delaydistance.html | 15 | ||||
-rw-r--r-- | demos/sortable/droponempty.html | 15 | ||||
-rw-r--r-- | demos/sortable/droppable.html | 11 | ||||
-rw-r--r-- | demos/sortable/floating.html | 11 | ||||
-rw-r--r-- | demos/sortable/items.html | 11 | ||||
-rw-r--r-- | demos/sortable/placeholder.html | 11 |
8 files changed, 96 insertions, 8 deletions
diff --git a/demos/sortable/connectwith.html b/demos/sortable/connectwith.html index 95fe9bde5..c394b90bd 100644 --- a/demos/sortable/connectwith.html +++ b/demos/sortable/connectwith.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; } - 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> diff --git a/demos/sortable/default.html b/demos/sortable/default.html index 06e3ff0f6..e1d539b69 100644 --- a/demos/sortable/default.html +++ b/demos/sortable/default.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> diff --git a/demos/sortable/delaydistance.html b/demos/sortable/delaydistance.html index 8e5bc6033..c652666b7 100644 --- a/demos/sortable/delaydistance.html +++ b/demos/sortable/delaydistance.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> diff --git a/demos/sortable/droponempty.html b/demos/sortable/droponempty.html index 84f135510..96b86c738 100644 --- a/demos/sortable/droponempty.html +++ b/demos/sortable/droponempty.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> diff --git a/demos/sortable/droppable.html b/demos/sortable/droppable.html index b6e2b5081..7aafaf2db 100644 --- a/demos/sortable/droppable.html +++ b/demos/sortable/droppable.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> diff --git a/demos/sortable/floating.html b/demos/sortable/floating.html index aae9dbdf9..77fd8df19 100644 --- a/demos/sortable/floating.html +++ b/demos/sortable/floating.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> diff --git a/demos/sortable/items.html b/demos/sortable/items.html index 876c3cefb..66df1269c 100644 --- a/demos/sortable/items.html +++ b/demos/sortable/items.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> diff --git a/demos/sortable/placeholder.html b/demos/sortable/placeholder.html index 4404821ff..634a09349 100644 --- a/demos/sortable/placeholder.html +++ b/demos/sortable/placeholder.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> |