diff options
Diffstat (limited to 'static/development-bundle/demos/sortable/default.html')
-rw-r--r-- | static/development-bundle/demos/sortable/default.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/static/development-bundle/demos/sortable/default.html b/static/development-bundle/demos/sortable/default.html new file mode 100644 index 0000000..6df9ec1 --- /dev/null +++ b/static/development-bundle/demos/sortable/default.html | |||
@@ -0,0 +1,48 @@ | |||
1 | <!doctype html> | ||
2 | <html lang="en"> | ||
3 | <head> | ||
4 | <title>jQuery UI Sortable - Default functionality</title> | ||
5 | <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" /> | ||
6 | <script type="text/javascript" src="../../jquery-1.3.2.js"></script> | ||
7 | <script type="text/javascript" src="../../ui/ui.core.js"></script> | ||
8 | <script type="text/javascript" src="../../ui/ui.sortable.js"></script> | ||
9 | <link type="text/css" href="../demos.css" rel="stylesheet" /> | ||
10 | <style type="text/css"> | ||
11 | #sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; } | ||
12 | #sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; height: 18px; } | ||
13 | #sortable li span { position: absolute; margin-left: -1.3em; } | ||
14 | </style> | ||
15 | <script type="text/javascript"> | ||
16 | $(function() { | ||
17 | $("#sortable").sortable(); | ||
18 | $("#sortable").disableSelection(); | ||
19 | }); | ||
20 | </script> | ||
21 | </head> | ||
22 | <body> | ||
23 | <div class="demo"> | ||
24 | |||
25 | <ul id="sortable"> | ||
26 | <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 1</li> | ||
27 | <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 2</li> | ||
28 | <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 3</li> | ||
29 | <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 4</li> | ||
30 | <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 5</li> | ||
31 | <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 6</li> | ||
32 | <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 7</li> | ||
33 | </ul> | ||
34 | |||
35 | </div><!-- End demo --> | ||
36 | |||
37 | <div class="demo-description"> | ||
38 | |||
39 | <p> | ||
40 | Enable a group of DOM elements to be sortable. Click on and drag an | ||
41 | element to a new spot within the list, and the other items will adjust to | ||
42 | fit. By default, sortable items share <code>draggable</code> properties. | ||
43 | </p> | ||
44 | |||
45 | </div><!-- End demo-description --> | ||
46 | |||
47 | </body> | ||
48 | </html> | ||