Mercurial > hg > MPIWGThesaurus
comparison jquery-ui/development-bundle/demos/sortable/default.html @ 0:b2e4605f20b2
beta version
author | dwinter |
---|---|
date | Thu, 30 Jun 2011 09:07:49 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b2e4605f20b2 |
---|---|
1 <!DOCTYPE html> | |
2 <html lang="en"> | |
3 <head> | |
4 <meta charset="utf-8"> | |
5 <title>jQuery UI Sortable - Default functionality</title> | |
6 <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> | |
7 <script src="../../jquery-1.5.1.js"></script> | |
8 <script src="../../ui/jquery.ui.core.js"></script> | |
9 <script src="../../ui/jquery.ui.widget.js"></script> | |
10 <script src="../../ui/jquery.ui.mouse.js"></script> | |
11 <script src="../../ui/jquery.ui.sortable.js"></script> | |
12 <link rel="stylesheet" href="../demos.css"> | |
13 <style> | |
14 #sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; } | |
15 #sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; height: 18px; } | |
16 #sortable li span { position: absolute; margin-left: -1.3em; } | |
17 </style> | |
18 <script> | |
19 $(function() { | |
20 $( "#sortable" ).sortable(); | |
21 $( "#sortable" ).disableSelection(); | |
22 }); | |
23 </script> | |
24 </head> | |
25 <body> | |
26 <div class="demo"> | |
27 | |
28 <ul id="sortable"> | |
29 <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 1</li> | |
30 <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 2</li> | |
31 <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 3</li> | |
32 <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 4</li> | |
33 <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 5</li> | |
34 <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 6</li> | |
35 <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 7</li> | |
36 </ul> | |
37 | |
38 </div><!-- End demo --> | |
39 | |
40 | |
41 | |
42 <div class="demo-description"> | |
43 <p> | |
44 Enable a group of DOM elements to be sortable. Click on and drag an | |
45 element to a new spot within the list, and the other items will adjust to | |
46 fit. By default, sortable items share <code>draggable</code> properties. | |
47 </p> | |
48 </div><!-- End demo-description --> | |
49 | |
50 </body> | |
51 </html> |