client/player/development-bundle/demos/resizable/delay-start.html
changeset 57 3a3c15c462f8
parent 48 44d58d2e90b5
parent 56 da0957782d03
child 58 ec1d0e7dcb53
equal deleted inserted replaced
48:44d58d2e90b5 57:3a3c15c462f8
     1 <!DOCTYPE html>
       
     2 <html lang="en">
       
     3 <head>
       
     4 	<meta charset="UTF-8" />
       
     5 	<title>jQuery UI Resizable - Delay start</title>
       
     6 	<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
       
     7 	<script type="text/javascript" src="../../jquery-1.4.2.js"></script>
       
     8 	<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
       
     9 	<script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
       
    10 	<script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
       
    11 	<script type="text/javascript" src="../../ui/jquery.ui.resizable.js"></script>
       
    12 	<link type="text/css" href="../demos.css" rel="stylesheet" />
       
    13 	<style type="text/css">
       
    14 	#resizable, #resizable2 { width: 150px; height: 150px; padding: 0.5em; }
       
    15 	#resizable h3, #resizable2 h3 { text-align: center; margin: 0; }
       
    16 	</style>
       
    17 	<script type="text/javascript">
       
    18 	$(function() {
       
    19 		$("#resizable").resizable({
       
    20 			delay: 1000
       
    21 		});
       
    22 		
       
    23 		$("#resizable2").resizable({
       
    24 			distance: 40
       
    25 		});
       
    26 	});
       
    27 	</script>
       
    28 </head>
       
    29 <body>
       
    30 <div class="demo">
       
    31 	
       
    32 <h3 class="docs">Time delay (ms):</h3>
       
    33 <div id="resizable" class="ui-widget-content">
       
    34 	<h3 class="ui-widget-header">Time</h3>
       
    35 </div>
       
    36 
       
    37 <h3 class="docs">Distance delay (px):</h3>
       
    38 <div id="resizable2" class="ui-widget-content">
       
    39 	<h3 class="ui-widget-header">Distance</h3>
       
    40 </div>
       
    41 
       
    42 <!-- ADD DISTANCE DEMO -->
       
    43 
       
    44 </div><!-- End demo -->
       
    45 
       
    46 <div class="demo-description">
       
    47 
       
    48 <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>
       
    49 
       
    50 </div><!-- End demo-description -->
       
    51 </body>
       
    52 </html>