Subversion Repositories Sites.obs-saisons.fr

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
40 aurelien 1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
	<meta charset="UTF-8" />
5
	<title>jQuery UI Sortable - Display as grid</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; }
15
	#sortable li { margin: 3px 3px 3px 0; padding: 1px; float: left; width: 100px; height: 90px; font-size: 4em; text-align: center; }
16
	</style>
17
	<script type="text/javascript">
18
	$(function() {
19
		$("#sortable").sortable();
20
		$("#sortable").disableSelection();
21
	});
22
	</script>
23
</head>
24
<body>
25
<div class="demo">
26
 
27
<ul id="sortable">
28
	<li class="ui-state-default">1</li>
29
	<li class="ui-state-default">2</li>
30
	<li class="ui-state-default">3</li>
31
	<li class="ui-state-default">4</li>
32
	<li class="ui-state-default">5</li>
33
	<li class="ui-state-default">6</li>
34
	<li class="ui-state-default">7</li>
35
	<li class="ui-state-default">8</li>
36
	<li class="ui-state-default">9</li>
37
	<li class="ui-state-default">10</li>
38
	<li class="ui-state-default">11</li>
39
	<li class="ui-state-default">12</li>
40
</ul>
41
 
42
</div><!-- End demo -->
43
 
44
<div class="demo-description">
45
 
46
<p>
47
	To arrange sortable items as a grid, give them identical dimensions and
48
	float them using CSS.
49
</p>
50
 
51
</div><!-- End demo-description -->
52
 
53
</body>
54
</html>