annotate jquery-ui/development-bundle/demos/selectable/display-grid.html @ 0:b2e4605f20b2

beta version
author dwinter
date Thu, 30 Jun 2011 09:07:49 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
1 <!DOCTYPE html>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
2 <html lang="en">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
3 <head>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
4 <meta charset="utf-8">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
5 <title>jQuery UI Selectable - Display as grid</title>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
6 <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
7 <script src="../../jquery-1.5.1.js"></script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
8 <script src="../../ui/jquery.ui.core.js"></script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
9 <script src="../../ui/jquery.ui.widget.js"></script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
10 <script src="../../ui/jquery.ui.mouse.js"></script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
11 <script src="../../ui/jquery.ui.selectable.js"></script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
12 <link rel="stylesheet" href="../demos.css">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
13
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
14 <style>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
15 #feedback { font-size: 1.4em; }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
16 #selectable .ui-selecting { background: #FECA40; }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
17 #selectable .ui-selected { background: #F39814; color: white; }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
18 #selectable { list-style-type: none; margin: 0; padding: 0; }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
19 #selectable li { margin: 3px; padding: 1px; float: left; width: 100px; height: 80px; font-size: 4em; text-align: center; }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
20 </style>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
21 <script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
22 $(function() {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
23 $( "#selectable" ).selectable();
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
24 });
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
25 </script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
26 </head>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
27 <body>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
28
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
29 <div class="demo">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
30
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
31 <ol id="selectable">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
32 <li class="ui-state-default">1</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
33 <li class="ui-state-default">2</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
34 <li class="ui-state-default">3</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
35 <li class="ui-state-default">4</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
36 <li class="ui-state-default">5</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
37 <li class="ui-state-default">6</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
38 <li class="ui-state-default">7</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
39 <li class="ui-state-default">8</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
40 <li class="ui-state-default">9</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
41 <li class="ui-state-default">10</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
42 <li class="ui-state-default">11</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
43 <li class="ui-state-default">12</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
44 </ol>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
45
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
46 </div><!-- End demo -->
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
47
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
48
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
49
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
50 <div class="demo-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
51 <p>To arrange selectable items as a grid, give them identical dimensions and float them using CSS.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
52 </div><!-- End demo-description -->
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
53
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
54 </body>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
55 </html>