diff options
Diffstat (limited to 'static/development-bundle/demos/resizable/delay-start.html')
-rw-r--r-- | static/development-bundle/demos/resizable/delay-start.html | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/static/development-bundle/demos/resizable/delay-start.html b/static/development-bundle/demos/resizable/delay-start.html new file mode 100644 index 0000000..df20f8e --- /dev/null +++ b/static/development-bundle/demos/resizable/delay-start.html | |||
@@ -0,0 +1,49 @@ | |||
1 | <!doctype html> | ||
2 | <html lang="en"> | ||
3 | <head> | ||
4 | <title>jQuery UI Resizable - 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.resizable.js"></script> | ||
9 | <link type="text/css" href="../demos.css" rel="stylesheet" /> | ||
10 | <style type="text/css"> | ||
11 | #resizable, #resizable2 { width: 150px; height: 150px; padding: 0.5em; } | ||
12 | #resizable h3, #resizable2 h3 { text-align: center; margin: 0; } | ||
13 | </style> | ||
14 | <script type="text/javascript"> | ||
15 | $(function() { | ||
16 | $("#resizable").resizable({ | ||
17 | delay: 1000 | ||
18 | }); | ||
19 | |||
20 | $("#resizable2").resizable({ | ||
21 | distance: 40 | ||
22 | }); | ||
23 | }); | ||
24 | </script> | ||
25 | </head> | ||
26 | <body> | ||
27 | <div class="demo"> | ||
28 | |||
29 | <h3 class="docs">Time delay (ms):</h3> | ||
30 | <div id="resizable" class="ui-widget-content"> | ||
31 | <h3 class="ui-widget-header">Time</h3> | ||
32 | </div> | ||
33 | |||
34 | <h3 class="docs">Distance delay (px):</h3> | ||
35 | <div id="resizable2" class="ui-widget-content"> | ||
36 | <h3 class="ui-widget-header">Distance</h3> | ||
37 | </div> | ||
38 | |||
39 | <!-- ADD DISTANCE DEMO --> | ||
40 | |||
41 | </div><!-- End demo --> | ||
42 | |||
43 | <div class="demo-description"> | ||
44 | |||
45 | <p>Delay the start of resizng for a number of milliseconds with the <code>delay</code> option; prevent resizing until the cursor is held down and dragged a specifed number of pixels with the <code>distance</code> option.</p> | ||
46 | |||
47 | </div><!-- End demo-description --> | ||
48 | </body> | ||
49 | </html> | ||