diff options
Diffstat (limited to 'static/development-bundle/demos/selectable/display-grid.html')
-rw-r--r-- | static/development-bundle/demos/selectable/display-grid.html | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/static/development-bundle/demos/selectable/display-grid.html b/static/development-bundle/demos/selectable/display-grid.html new file mode 100644 index 0000000..3843c77 --- /dev/null +++ b/static/development-bundle/demos/selectable/display-grid.html | |||
@@ -0,0 +1,50 @@ | |||
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> | ||