| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | <title>jQuery UI Selectable - Default functionality</title> |
| 7 | <link rel="stylesheet" href="../../themes/base/all.css"> |
| 8 | <link rel="stylesheet" href="../demos.css"> |
| 9 | |
| 10 | <style> |
| 11 | #feedback { font-size: 1.4em; } |
| 12 | #selectable .ui-selecting { background: #FECA40; } |
| 13 | #selectable .ui-selected { background: #F39814; color: white; } |
| 14 | #selectable { list-style-type: none; margin: 0; padding: 0; width: 60%; } |
| 15 | #selectable li { margin: 3px; padding: 0.4em; font-size: 1.4em; height: 18px; } |
| 16 | </style> |
| 17 | <script src="../../external/requirejs/require.js"></script> |
| 18 | <script src="../bootstrap.js"> |
| 19 | $( "#selectable" ).selectable(); |
| 20 | </script> |
| 21 | </head> |
| 22 | <body> |
| 23 | |
| 24 | <ol id="selectable"> |
| 25 | <li class="ui-widget-content">Item 1</li> |
| 26 | <li class="ui-widget-content">Item 2</li> |
| 27 | <li class="ui-widget-content">Item 3</li> |
| 28 | <li class="ui-widget-content">Item 4</li> |
| 29 | <li class="ui-widget-content">Item 5</li> |
| 30 | <li class="ui-widget-content">Item 6</li> |
| 31 | <li class="ui-widget-content">Item 7</li> |
| 32 | </ol> |
| 33 | |
| 34 | <div class="demo-description"> |
| 35 | <p>Enable a DOM element (or group of elements) to be selectable. Draw a box with your cursor to select items. Hold down the Ctrl key to make multiple non-adjacent selections. </p> |
| 36 | </div> |
| 37 | </body> |
| 38 | </html> |