PluginProbe
RSVP and Event Management / 1.3.0
RSVP and Event Management v1.3.0
trunk 0.5.0 0.6.0 0.7.0 0.8.0 0.9.0 0.9.5 1.0.0 1.1.0 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.5.0 1.6.0 1.6.1 1.6.2 1.6.5 1.7.0 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 All 136 releases
rsvp / jquery-ui-1.7.2.custom / development-bundle / demos / sortable / delay-start.html

delay-start.html in RSVP and Event Management 1.3.0, at jquery-ui-1.7.2.custom/development-bundle/demos/sortable/delay-start.html

65 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <title>jQuery UI Sortable - Delay start</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 #sortable1, #sortable2 { list-style-type: none; margin: 0; padding: 0; margin-bottom: 15px;zoom: 1; }
12 #sortable1 li, #sortable2 li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; width: 95%; }
13 </style>
14 <script type="text/javascript">
15 $(function() {
16 $("#sortable1").sortable({
17 delay: 300
18 });
19
20 $("#sortable2").sortable({
21 distance: 15
22 });
23
24 $("li").disableSelection();
25 });
26 </script>
27 </head>
28 <body>
29 <div class="demo">
30
31 <h3 class="docs">Time delay of 300ms:</h3>
32
33 <ul id="sortable1">
34 <li class="ui-state-default">Item 1</li>
35 <li class="ui-state-default">Item 2</li>
36 <li class="ui-state-default">Item 3</li>
37 <li class="ui-state-default">Item 4</li>
38 </ul>
39
40 <h3 class="docs">Distance delay of 15px:</h3>
41
42 <ul id="sortable2">
43 <li class="ui-state-default">Item 1</li>
44 <li class="ui-state-default">Item 2</li>
45 <li class="ui-state-default">Item 3</li>
46 <li class="ui-state-default">Item 4</li>
47 </ul>
48
49 </div><!-- End demo -->
50
51 <div class="demo-description">
52
53 <p>
54 Prevent accidental sorting either by delay (time) or distance. Set a number of
55 milliseconds the element needs to be dragged before sorting starts
56 with the <code>delay</code> option. Set a distance in pixels the element
57 needs to be dragged before sorting starts with the <code>distance</code>
58 option.
59 </p>
60
61 </div><!-- End demo-description -->
62
63 </body>
64 </html>
65