PluginProbe
RSVP and Event Management / 1.3.0
RSVP and Event Management v1.3.0
trunk 0.5.0 0.6.0 0.7.0 0.8.0 0.9.0 0.9.5 1.0.0 1.1.0 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.5.0 1.6.0 1.6.1 1.6.2 1.6.5 1.7.0 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 All 136 releases
rsvp / jquery-ui-1.7.2.custom / development-bundle / demos / selectable / display-grid.html

display-grid.html in RSVP and Event Management 1.3.0, at jquery-ui-1.7.2.custom/development-bundle/demos/selectable/display-grid.html

51 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <title>jQuery UI Selectable - Display as grid</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.selectable.js"></script>
9 <link type="text/css" href="../demos.css" rel="stylesheet" />
10
11 <style type="text/css">
12 #feedback { font-size: 1.4em; }
13 #selectable .ui-selecting { background: #FECA40; }
14 #selectable .ui-selected { background: #F39814; color: white; }
15 #selectable { list-style-type: none; margin: 0; padding: 0; }
16 #selectable li { margin: 3px; padding: 1px; float: left; width: 100px; height: 80px; font-size: 4em; text-align: center; }
17 </style>
18 <script type="text/javascript">
19 $(function() {
20 $("#selectable").selectable();
21 });
22 </script>
23 </head>
24 <body>
25 <div class="demo">
26
27 <ol id="selectable">
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 </ol>
41
42 </div><!-- End demo -->
43
44 <div class="demo-description">
45
46 <p>To arrange selectable items as a grid, give them identical dimensions and float them using CSS.</p>
47
48 </div><!-- End demo-description -->
49 </body>
50 </html>
51