Last change
on this file since 24245 was 24245, checked in by sjb48, 13 years ago |
Oran code for supporting format changes to document.
|
-
Property svn:executable
set to
*
|
File size:
1.5 KB
|
Rev | Line | |
---|
[24245] | 1 | <!doctype html>
|
---|
| 2 | <html lang="en">
|
---|
| 3 | <head>
|
---|
| 4 | <title>jQuery UI Resizable - Synchronous resize</title>
|
---|
| 5 | <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
|
---|
| 6 | <script type="text/javascript" src="../../jquery-1.4.1.js"></script>
|
---|
| 7 | <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
|
---|
| 8 | <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
|
---|
| 9 | <script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
|
---|
| 10 | <script type="text/javascript" src="../../ui/jquery.ui.resizable.js"></script>
|
---|
| 11 | <link type="text/css" href="../demos.css" rel="stylesheet" />
|
---|
| 12 | <style type="text/css">
|
---|
| 13 | #resizable { background-position: top left; }
|
---|
| 14 | #resizable, #also { width: 150px; height: 120px; padding: 0.5em; }
|
---|
| 15 | #resizable h3, #also h3 { text-align: center; margin: 0; }
|
---|
| 16 | #also { margin-top: 1em; }
|
---|
| 17 | </style>
|
---|
| 18 | <script type="text/javascript">
|
---|
| 19 | $(function() {
|
---|
| 20 | $("#resizable").resizable({
|
---|
| 21 | alsoResize: '#also'
|
---|
| 22 | });
|
---|
| 23 | $("#also").resizable();
|
---|
| 24 | });
|
---|
| 25 | </script>
|
---|
| 26 | </head>
|
---|
| 27 | <body>
|
---|
| 28 | <div class="demo">
|
---|
| 29 |
|
---|
| 30 | <div id="resizable" class="ui-widget-header">
|
---|
| 31 | <h3 class="ui-state-active">Resize</h3>
|
---|
| 32 | </div>
|
---|
| 33 |
|
---|
| 34 | <div id="also" class="ui-widget-content">
|
---|
| 35 | <h3 class="ui-widget-header">will also resize</h3>
|
---|
| 36 | </div>
|
---|
| 37 |
|
---|
| 38 | </div><!-- End demo -->
|
---|
| 39 |
|
---|
| 40 | <div class="demo-description">
|
---|
| 41 |
|
---|
| 42 | <p>Resize multiple elements simultaneously by clicking and dragging the sides of one. Pass a shared selector into the <code>alsoResize</code> option.</p>
|
---|
| 43 |
|
---|
| 44 | </div><!-- End demo-description -->
|
---|
| 45 | </body>
|
---|
| 46 | </html>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.