web/static/css/jq-css/demos/sortable/placeholder.html
changeset 30 81d408373dde
equal deleted inserted replaced
29:1f2c13ece5e9 30:81d408373dde
       
     1 <!DOCTYPE html>
       
     2 <html lang="en">
       
     3 <head>
       
     4 	<meta charset="UTF-8" />
       
     5 	<title>jQuery UI Sortable - Drop placeholder</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.sortable.js"></script>
       
    12 	<link type="text/css" href="../demos.css" rel="stylesheet" />
       
    13 	<style type="text/css">
       
    14 	#sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
       
    15 	#sortable li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; height: 1.5em; }
       
    16 	html>body #sortable li { height: 1.5em; line-height: 1.2em; }
       
    17 	.ui-state-highlight { height: 1.5em; line-height: 1.2em; }
       
    18 	</style>
       
    19 	<script type="text/javascript">
       
    20 	$(function() {
       
    21 		$("#sortable").sortable({
       
    22 			placeholder: 'ui-state-highlight'
       
    23 		});
       
    24 		$("#sortable").disableSelection();
       
    25 	});
       
    26 	</script>
       
    27 </head>
       
    28 <body>
       
    29 <div class="demo">
       
    30 
       
    31 <ul id="sortable">
       
    32 	<li class="ui-state-default">Item 1</li>
       
    33 	<li class="ui-state-default">Item 2</li>
       
    34 	<li class="ui-state-default">Item 3</li>
       
    35 	<li class="ui-state-default">Item 4</li>
       
    36 	<li class="ui-state-default">Item 5</li>
       
    37 	<li class="ui-state-default">Item 6</li>
       
    38 	<li class="ui-state-default">Item 7</li>
       
    39 </ul>
       
    40 
       
    41 </div><!-- End demo -->
       
    42 
       
    43 <div class="demo-description">
       
    44 
       
    45 <p>
       
    46 	When dragging a sortable item to a new location, other items will make room
       
    47 	for the that item by shifting to allow white space between them. Pass a
       
    48 	class into the <code>placeholder</code> option to style that space to
       
    49 	be visible.  Use the boolean <code>forcePlaceholderSize</code> option
       
    50 	to set dimensions on the placeholder.
       
    51 </p>
       
    52 
       
    53 </div><!-- End demo-description -->
       
    54 
       
    55 </body>
       
    56 </html>