aboutsummaryrefslogtreecommitdiffstats
path: root/ui/demos
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-06-04 02:34:33 +0000
committerRichard Worth <rdworth@gmail.com>2008-06-04 02:34:33 +0000
commit26c16a7e6fc66107819fd9900bc7e7daec561a7f (patch)
tree3856267f99dc2645ba9bfa897863239c95f8dfe9 /ui/demos
parent9caa12ad6521770dd5217dc1b1a77345a7c90418 (diff)
downloadjquery-ui-26c16a7e6fc66107819fd9900bc7e7daec561a7f.tar.gz
jquery-ui-26c16a7e6fc66107819fd9900bc7e7daec561a7f.zip
Set svn:eol-style to native
Diffstat (limited to 'ui/demos')
-rw-r--r--ui/demos/real-world/accordion-drawers/index.html514
-rw-r--r--ui/demos/real-world/effects/demo.js128
-rw-r--r--ui/demos/real-world/effects/index.html238
-rw-r--r--ui/demos/real-world/effects/style.css70
-rw-r--r--ui/demos/real-world/image-cropper/index.html462
-rw-r--r--ui/demos/real-world/image-cropper/real-world.css208
-rw-r--r--ui/demos/real-world/layout/demo.css82
-rw-r--r--ui/demos/real-world/layout/demo.js192
-rw-r--r--ui/demos/real-world/layout/index.html186
-rw-r--r--ui/demos/real-world/photo-manager/index.html252
-rw-r--r--ui/demos/real-world/photo-manager/js/demo.js260
-rw-r--r--ui/demos/real-world/photo-manager/js/jquery.blockUI.js722
-rw-r--r--ui/demos/real-world/photo-manager/theme/css/screen.css358
-rw-r--r--ui/demos/real-world/product-slider/index.html370
-rw-r--r--ui/demos/real-world/splitpane/css/demo.css298
-rw-r--r--ui/demos/real-world/splitpane/index.html192
16 files changed, 2266 insertions, 2266 deletions
diff --git a/ui/demos/real-world/accordion-drawers/index.html b/ui/demos/real-world/accordion-drawers/index.html
index 48a396472..80c4df95d 100644
--- a/ui/demos/real-world/accordion-drawers/index.html
+++ b/ui/demos/real-world/accordion-drawers/index.html
@@ -1,257 +1,257 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
- <title>Slide Demo - Fixed Drawer</title>
- <style type="text/css" media="screen">
- <!--
-/*************************************/
-/* Blueprint: reset.css */
-
-html, body, div, span, applet, object, iframe,
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-a, abbr, acronym, address, big, cite, code,
-del, dfn, em, font, img, ins, kbd, q, s, samp,
-small, strike, strong, sub, sup, tt, var,
-dl, dt, dd, ol, ul, li,
-fieldset, form, label, legend,
-table, caption, tbody, tfoot, thead, tr, th, td {
- margin: 0;
- padding: 0;
- border: 0;
- outline: 0;
- font-weight: inherit;
- font-style: inherit;
- font-size: 100%;
- font-family: inherit;
- vertical-align: baseline;
-}
-
-/* Remember to define focus styles! */
-:focus {
- outline: 0;
-}
-body {
- line-height: 1;
- color: black;
- background: white;
-}
-ol, ul {
- list-style: none;
-}
-
-/* Tables still need 'cellspacing="0"' in the markup. */
-table {
- border-collapse: separate;
- border-spacing: 0;
-}
-caption, th, td {
- text-align: left;
- font-weight: normal;
-}
-
-/* Remove possible quote marks (") from <q>, <blockquote>. */
-blockquote:before, blockquote:after,
-q:before, q:after {
- content: "";
-}
-blockquote, q {
- quotes: "" "";
-}
-
-/*************************************/
-/* Demo Styles */
- .capt,
- .capb {
- background: url("images/caps.gif") no-repeat;
- height:4px;
- width:100%;
- /*position:absolute;*/
- z-index:100;
- margin:0px;
- padding:0px;
- }
- .capt {
- position:absolute;
- background-position:0 -4px;
- }
- .capb {
- margin-top:-19px;
- }
- #content {
- float:left;
- }
- .drawers-wrapper {
- position: relative;
- width: 188px;
- float:left;
- margin:10px;
- }
- .drawers {
- margin-bottom:15px;
- color:#76797C;
- font-size:11px;
- line-height: 18px;
- }
- .drawer {
- background:transparent url(images/sideboxlight_bg.gif) repeat-y scroll 0pt;
- color:#76797C;
- font-size:11px;
- line-height:1.3em;
- }
- .drawer-handle {
- background:#939393 url(images/slider_handlebg.png) no-repeat scroll 0pt;
- color:#333333;
- cursor:default;
- height:25px;
- line-height:25px;
- text-indent:15px;
- font-size:12px;
- width:100%;
- }
- .drawer-handle.open {
- background-color:#72839D;
- background-position:-188px 0pt;
- color:#FFFFFF;
- }
-
- /* nasty, but it fixes the indent on the first one. */
- h2.drawer-handle span {
-
- }
- .drawer ul {
- padding: 0 12px;
- padding-bottom:0pt;
- }
- .drawer li {
- border-bottom:1px solid #E5E5E5;
- line-height:16px;
- padding:6px 0pt;
- }
- .drawer-content ul {
- padding-top: 7px;
- }
- .drawer-content li a {
- display:block;
- overflow:hidden;
- }
- .alldownloads li {
- border:0pt none;
- line-height:18px;
- padding:0pt;
- }
-
- .drawers a {
- color:#666666;
- text-decoration:none;
- font-family:"Lucida Grande",Geneva,Arial,Verdana,sans-serif;
- }
- -->
- </style>
-
- <script type="text/javascript" src="../../../../jquery/jquery-1.2.6.js"></script>
-
- <script type="text/javascript" src="../../../source/ui.core.js"></script>
- <script type="text/javascript" src="../../../source/ui.accordion.js"></script>
-
-
- <script type="text/javascript">
- <!--
- $(function () {
- $('ul.drawers').accordion({
- header: 'h2.drawer-handle',
- selectedClass: 'open',
- event: 'mouseover'
- });
- });
- //-->
- </script>
-</head>
-<body id="page">
- <div id="content">
- <h1>Fixed drawer slide out demo (using accordion plugin)</h1>
- <p>This example demonstrates the Apple downloads slider/accordion effect using the jQuery Accordion plugin.</p>
- <p>Mouse over the headings to reveal the list of available links.</p>
-
- <p>
- <a href="http://jqueryfordesigners.com/slide-out-and-drawer-effect/">Read the article this demonstration relates to</a>
- </p>
- </div>
- <div class="drawers-wrapper">
- <ul class="drawers">
- <li class="drawer">
- <h2 class="drawer-handle open">
- <div class="capt"></div>
- <span>Downloads</span>
- </h2>
- <ul class="alldownloads">
- <li id="sn-downloadsmacosx"><a href="/downloads/macosx/">All Categories</a></li>
- <li id="sn-aperture"><a href="/downloads/macosx/aperture/">Aperture</a></li>
- <li id="sn-apple"><a href="/downloads/macosx/apple/">Apple</a></li>
- <li id="sn-audio"><a href="/downloads/macosx/audio/">Audio</a></li>
- <li id="sn-automator"><a href="/downloads/macosx/automator/">Automator Actions</a></li>
- <li id="sn-businessfinance"><a href="/downloads/macosx/business_finance/">Business &amp; Finance</a></li>
- <li id="sn-calendars"><a href="/downloads/macosx/calendars/">Calendars</a></li>
- <li id="sn-developmenttools"><a href="/downloads/macosx/development_tools/">Development Tools</a></li>
- <li id="sn-drivers"><a href="/downloads/macosx/drivers/">Drivers</a></li>
- <li id="sn-emailchat"><a href="/downloads/macosx/email_chat/">Email &amp; Chat</a></li>
- <li id="sn-finalcutstudio"><a href="/downloads/macosx/finalcutstudio/">Final Cut Studio</a></li>
- <li id="sn-games"><a href="/downloads/macosx/games/">Games</a></li>
- <li id="sn-homelearning"><a href="/downloads/macosx/home_learning/">Home &amp; Learning</a></li>
- <li id="sn-iconsscreensavers"><a href="/downloads/macosx/icons_screensavers/">Icons, Screensavers, etc.</a></li>
- <li id="sn-imaging3d"><a href="/downloads/macosx/imaging_3d/">Imaging &amp; 3D</a></li>
- <li id="sn-internetutilities"><a href="/downloads/macosx/internet_utilities/">Internet Utilities</a></li>
- <li id="sn-ipoditunes"><a href="/downloads/macosx/ipod_itunes/">iPod + iTunes</a></li>
- <li id="sn-mathscience"><a href="/downloads/macosx/math_science/">Math &amp; Science</a></li>
- <li id="sn-networkingsecurity"><a href="/downloads/macosx/networking_security/">Networking &amp; Security</a></li>
- <li id="sn-productivitytools"><a href="/downloads/macosx/productivity_tools/">Productivity Tools</a></li>
- <li id="sn-spotlight"><a href="/downloads/macosx/spotlight/">Spotlight Plugins</a></li>
- <li id="sn-systemdiskutilities"><a href="/downloads/macosx/system_disk_utilities/">System/Disk Utilities</a></li>
- <li id="sn-unixopensource"><a href="/downloads/macosx/unix_open_source/">UNIX &amp; Open Source</a></li>
- <li id="sn-video"><a href="/downloads/macosx/video/">Video</a></li>
- <li id="sn-dashboard"><a href="/downloads/dashboard/" class="bottom">Widgets</a></li>
- </ul>
- </li>
- <li class="drawer">
- <h2 class="drawer-handle">Top Downloads</h2>
- <ul>
- <li><a title="iTunes 7.5" href="http://www.apple.com/itunes/download/">1. iTunes 7.5</a></li>
- <li><a title="QuickTime 7.3.1" href="http://www.apple.com/quicktime/download/">2. QuickTime 7.3.1</a></li>
- <li><a title="Safari 3 Public Beta" href="http://www.apple.com/safari/download/">3. Safari 3 Public Beta</a></li>
- <li><a title="MacPool" href="/downloads/macosx/games/simulation_and_sports/macpool.html">4. MacPool Realistic and easy to play computer simu…</a></li>
- <li><a title="Guitar Hero III: Legends of Rock" href="/downloads/macosx/games/demos_updates/guitarheroiiilegendsofrock.html">5. Guitar Hero III: L…</a></li>
- <li><a title="Messenger for Mac" href="/downloads/macosx/email_chat/messengerformac.html">6. Messenger for Mac</a></li>
- <li><a title="Google Earth" href="/downloads/macosx/home_learning/googleearth.html">7. Google Earth</a></li>
- <li><a title="Monopoly" href="/downloads/macosx/games/cards_puzzle/monopoly.html">8. Monopoly</a></li>
- <li><a title="Litho System Icons" href="/downloads/macosx/icons_screensavers/lithosystemicons.html">9. Litho System Icons</a></li>
- <li><a title="Battlefield 2142" href="/downloads/macosx/games/demos_updates/battlefield2142.html">10. Battlefield 2142</a></li>
- <li><a title="More iChat Effects" href="/downloads/macosx/email_chat/moreichateffects.html">11. More iChat Effects</a></li>
- <li><a title="Dragster" href="/downloads/macosx/internet_utilities/dragster.html">12. Dragster</a></li>
- <li><a title="iSquint" href="/downloads/macosx/ipod_itunes/isquint.html">13. iSquint</a></li>
- <li class="last"><a title="US Holiday Calendar" href="/downloads/macosx/calendars/usholidaycalendar.html">14. US Holiday Calendar</a></li>
- </ul>
- </li>
- <li class="drawer last">
- <h2 class="drawer-handle">Top Apple Downloads</h2>
- <ul>
- <li><a title="iTunes 7.5" href="http://www.apple.com/itunes/download/">1. iTunes 7.5</a></li>
- <li><a title="QuickTime 7.3.1" href="http://www.apple.com/quicktime/download/">2. QuickTime 7.3.1</a></li>
- <li><a title="Safari 3 Public Beta" href="http://www.apple.com/safari/download/">3. Safari 3 Public Beta</a></li>
- <li><a title="Mac OS X 10.5.1 Update" href="/downloads/macosx/apple/macosx_updates/macosx1051update.html">4. Mac OS X 10.5.1 Up…</a></li>
- <li><a title="Java for Mac OS X 10.4 Release 5" href="/downloads/macosx/apple/macosx_updates/javaformacosx104release5.html">5. Java for Mac OS X …</a></li>
- <li><a title="iPod Reset Utility 1.0.2 for Windows" href="/downloads/macosx/apple/ipod_itunes/ipodresetutility102forwindows.html">6. iPod Reset Utility…</a></li>
- <li><a title="iPhoto 7.1.1" href="/downloads/macosx/apple/application_updates/iphoto711.html">7. iPhoto 7.1.1</a></li>
- <li><a title="Bonjour for Windows" href="/downloads/macosx/apple/windows/bonjourforwindows.html">8. Bonjour for Windows</a></li>
- <li><a title="Mac OS X 10.4.11 Combo Update (PPC)" href="/downloads/macosx/apple/macosx_updates/macosx10411comboupdateppc.html">9. Mac OS X 10.4.11 C…<br/>The 10.4.11 Update is recommended for al…</a></li>
- <li><a title="Java for Mac OS X 10.4, Release 6" href="/downloads/macosx/apple/macosx_updates/javaformacosx104release6.html">10. Java for Mac OS X …</a></li>
- <li><a title="GarageBand 4.1.1" href="/downloads/macosx/apple/application_updates/garageband411.html">11. GarageBand 4.1.1</a></li>
- <li><a title="iPod Updater 2006-06-28 for Windows" href="/downloads/macosx/apple/ipod_itunes/ipodupdater20060628forwindows.html">12. iPod Updater 2006-…</a></li>
- <li><a title="Security Update 2007-009 1.1 (10.4.11 Universal)" href="/downloads/macosx/apple/security_updates/securityupdate20070091110411universal.html">13. Security Update 20…</a></li>
- <li class="last"><a title="Security Update 2007-009 1.1 (10.5.1)" href="/downloads/macosx/apple/security_updates/securityupdate2007009111051.html">14. Security Update 20…</a></li>
- </ul>
- </li>
- </ul>
- <div class="capb"></div>
- </div>
-</body>
-</html>
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+ <title>Slide Demo - Fixed Drawer</title>
+ <style type="text/css" media="screen">
+ <!--
+/*************************************/
+/* Blueprint: reset.css */
+
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, font, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ outline: 0;
+ font-weight: inherit;
+ font-style: inherit;
+ font-size: 100%;
+ font-family: inherit;
+ vertical-align: baseline;
+}
+
+/* Remember to define focus styles! */
+:focus {
+ outline: 0;
+}
+body {
+ line-height: 1;
+ color: black;
+ background: white;
+}
+ol, ul {
+ list-style: none;
+}
+
+/* Tables still need 'cellspacing="0"' in the markup. */
+table {
+ border-collapse: separate;
+ border-spacing: 0;
+}
+caption, th, td {
+ text-align: left;
+ font-weight: normal;
+}
+
+/* Remove possible quote marks (") from <q>, <blockquote>. */
+blockquote:before, blockquote:after,
+q:before, q:after {
+ content: "";
+}
+blockquote, q {
+ quotes: "" "";
+}
+
+/*************************************/
+/* Demo Styles */
+ .capt,
+ .capb {
+ background: url("images/caps.gif") no-repeat;
+ height:4px;
+ width:100%;
+ /*position:absolute;*/
+ z-index:100;
+ margin:0px;
+ padding:0px;
+ }
+ .capt {
+ position:absolute;
+ background-position:0 -4px;
+ }
+ .capb {
+ margin-top:-19px;
+ }
+ #content {
+ float:left;
+ }
+ .drawers-wrapper {
+ position: relative;
+ width: 188px;
+ float:left;
+ margin:10px;
+ }
+ .drawers {
+ margin-bottom:15px;
+ color:#76797C;
+ font-size:11px;
+ line-height: 18px;
+ }
+ .drawer {
+ background:transparent url(images/sideboxlight_bg.gif) repeat-y scroll 0pt;
+ color:#76797C;
+ font-size:11px;
+ line-height:1.3em;
+ }
+ .drawer-handle {
+ background:#939393 url(images/slider_handlebg.png) no-repeat scroll 0pt;
+ color:#333333;
+ cursor:default;
+ height:25px;
+ line-height:25px;
+ text-indent:15px;
+ font-size:12px;
+ width:100%;
+ }
+ .drawer-handle.open {
+ background-color:#72839D;
+ background-position:-188px 0pt;
+ color:#FFFFFF;
+ }
+
+ /* nasty, but it fixes the indent on the first one. */
+ h2.drawer-handle span {
+
+ }
+ .drawer ul {
+ padding: 0 12px;
+ padding-bottom:0pt;
+ }
+ .drawer li {
+ border-bottom:1px solid #E5E5E5;
+ line-height:16px;
+ padding:6px 0pt;
+ }
+ .drawer-content ul {
+ padding-top: 7px;
+ }
+ .drawer-content li a {
+ display:block;
+ overflow:hidden;
+ }
+ .alldownloads li {
+ border:0pt none;
+ line-height:18px;
+ padding:0pt;
+ }
+
+ .drawers a {
+ color:#666666;
+ text-decoration:none;
+ font-family:"Lucida Grande",Geneva,Arial,Verdana,sans-serif;
+ }
+ -->
+ </style>
+
+ <script type="text/javascript" src="../../../../jquery/jquery-1.2.6.js"></script>
+
+ <script type="text/javascript" src="../../../source/ui.core.js"></script>
+ <script type="text/javascript" src="../../../source/ui.accordion.js"></script>
+
+
+ <script type="text/javascript">
+ <!--
+ $(function () {
+ $('ul.drawers').accordion({
+ header: 'h2.drawer-handle',
+ selectedClass: 'open',
+ event: 'mouseover'
+ });
+ });
+ //-->
+ </script>
+</head>
+<body id="page">
+ <div id="content">
+ <h1>Fixed drawer slide out demo (using accordion plugin)</h1>
+ <p>This example demonstrates the Apple downloads slider/accordion effect using the jQuery Accordion plugin.</p>
+ <p>Mouse over the headings to reveal the list of available links.</p>
+
+ <p>
+ <a href="http://jqueryfordesigners.com/slide-out-and-drawer-effect/">Read the article this demonstration relates to</a>
+ </p>
+ </div>
+ <div class="drawers-wrapper">
+ <ul class="drawers">
+ <li class="drawer">
+ <h2 class="drawer-handle open">
+ <div class="capt"></div>
+ <span>Downloads</span>
+ </h2>
+ <ul class="alldownloads">
+ <li id="sn-downloadsmacosx"><a href="/downloads/macosx/">All Categories</a></li>
+ <li id="sn-aperture"><a href="/downloads/macosx/aperture/">Aperture</a></li>
+ <li id="sn-apple"><a href="/downloads/macosx/apple/">Apple</a></li>
+ <li id="sn-audio"><a href="/downloads/macosx/audio/">Audio</a></li>
+ <li id="sn-automator"><a href="/downloads/macosx/automator/">Automator Actions</a></li>
+ <li id="sn-businessfinance"><a href="/downloads/macosx/business_finance/">Business &amp; Finance</a></li>
+ <li id="sn-calendars"><a href="/downloads/macosx/calendars/">Calendars</a></li>
+ <li id="sn-developmenttools"><a href="/downloads/macosx/development_tools/">Development Tools</a></li>
+ <li id="sn-drivers"><a href="/downloads/macosx/drivers/">Drivers</a></li>
+ <li id="sn-emailchat"><a href="/downloads/macosx/email_chat/">Email &amp; Chat</a></li>
+ <li id="sn-finalcutstudio"><a href="/downloads/macosx/finalcutstudio/">Final Cut Studio</a></li>
+ <li id="sn-games"><a href="/downloads/macosx/games/">Games</a></li>
+ <li id="sn-homelearning"><a href="/downloads/macosx/home_learning/">Home &amp; Learning</a></li>
+ <li id="sn-iconsscreensavers"><a href="/downloads/macosx/icons_screensavers/">Icons, Screensavers, etc.</a></li>
+ <li id="sn-imaging3d"><a href="/downloads/macosx/imaging_3d/">Imaging &amp; 3D</a></li>
+ <li id="sn-internetutilities"><a href="/downloads/macosx/internet_utilities/">Internet Utilities</a></li>
+ <li id="sn-ipoditunes"><a href="/downloads/macosx/ipod_itunes/">iPod + iTunes</a></li>
+ <li id="sn-mathscience"><a href="/downloads/macosx/math_science/">Math &amp; Science</a></li>
+ <li id="sn-networkingsecurity"><a href="/downloads/macosx/networking_security/">Networking &amp; Security</a></li>
+ <li id="sn-productivitytools"><a href="/downloads/macosx/productivity_tools/">Productivity Tools</a></li>
+ <li id="sn-spotlight"><a href="/downloads/macosx/spotlight/">Spotlight Plugins</a></li>
+ <li id="sn-systemdiskutilities"><a href="/downloads/macosx/system_disk_utilities/">System/Disk Utilities</a></li>
+ <li id="sn-unixopensource"><a href="/downloads/macosx/unix_open_source/">UNIX &amp; Open Source</a></li>
+ <li id="sn-video"><a href="/downloads/macosx/video/">Video</a></li>
+ <li id="sn-dashboard"><a href="/downloads/dashboard/" class="bottom">Widgets</a></li>
+ </ul>
+ </li>
+ <li class="drawer">
+ <h2 class="drawer-handle">Top Downloads</h2>
+ <ul>
+ <li><a title="iTunes 7.5" href="http://www.apple.com/itunes/download/">1. iTunes 7.5</a></li>
+ <li><a title="QuickTime 7.3.1" href="http://www.apple.com/quicktime/download/">2. QuickTime 7.3.1</a></li>
+ <li><a title="Safari 3 Public Beta" href="http://www.apple.com/safari/download/">3. Safari 3 Public Beta</a></li>
+ <li><a title="MacPool" href="/downloads/macosx/games/simulation_and_sports/macpool.html">4. MacPool Realistic and easy to play computer simu…</a></li>
+ <li><a title="Guitar Hero III: Legends of Rock" href="/downloads/macosx/games/demos_updates/guitarheroiiilegendsofrock.html">5. Guitar Hero III: L…</a></li>
+ <li><a title="Messenger for Mac" href="/downloads/macosx/email_chat/messengerformac.html">6. Messenger for Mac</a></li>
+ <li><a title="Google Earth" href="/downloads/macosx/home_learning/googleearth.html">7. Google Earth</a></li>
+ <li><a title="Monopoly" href="/downloads/macosx/games/cards_puzzle/monopoly.html">8. Monopoly</a></li>
+ <li><a title="Litho System Icons" href="/downloads/macosx/icons_screensavers/lithosystemicons.html">9. Litho System Icons</a></li>
+ <li><a title="Battlefield 2142" href="/downloads/macosx/games/demos_updates/battlefield2142.html">10. Battlefield 2142</a></li>
+ <li><a title="More iChat Effects" href="/downloads/macosx/email_chat/moreichateffects.html">11. More iChat Effects</a></li>
+ <li><a title="Dragster" href="/downloads/macosx/internet_utilities/dragster.html">12. Dragster</a></li>
+ <li><a title="iSquint" href="/downloads/macosx/ipod_itunes/isquint.html">13. iSquint</a></li>
+ <li class="last"><a title="US Holiday Calendar" href="/downloads/macosx/calendars/usholidaycalendar.html">14. US Holiday Calendar</a></li>
+ </ul>
+ </li>
+ <li class="drawer last">
+ <h2 class="drawer-handle">Top Apple Downloads</h2>
+ <ul>
+ <li><a title="iTunes 7.5" href="http://www.apple.com/itunes/download/">1. iTunes 7.5</a></li>
+ <li><a title="QuickTime 7.3.1" href="http://www.apple.com/quicktime/download/">2. QuickTime 7.3.1</a></li>
+ <li><a title="Safari 3 Public Beta" href="http://www.apple.com/safari/download/">3. Safari 3 Public Beta</a></li>
+ <li><a title="Mac OS X 10.5.1 Update" href="/downloads/macosx/apple/macosx_updates/macosx1051update.html">4. Mac OS X 10.5.1 Up…</a></li>
+ <li><a title="Java for Mac OS X 10.4 Release 5" href="/downloads/macosx/apple/macosx_updates/javaformacosx104release5.html">5. Java for Mac OS X …</a></li>
+ <li><a title="iPod Reset Utility 1.0.2 for Windows" href="/downloads/macosx/apple/ipod_itunes/ipodresetutility102forwindows.html">6. iPod Reset Utility…</a></li>
+ <li><a title="iPhoto 7.1.1" href="/downloads/macosx/apple/application_updates/iphoto711.html">7. iPhoto 7.1.1</a></li>
+ <li><a title="Bonjour for Windows" href="/downloads/macosx/apple/windows/bonjourforwindows.html">8. Bonjour for Windows</a></li>
+ <li><a title="Mac OS X 10.4.11 Combo Update (PPC)" href="/downloads/macosx/apple/macosx_updates/macosx10411comboupdateppc.html">9. Mac OS X 10.4.11 C…<br/>The 10.4.11 Update is recommended for al…</a></li>
+ <li><a title="Java for Mac OS X 10.4, Release 6" href="/downloads/macosx/apple/macosx_updates/javaformacosx104release6.html">10. Java for Mac OS X …</a></li>
+ <li><a title="GarageBand 4.1.1" href="/downloads/macosx/apple/application_updates/garageband411.html">11. GarageBand 4.1.1</a></li>
+ <li><a title="iPod Updater 2006-06-28 for Windows" href="/downloads/macosx/apple/ipod_itunes/ipodupdater20060628forwindows.html">12. iPod Updater 2006-…</a></li>
+ <li><a title="Security Update 2007-009 1.1 (10.4.11 Universal)" href="/downloads/macosx/apple/security_updates/securityupdate20070091110411universal.html">13. Security Update 20…</a></li>
+ <li class="last"><a title="Security Update 2007-009 1.1 (10.5.1)" href="/downloads/macosx/apple/security_updates/securityupdate2007009111051.html">14. Security Update 20…</a></li>
+ </ul>
+ </li>
+ </ul>
+ <div class="capb"></div>
+ </div>
+</body>
+</html>
diff --git a/ui/demos/real-world/effects/demo.js b/ui/demos/real-world/effects/demo.js
index ebf0ad082..b52b23726 100644
--- a/ui/demos/real-world/effects/demo.js
+++ b/ui/demos/real-world/effects/demo.js
@@ -1,65 +1,65 @@
-$(document).ready(function() {
-
- $("div.effect")
- .hover(function() {
- $(this).addClass("hover");
- }, function() {
- $(this).removeClass("hover");
- })
- ;
-
-
- var effect = function(el, n, o) {
-
- $.extend(o, {
- easing: "easeOutQuint"
- });
-
- $(el).bind("click", function() {
-
- $(this).addClass("current").hide(n, o, 1000, function() {
- var self = this;
- window.setTimeout(function() {
- $(self).show(n, o, 1000, function() { $(this).removeClass("current"); });
- },500);
- });
- });
-
- };
-
-
- effect("#blindHorizontally", "blind", { direction: "horizontal" });
- effect("#blindVertically", "blind", { direction: "vertical" });
-
- effect("#bounce3times", "bounce", { times: 3 });
-
- effect("#clipHorizontally", "clip", { direction: "horizontal" });
- effect("#clipVertically", "clip", { direction: "vertical" });
-
- effect("#dropDown", "drop", { direction: "down" });
- effect("#dropUp", "drop", { direction: "up" });
- effect("#dropLeft", "drop", { direction: "left" });
- effect("#dropRight", "drop", { direction: "right" });
-
- effect("#explode9", "explode", { });
- effect("#explode36", "explode", { pieces: 36 });
-
- effect("#fold", "fold", { size: 50 });
-
- effect("#highlight", "highlight", { });
-
- effect("#pulsate", "pulsate", { times: 2 });
-
- effect("#puff", "puff", { times: 2 });
- effect("#scale", "scale", { });
-
- $("#shake").bind("click", function() { $(this).addClass("current").effect("shake", {}, 100, function() { $(this).removeClass("current"); }); });
-
- effect("#slideDown", "slide", { direction: "down" });
- effect("#slideUp", "slide", { direction: "up" });
- effect("#slideLeft", "slide", { direction: "left" });
- effect("#slideRight", "slide", { direction: "right" });
-
- $("#transfer").bind("click", function() { $(this).addClass("current").effect("transfer", { to: "div:eq(0)" }, 1000, function() { $(this).removeClass("current"); }); });
-
+$(document).ready(function() {
+
+ $("div.effect")
+ .hover(function() {
+ $(this).addClass("hover");
+ }, function() {
+ $(this).removeClass("hover");
+ })
+ ;
+
+
+ var effect = function(el, n, o) {
+
+ $.extend(o, {
+ easing: "easeOutQuint"
+ });
+
+ $(el).bind("click", function() {
+
+ $(this).addClass("current").hide(n, o, 1000, function() {
+ var self = this;
+ window.setTimeout(function() {
+ $(self).show(n, o, 1000, function() { $(this).removeClass("current"); });
+ },500);
+ });
+ });
+
+ };
+
+
+ effect("#blindHorizontally", "blind", { direction: "horizontal" });
+ effect("#blindVertically", "blind", { direction: "vertical" });
+
+ effect("#bounce3times", "bounce", { times: 3 });
+
+ effect("#clipHorizontally", "clip", { direction: "horizontal" });
+ effect("#clipVertically", "clip", { direction: "vertical" });
+
+ effect("#dropDown", "drop", { direction: "down" });
+ effect("#dropUp", "drop", { direction: "up" });
+ effect("#dropLeft", "drop", { direction: "left" });
+ effect("#dropRight", "drop", { direction: "right" });
+
+ effect("#explode9", "explode", { });
+ effect("#explode36", "explode", { pieces: 36 });
+
+ effect("#fold", "fold", { size: 50 });
+
+ effect("#highlight", "highlight", { });
+
+ effect("#pulsate", "pulsate", { times: 2 });
+
+ effect("#puff", "puff", { times: 2 });
+ effect("#scale", "scale", { });
+
+ $("#shake").bind("click", function() { $(this).addClass("current").effect("shake", {}, 100, function() { $(this).removeClass("current"); }); });
+
+ effect("#slideDown", "slide", { direction: "down" });
+ effect("#slideUp", "slide", { direction: "up" });
+ effect("#slideLeft", "slide", { direction: "left" });
+ effect("#slideRight", "slide", { direction: "right" });
+
+ $("#transfer").bind("click", function() { $(this).addClass("current").effect("transfer", { to: "div:eq(0)" }, 1000, function() { $(this).removeClass("current"); }); });
+
}); \ No newline at end of file
diff --git a/ui/demos/real-world/effects/index.html b/ui/demos/real-world/effects/index.html
index bffad1746..15ebbece2 100644
--- a/ui/demos/real-world/effects/index.html
+++ b/ui/demos/real-world/effects/index.html
@@ -1,120 +1,120 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html>
- <head>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
- <title>Effects Test Suite</title>
- <link rel="stylesheet" href="style.css" type="text/css" media="screen" title="no title" charset="utf-8" />
-
- <script type="text/javascript" src="../../../../jquery/jquery-1.2.6.js"></script>
- <script type="text/javascript" src="../../../source/effects.core.js"></script>
-
- <script type="text/javascript" src="../../../source/effects.blind.js"></script>
- <script type="text/javascript" src="../../../source/effects.bounce.js"></script>
- <script type="text/javascript" src="../../../source/effects.clip.js"></script>
- <script type="text/javascript" src="../../../source/effects.drop.js"></script>
- <script type="text/javascript" src="../../../source/effects.explode.js"></script>
- <script type="text/javascript" src="../../../source/effects.fold.js"></script>
- <script type="text/javascript" src="../../../source/effects.highlight.js"></script>
- <script type="text/javascript" src="../../../source/effects.pulsate.js"></script>
- <script type="text/javascript" src="../../../source/effects.scale.js"></script>
- <script type="text/javascript" src="../../../source/effects.shake.js"></script>
- <script type="text/javascript" src="../../../source/effects.slide.js"></script>
- <script type="text/javascript" src="../../../source/effects.transfer.js"></script>
-
- <script type="text/javascript" src="demo.js"></script>
-
-
- </head>
- <body>
-
- <div class="effect" id="blindHorizontally">
- <p>Blind horizontally</p>
- </div>
-
- <div class="effect" id="blindVertically">
- <p>Blind vertically</p>
- </div>
-
- <div class="effect" id="bounce3times">
- <p>Bounce 3 times</p>
- </div>
-
- <div class="effect" id="clipHorizontally">
- <p>Clip horizontally</p>
- </div>
-
- <div class="effect" id="clipVertically">
- <p>Clip vertically</p>
- </div>
-
- <div class="effect" id="dropDown">
- <p>Drop down</p>
- </div>
-
- <div class="effect" id="dropUp">
- <p>Drop up</p>
- </div>
-
- <div class="effect" id="dropLeft">
- <p>Drop left</p>
- </div>
-
- <div class="effect" id="dropRight">
- <p>Drop right</p>
- </div>
-
- <div class="effect" id="explode9">
- <p>Explode in 9 pieces</p>
- </div>
-
- <div class="effect" id="explode36">
- <p>Explode in 36 pieces</p>
- </div>
-
- <div class="effect" id="fold">
- <p>Fold</p>
- </div>
-
- <div class="effect" id="highlight">
- <p>Highlight</p>
- </div>
-
- <div class="effect" id="pulsate">
- <p>Pulsate 2 times</p>
- </div>
-
- <div class="effect" id="puff">
- <p>Puff</p>
- </div>
-
- <div class="effect" id="scale">
- <p>Scale</p>
- </div>
-
- <div class="effect" id="shake">
- <p>Shake</p>
- </div>
-
- <div class="effect" id="slideDown">
- <p>Slide down</p>
- </div>
-
- <div class="effect" id="slideUp">
- <p>Slide up</p>
- </div>
-
- <div class="effect" id="slideLeft">
- <p>Slide left</p>
- </div>
-
- <div class="effect" id="slideRight">
- <p>Slide right</p>
- </div>
-
- <div class="effect" id="transfer">
- <p>Transfer to first element</p>
- </div>
-
- </body>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html>
+ <head>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+ <title>Effects Test Suite</title>
+ <link rel="stylesheet" href="style.css" type="text/css" media="screen" title="no title" charset="utf-8" />
+
+ <script type="text/javascript" src="../../../../jquery/jquery-1.2.6.js"></script>
+ <script type="text/javascript" src="../../../source/effects.core.js"></script>
+
+ <script type="text/javascript" src="../../../source/effects.blind.js"></script>
+ <script type="text/javascript" src="../../../source/effects.bounce.js"></script>
+ <script type="text/javascript" src="../../../source/effects.clip.js"></script>
+ <script type="text/javascript" src="../../../source/effects.drop.js"></script>
+ <script type="text/javascript" src="../../../source/effects.explode.js"></script>
+ <script type="text/javascript" src="../../../source/effects.fold.js"></script>
+ <script type="text/javascript" src="../../../source/effects.highlight.js"></script>
+ <script type="text/javascript" src="../../../source/effects.pulsate.js"></script>
+ <script type="text/javascript" src="../../../source/effects.scale.js"></script>
+ <script type="text/javascript" src="../../../source/effects.shake.js"></script>
+ <script type="text/javascript" src="../../../source/effects.slide.js"></script>
+ <script type="text/javascript" src="../../../source/effects.transfer.js"></script>
+
+ <script type="text/javascript" src="demo.js"></script>
+
+
+ </head>
+ <body>
+
+ <div class="effect" id="blindHorizontally">
+ <p>Blind horizontally</p>
+ </div>
+
+ <div class="effect" id="blindVertically">
+ <p>Blind vertically</p>
+ </div>
+
+ <div class="effect" id="bounce3times">
+ <p>Bounce 3 times</p>
+ </div>
+
+ <div class="effect" id="clipHorizontally">
+ <p>Clip horizontally</p>
+ </div>
+
+ <div class="effect" id="clipVertically">
+ <p>Clip vertically</p>
+ </div>
+
+ <div class="effect" id="dropDown">
+ <p>Drop down</p>
+ </div>
+
+ <div class="effect" id="dropUp">
+ <p>Drop up</p>
+ </div>
+
+ <div class="effect" id="dropLeft">
+ <p>Drop left</p>
+ </div>
+
+ <div class="effect" id="dropRight">
+ <p>Drop right</p>
+ </div>
+
+ <div class="effect" id="explode9">
+ <p>Explode in 9 pieces</p>
+ </div>
+
+ <div class="effect" id="explode36">
+ <p>Explode in 36 pieces</p>
+ </div>
+
+ <div class="effect" id="fold">
+ <p>Fold</p>
+ </div>
+
+ <div class="effect" id="highlight">
+ <p>Highlight</p>
+ </div>
+
+ <div class="effect" id="pulsate">
+ <p>Pulsate 2 times</p>
+ </div>
+
+ <div class="effect" id="puff">
+ <p>Puff</p>
+ </div>
+
+ <div class="effect" id="scale">
+ <p>Scale</p>
+ </div>
+
+ <div class="effect" id="shake">
+ <p>Shake</p>
+ </div>
+
+ <div class="effect" id="slideDown">
+ <p>Slide down</p>
+ </div>
+
+ <div class="effect" id="slideUp">
+ <p>Slide up</p>
+ </div>
+
+ <div class="effect" id="slideLeft">
+ <p>Slide left</p>
+ </div>
+
+ <div class="effect" id="slideRight">
+ <p>Slide right</p>
+ </div>
+
+ <div class="effect" id="transfer">
+ <p>Transfer to first element</p>
+ </div>
+
+ </body>
</html> \ No newline at end of file
diff --git a/ui/demos/real-world/effects/style.css b/ui/demos/real-world/effects/style.css
index e2a184466..f7ae220ef 100644
--- a/ui/demos/real-world/effects/style.css
+++ b/ui/demos/real-world/effects/style.css
@@ -1,36 +1,36 @@
-body,html {
- margin: 0;
- padding: 0;
- font-size: 12px;
- font-family: Arial;
- background: #000;
-}
-
-div.effect {
- width: 120px;
- height: 100px;
- background: #333;
- border: 5px outset #aaa;
- float: left;
- margin-top: 20px;
- margin-left: 20px;
- cursor: pointer;
- cursor: hand;
-}
-
-div.current {
- border: 5px outset #FF0000;
- background: #660000;
-}
-
-div.effect p {
- color: #eee;
- margin: 0px;
- padding: 10px;
-}
-
-.ui-effects-transfer {
- border: 1px dotted #fff;
- background: #666;
- opacity: 0.5;
+body,html {
+ margin: 0;
+ padding: 0;
+ font-size: 12px;
+ font-family: Arial;
+ background: #000;
+}
+
+div.effect {
+ width: 120px;
+ height: 100px;
+ background: #333;
+ border: 5px outset #aaa;
+ float: left;
+ margin-top: 20px;
+ margin-left: 20px;
+ cursor: pointer;
+ cursor: hand;
+}
+
+div.current {
+ border: 5px outset #FF0000;
+ background: #660000;
+}
+
+div.effect p {
+ color: #eee;
+ margin: 0px;
+ padding: 10px;
+}
+
+.ui-effects-transfer {
+ border: 1px dotted #fff;
+ background: #666;
+ opacity: 0.5;
} \ No newline at end of file
diff --git a/ui/demos/real-world/image-cropper/index.html b/ui/demos/real-world/image-cropper/index.html
index 528575aef..afa85ae3c 100644
--- a/ui/demos/real-world/image-cropper/index.html
+++ b/ui/demos/real-world/image-cropper/index.html
@@ -1,231 +1,231 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta http-equiv="Content-Language" content="en" />
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>Image Cropper: jQuery Real-world Demo</title>
-<script type="text/javascript" src="../../../../jquery/jquery-1.2.6.js"></script>
-<script type="text/javascript" src="../../../source/ui.core.js"></script>
-<script type="text/javascript" src="../../../source/ui.resizable.js"></script>
-<script type="text/javascript" src="../../../source/ui.draggable.js"></script>
-
-<script type="text/javascript" src="../../../source/effects.core.js"></script>
-<script type="text/javascript" src="../../../source/effects.bounce.js"></script>
-<script type="text/javascript" src="../../../source/effects.scale.js"></script>
-
-
-<style type="text/css">
-<!--
-/*************************************/
-/* Real-World CSS */
-
-@import "real-world.css";
-
-/*************************************/
-/* Demo CSS */
-
-#sidebar div {
- text-align:center;
-}
-.thumb ul {
- padding:10px 0 0 0;
-}
-.thumbs li {
- margin:4px 20px;
-}
-.thumbs li a,
-.thumbs li a img{
- height: 75px;
- width: 75px;
- display: block;
-}
-.thumbs li a:hover,
-.thumbs li a:hover img{
- height: 130px;
- width: 130px;
-}
-.thumbs li a:hover {
- border: 4px solid #E8EEF7;
-}
-
-#break strong {
- margin:0 0 4px 0;
-}
-#break ul {
- padding:6px;
-}
-#break ul li {
- padding:3px 0px;
- font-style: italic;
-}
-#break ul li span {
- font-style: normal;
-}
-
-.ui-resizable-knob {
- border: 1px #fff dashed;
-}
-
-/*************************************/
-/* Cropper CSS */
-
-#resizeme_containment_wrap_image {
- position: relative;
-}
-#resizeme_containment_div {
- position: absolute;
- top:0px;
- left:0px;
- width: 150px;
- height:150px;
-}
-
-#resizeme_containment_div_wrapper {
- position: relative;
-}
-
-
--->
-</style>
-<script type="text/javascript">
- var getSizeImg = function(src) {
- var timg = $('<img>').attr('src', src).css({ position: 'absolute', top: '-1000px', left: '-1000px' }).appendTo('body');
- var size = [ timg.get(0).offsetWidth, timg.get(0).offsetHeight ];
-
- try { document.body.removeChild(timg[0]); }
- catch(e) {};
-
- return size;
- };
-
- $().ready(function(){
-
- $('#resizeme_containment_div').resizable({
-
- containment: $('#resizeme_containment_div_wrapper'),
-
- //proxy: 'proxy',
-
- //ghost: true,
-
- //animate:true,
-
- handles: 'all',
-
- knobHandles: true,
-
- //transparent: true,
-
- //aspectRatio: true,
-
- autoHide: true,
-
- minWidth: 100,
-
- minHeight: 100,
-
- resize: function(e, ui) {
- var self = $(this).data("resizable");
-
- this.style.backgroundPosition = '-' + (self.position.left) + 'px -' + (self.position.top) + 'px';
-
-
- $("#log-top").html(self.position.top+"px");
-
- $("#log-left").html(self.position.left+"px");
-
- $("#log-height").html(self.size.height+"px");
-
- $("#log-width").html(self.size.width+"px");
-
- },
- stop: function(e, ui) {
- var self = $(this).data("resizable");
- this.style.backgroundPosition = '-' + (self.position.left) + 'px -' + (self.position.top) + 'px';
- }
- })
-
- .draggable({
-
- cursor: 'move',
-
- containment: $('#resizeme_containment_div_wrapper'),
-
- drag: function(e, ui) {
- var self = $(this).data("draggable");
- this.style.backgroundPosition = '-' + (self.position.left) + 'px -' + (self.position.top) + 'px';
-
- $("#log-top").html(self.position.top+"px");
-
- $("#log-left").html(self.position.left+"px");
-
- }
-
- });
-
- $('.thumbs').find("li a").click(function(e){
-
- $('#resizeme_containment_div').css('top', '0');
-
- $('#resizeme_containment_div').css('left', '0');
-
- var size = getSizeImg($(this).find("img").attr("src"));
-
- $('#resizeme_containment_wrap_image').css( { width: size[0], height: size[1], background: 'transparent url('+$(this).find("img").attr("src")+') no-repeat scroll 0%' } );
- $('#resizeme_containment_div_wrapper').css( { width: size[0], height: size[1] } );
- $('#resizeme_containment_div').css('background', 'transparent url('+$(this).find("img").attr("src")+') no-repeat scroll 0px 0px');
-
- return false;
-
- });
-
-
- $('#resizeme_containment_wrap_image').css({ opacity: 0.5 });
-
- $("#log-height").html($('#resizeme_containment_div').height()+"px");
-
- $("#log-width").html($('#resizeme_containment_div').width()+"px");
-
- });
-
- $(window).load(function(){
- var size = getSizeImg("img/img01.jpg");
- $('#resizeme_containment_div').css('background', 'transparent url(img/img01.jpg) no-repeat scroll 0px 0px');
- $('#resizeme_containment_div_wrapper').css( { width: size[0], height: size[1] } );
- $('#resizeme_containment_wrap_image').css( { width: size[0], height: size[1], background: 'transparent url(img/img01.jpg) no-repeat scroll 0%' } );
-
- });
-</script>
-</head>
-<body>
- <div id="sidebar">
- <ul class="thumbs">
- <li><a href="#" title="Open This Image"><img src="img/img01.jpg"/></a></li>
- <li><a href="#" title="Open This Image"><img src="img/img02.jpg"/></a></li>
- <li><a href="#" title="Open This Image"><img src="img/img03.jpg"/></a></li>
- <li><a href="#" title="Open This Image"><img src="img/img04.jpg"/></a></li>
- <li><a href="#" title="Open This Image"><img src="img/img05.jpg"/></a></li>
- </div>
- </div>
- <div id="main">
- <div id="header">
- <h2>jQuery Real-world Demo: Image Cropper</h2>
- </div>
- <div id="content">
- <div id="resizeme_containment_div_wrapper">
- <div id="resizeme_containment_wrap_image"></div>
- <div id="resizeme_containment_div"></div>
- </div>
- </div>
- <div id="break">
- <strong>Properties:</strong>
- <ul>
- <li>width: <span id="log-width">0px</span></li>
- <li>height: <span id="log-height">0px</span></li>
- <li>top: <span id="log-top">0px</span></li>
- <li>left: <span id="log-left">0px</span></li>
- </ul>
- </div>
- </div>
-</body>
-</html>
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta http-equiv="Content-Language" content="en" />
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>Image Cropper: jQuery Real-world Demo</title>
+<script type="text/javascript" src="../../../../jquery/jquery-1.2.6.js"></script>
+<script type="text/javascript" src="../../../source/ui.core.js"></script>
+<script type="text/javascript" src="../../../source/ui.resizable.js"></script>
+<script type="text/javascript" src="../../../source/ui.draggable.js"></script>
+
+<script type="text/javascript" src="../../../source/effects.core.js"></script>
+<script type="text/javascript" src="../../../source/effects.bounce.js"></script>
+<script type="text/javascript" src="../../../source/effects.scale.js"></script>
+
+
+<style type="text/css">
+<!--
+/*************************************/
+/* Real-World CSS */
+
+@import "real-world.css";
+
+/*************************************/
+/* Demo CSS */
+
+#sidebar div {
+ text-align:center;
+}
+.thumb ul {
+ padding:10px 0 0 0;
+}
+.thumbs li {
+ margin:4px 20px;
+}
+.thumbs li a,
+.thumbs li a img{
+ height: 75px;
+ width: 75px;
+ display: block;
+}
+.thumbs li a:hover,
+.thumbs li a:hover img{
+ height: 130px;
+ width: 130px;
+}
+.thumbs li a:hover {
+ border: 4px solid #E8EEF7;
+}
+
+#break strong {
+ margin:0 0 4px 0;
+}
+#break ul {
+ padding:6px;
+}
+#break ul li {
+ padding:3px 0px;
+ font-style: italic;
+}
+#break ul li span {
+ font-style: normal;
+}
+
+.ui-resizable-knob {
+ border: 1px #fff dashed;
+}
+
+/*************************************/
+/* Cropper CSS */
+
+#resizeme_containment_wrap_image {
+ position: relative;
+}
+#resizeme_containment_div {
+ position: absolute;
+ top:0px;
+ left:0px;
+ width: 150px;
+ height:150px;
+}
+
+#resizeme_containment_div_wrapper {
+ position: relative;
+}
+
+
+-->
+</style>
+<script type="text/javascript">
+ var getSizeImg = function(src) {
+ var timg = $('<img>').attr('src', src).css({ position: 'absolute', top: '-1000px', left: '-1000px' }).appendTo('body');
+ var size = [ timg.get(0).offsetWidth, timg.get(0).offsetHeight ];
+
+ try { document.body.removeChild(timg[0]); }
+ catch(e) {};
+
+ return size;
+ };
+
+ $().ready(function(){
+
+ $('#resizeme_containment_div').resizable({
+
+ containment: $('#resizeme_containment_div_wrapper'),
+
+ //proxy: 'proxy',
+
+ //ghost: true,
+
+ //animate:true,
+
+ handles: 'all',
+
+ knobHandles: true,
+
+ //transparent: true,
+
+ //aspectRatio: true,
+
+ autoHide: true,
+
+ minWidth: 100,
+
+ minHeight: 100,
+
+ resize: function(e, ui) {
+ var self = $(this).data("resizable");
+
+ this.style.backgroundPosition = '-' + (self.position.left) + 'px -' + (self.position.top) + 'px';
+
+
+ $("#log-top").html(self.position.top+"px");
+
+ $("#log-left").html(self.position.left+"px");
+
+ $("#log-height").html(self.size.height+"px");
+
+ $("#log-width").html(self.size.width+"px");
+
+ },
+ stop: function(e, ui) {
+ var self = $(this).data("resizable");
+ this.style.backgroundPosition = '-' + (self.position.left) + 'px -' + (self.position.top) + 'px';
+ }
+ })
+
+ .draggable({
+
+ cursor: 'move',
+
+ containment: $('#resizeme_containment_div_wrapper'),
+
+ drag: function(e, ui) {
+ var self = $(this).data("draggable");
+ this.style.backgroundPosition = '-' + (self.position.left) + 'px -' + (self.position.top) + 'px';
+
+ $("#log-top").html(self.position.top+"px");
+
+ $("#log-left").html(self.position.left+"px");
+
+ }
+
+ });
+
+ $('.thumbs').find("li a").click(function(e){
+
+ $('#resizeme_containment_div').css('top', '0');
+
+ $('#resizeme_containment_div').css('left', '0');
+
+ var size = getSizeImg($(this).find("img").attr("src"));
+
+ $('#resizeme_containment_wrap_image').css( { width: size[0], height: size[1], background: 'transparent url('+$(this).find("img").attr("src")+') no-repeat scroll 0%' } );
+ $('#resizeme_containment_div_wrapper').css( { width: size[0], height: size[1] } );
+ $('#resizeme_containment_div').css('background', 'transparent url('+$(this).find("img").attr("src")+') no-repeat scroll 0px 0px');
+
+ return false;
+
+ });
+
+
+ $('#resizeme_containment_wrap_image').css({ opacity: 0.5 });
+
+ $("#log-height").html($('#resizeme_containment_div').height()+"px");
+
+ $("#log-width").html($('#resizeme_containment_div').width()+"px");
+
+ });
+
+ $(window).load(function(){
+ var size = getSizeImg("img/img01.jpg");
+ $('#resizeme_containment_div').css('background', 'transparent url(img/img01.jpg) no-repeat scroll 0px 0px');
+ $('#resizeme_containment_div_wrapper').css( { width: size[0], height: size[1] } );
+ $('#resizeme_containment_wrap_image').css( { width: size[0], height: size[1], background: 'transparent url(img/img01.jpg) no-repeat scroll 0%' } );
+
+ });
+</script>
+</head>
+<body>
+ <div id="sidebar">
+ <ul class="thumbs">
+ <li><a href="#" title="Open This Image"><img src="img/img01.jpg"/></a></li>
+ <li><a href="#" title="Open This Image"><img src="img/img02.jpg"/></a></li>
+ <li><a href="#" title="Open This Image"><img src="img/img03.jpg"/></a></li>
+ <li><a href="#" title="Open This Image"><img src="img/img04.jpg"/></a></li>
+ <li><a href="#" title="Open This Image"><img src="img/img05.jpg"/></a></li>
+ </div>
+ </div>
+ <div id="main">
+ <div id="header">
+ <h2>jQuery Real-world Demo: Image Cropper</h2>
+ </div>
+ <div id="content">
+ <div id="resizeme_containment_div_wrapper">
+ <div id="resizeme_containment_wrap_image"></div>
+ <div id="resizeme_containment_div"></div>
+ </div>
+ </div>
+ <div id="break">
+ <strong>Properties:</strong>
+ <ul>
+ <li>width: <span id="log-width">0px</span></li>
+ <li>height: <span id="log-height">0px</span></li>
+ <li>top: <span id="log-top">0px</span></li>
+ <li>left: <span id="log-left">0px</span></li>
+ </ul>
+ </div>
+ </div>
+</body>
+</html>
diff --git a/ui/demos/real-world/image-cropper/real-world.css b/ui/demos/real-world/image-cropper/real-world.css
index f7630bd8f..683033351 100644
--- a/ui/demos/real-world/image-cropper/real-world.css
+++ b/ui/demos/real-world/image-cropper/real-world.css
@@ -1,104 +1,104 @@
-/*************************************/
-/* Blueprint: reset.css */
-
-html, body, div, span, applet, object, iframe,
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-a, abbr, acronym, address, big, cite, code,
-del, dfn, em, font, img, ins, kbd, q, s, samp,
-small, strike, strong, sub, sup, tt, var,
-dl, dt, dd, ol, ul, li,
-fieldset, form, label, legend,
-table, caption, tbody, tfoot, thead, tr, th, td {
- margin: 0;
- padding: 0;
- border: 0;
- outline: 0;
- font-size: 100%;
- font-family: inherit;
- vertical-align: baseline;
-}
-
-/* Remember to define focus styles! */
-:focus {
- outline: 0;
-}
-body {
- line-height: 1;
- color: black;
- background: white;
-}
-ol, ul {
- list-style: none;
-}
-
-/* Tables still need 'cellspacing="0"' in the markup. */
-table {
- border-collapse: separate;
- border-spacing: 0;
-}
-caption, th, td {
- text-align: left;
- font-weight: normal;
-}
-
-/* Remove possible quote marks (") from <q>, <blockquote>. */
-blockquote:before, blockquote:after,
-q:before, q:after {
- content: "";
-}
-blockquote, q {
- quotes: "" "";
-}
-
-.clear {
- clear:both;
-}
-
-/*************************************/
-/* Layout */
-body, html {
- height: 100%;
- font-family:sans-serif;
- font-size:13px;
- margin:0px;
- padding:0px;
-}
-body, html {
- height: 100%;
- font-family:sans-serif;
- font-size:13px;
-
-}
-#main {
- height:auto;
- background: #E8EEF7;
- border-left:1px solid #ccc;
- border-bottom:1px solid #ccc;
- margin:0 0 0 200px;
-}
- #header {
- height:30px;
- padding:10px;
- font-size:2em;
- font-weight:bold;
- text-align: center;
- border-bottom:1px solid #ccc;
- background: #E8EEF7;
- }
- #main #content {
- padding:10px;
- background: #FFF;
- }
- #main #break {
- padding:10px;
- border-top:1px solid #ccc;
- }
-#sidebar {
- float:left;
- width:200px;
- height:100%;
- border-right:1px solid #ccc;
-}
- #sidebar div {
- padding:10px;
- }
+/*************************************/
+/* Blueprint: reset.css */
+
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, font, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ outline: 0;
+ font-size: 100%;
+ font-family: inherit;
+ vertical-align: baseline;
+}
+
+/* Remember to define focus styles! */
+:focus {
+ outline: 0;
+}
+body {
+ line-height: 1;
+ color: black;
+ background: white;
+}
+ol, ul {
+ list-style: none;
+}
+
+/* Tables still need 'cellspacing="0"' in the markup. */
+table {
+ border-collapse: separate;
+ border-spacing: 0;
+}
+caption, th, td {
+ text-align: left;
+ font-weight: normal;
+}
+
+/* Remove possible quote marks (") from <q>, <blockquote>. */
+blockquote:before, blockquote:after,
+q:before, q:after {
+ content: "";
+}
+blockquote, q {
+ quotes: "" "";
+}
+
+.clear {
+ clear:both;
+}
+
+/*************************************/
+/* Layout */
+body, html {
+ height: 100%;
+ font-family:sans-serif;
+ font-size:13px;
+ margin:0px;
+ padding:0px;
+}
+body, html {
+ height: 100%;
+ font-family:sans-serif;
+ font-size:13px;
+
+}
+#main {
+ height:auto;
+ background: #E8EEF7;
+ border-left:1px solid #ccc;
+ border-bottom:1px solid #ccc;
+ margin:0 0 0 200px;
+}
+ #header {
+ height:30px;
+ padding:10px;
+ font-size:2em;
+ font-weight:bold;
+ text-align: center;
+ border-bottom:1px solid #ccc;
+ background: #E8EEF7;
+ }
+ #main #content {
+ padding:10px;
+ background: #FFF;
+ }
+ #main #break {
+ padding:10px;
+ border-top:1px solid #ccc;
+ }
+#sidebar {
+ float:left;
+ width:200px;
+ height:100%;
+ border-right:1px solid #ccc;
+}
+ #sidebar div {
+ padding:10px;
+ }
diff --git a/ui/demos/real-world/layout/demo.css b/ui/demos/real-world/layout/demo.css
index 010f09db5..a7b108623 100644
--- a/ui/demos/real-world/layout/demo.css
+++ b/ui/demos/real-world/layout/demo.css
@@ -1,42 +1,42 @@
-body { background-color:#666; color:#FFF; font:11px/1.5 Arial, sans-serif; margin:0; overflow:hidden; padding:30px 0 0 30px; }
-h1 { font-size:18px; margin:0 0 20px; }
-a { color:#FFF; }
-
-.clear { clear:both; font-size:1px; line-height:1px; }
-
-#overlay { background:#666; height:100%; left:0; position:absolute; top:0; width:100%; z-index:2000; }
-#overlay #preloader { background:url(loader_bg.gif) no-repeat; height:50px; left:50%; line-height:50px; margin:-25px 0 0 -25px; position:absolute; text-align:center; top:50%; width:50px; }
-#overlay #preloader img { margin:11px 0 0 0; vertical-align:middle; }
-
-.ui-sortable { background-color:#FFF; border:1px solid #555; color:#222; margin:0 15px 15px 0; padding:0 10px 10px; width:175px; }
-.ui-sortable h2 { background-color:#555; border-top:3px solid #666; color:#FFF; font-size:11px; margin:0 -10px 10px; line-height:2; padding:0 10px; }
-
-dl.sort { color:#222; margin:10px 0; }
-#uidemo dl.first { margin-top:0; }
-#uidemo dl.last { margin-bottom:0; }
-
-dl.sort dt { background-color:#666; color:#FFF; cursor:move; height:2em; line-height:2; padding:0 6px; position:relative; }
-dl.sort dd { background-color:#FFF; margin:0; padding:3px 6px; }
-
-.ui-sortable-helper { width:175px; }
-.placeholder { border:1px dashed #AAA; }
-
-span.options { cursor:default; font-size:1px; line-height:1px; position:absolute; }
-span.options a { background-color:#FFF; cursor:pointer; display:block; float:left; text-indent:-9000px; }
-
-.ui-sortable h2 span.options { right:10px; top:8px; width:30px; }
-.ui-sortable h2 span.options a { height:12px; width:30px; }
-
-dl.sort dt span.options { right:5px; top:5px; width:27px; }
-dl.sort dt span.options a { height:12px; width:12px; }
-dl.sort dt span.options a.up { margin-right:3px; }
-dl.sort dt span.options a.disabled { background-color:#555; cursor:default; }
-
-#container { float:left; }
-#header { width:638px; }
-#content { float:left; width:400px; }
-#sidebar { float:left; width:200px; }
-#footer { width:638px; }
-#trashcan { float:left; }
-
+body { background-color:#666; color:#FFF; font:11px/1.5 Arial, sans-serif; margin:0; overflow:hidden; padding:30px 0 0 30px; }
+h1 { font-size:18px; margin:0 0 20px; }
+a { color:#FFF; }
+
+.clear { clear:both; font-size:1px; line-height:1px; }
+
+#overlay { background:#666; height:100%; left:0; position:absolute; top:0; width:100%; z-index:2000; }
+#overlay #preloader { background:url(loader_bg.gif) no-repeat; height:50px; left:50%; line-height:50px; margin:-25px 0 0 -25px; position:absolute; text-align:center; top:50%; width:50px; }
+#overlay #preloader img { margin:11px 0 0 0; vertical-align:middle; }
+
+.ui-sortable { background-color:#FFF; border:1px solid #555; color:#222; margin:0 15px 15px 0; padding:0 10px 10px; width:175px; }
+.ui-sortable h2 { background-color:#555; border-top:3px solid #666; color:#FFF; font-size:11px; margin:0 -10px 10px; line-height:2; padding:0 10px; }
+
+dl.sort { color:#222; margin:10px 0; }
+#uidemo dl.first { margin-top:0; }
+#uidemo dl.last { margin-bottom:0; }
+
+dl.sort dt { background-color:#666; color:#FFF; cursor:move; height:2em; line-height:2; padding:0 6px; position:relative; }
+dl.sort dd { background-color:#FFF; margin:0; padding:3px 6px; }
+
+.ui-sortable-helper { width:175px; }
+.placeholder { border:1px dashed #AAA; }
+
+span.options { cursor:default; font-size:1px; line-height:1px; position:absolute; }
+span.options a { background-color:#FFF; cursor:pointer; display:block; float:left; text-indent:-9000px; }
+
+.ui-sortable h2 span.options { right:10px; top:8px; width:30px; }
+.ui-sortable h2 span.options a { height:12px; width:30px; }
+
+dl.sort dt span.options { right:5px; top:5px; width:27px; }
+dl.sort dt span.options a { height:12px; width:12px; }
+dl.sort dt span.options a.up { margin-right:3px; }
+dl.sort dt span.options a.disabled { background-color:#555; cursor:default; }
+
+#container { float:left; }
+#header { width:638px; }
+#content { float:left; width:400px; }
+#sidebar { float:left; width:200px; }
+#footer { width:638px; }
+#trashcan { float:left; }
+
#trashcan p { margin:0; } \ No newline at end of file
diff --git a/ui/demos/real-world/layout/demo.js b/ui/demos/real-world/layout/demo.js
index a17478d2f..695863f25 100644
--- a/ui/demos/real-world/layout/demo.js
+++ b/ui/demos/real-world/layout/demo.js
@@ -1,97 +1,97 @@
-(function($){
- var updateUpDown = function(sortable){
- $('dl:not(.ui-sortable-helper)', sortable)
- .removeClass('first').removeClass('last')
- .find('.up, .down').removeClass('disabled').end()
- .filter(':first').addClass('first').find('.up').addClass('disabled').end().end()
- .filter(':last').addClass('last').find('.down').addClass('disabled').end().end();
- };
-
- var moveUpDown = function(){
- var link = $(this),
- dl = link.parents('dl'),
- prev = dl.prev('dl'),
- next = dl.next('dl');
-
- if(link.is('.up') && prev.length > 0)
- dl.insertBefore(prev);
-
- if(link.is('.down') && next.length > 0)
- dl.insertAfter(next);
-
- updateUpDown(dl.parent());
- };
-
- var addItem = function(){
- var sortable = $(this).parents('.ui-sortable');
- var options = '<span class="options"><a class="up">up</a><a class="down">down</a></span>';
- var tpl = '<dl class="sort"><dt>{name}' + options + '</dt><dd>{desc}</dd></dl>';
- var html = tpl.replace(/{name}/g, 'Dynamic name :D').replace(/{desc}/g, 'Description');
-
- sortable.append(html).sortable('refresh').find('a.up, a.down').bind('click', moveUpDown);
- updateUpDown(sortable);
- };
-
- var emptyTrashCan = function(item){
- item.remove();
- };
-
- var sortableChange = function(e, ui){
- if(ui.sender){
- var w = ui.element.width();
- ui.placeholder.width(w);
- ui.helper.css("width",ui.element.children().width());
- }
- };
-
- var sortableUpdate = function(e, ui){
- if(ui.element[0].id == 'trashcan'){
- emptyTrashCan(ui.item);
- } else {
- updateUpDown(ui.element[0]);
- if(ui.sender)
- updateUpDown(ui.sender[0]);
- }
- };
-
- $(document).ready(function(){
- var els = ['#header', '#content', '#sidebar', '#footer', '#trashcan'];
- var $els = $(els.toString());
-
- $('h2', $els.slice(0,-1)).append('<span class="options"><a class="add">add</a></span>');
- $('dt', $els).append('<span class="options"><a class="up">up</a><a class="down">down</a></span>');
-
- $('a.add').bind('click', addItem);
- $('a.up, a.down').bind('click', moveUpDown);
-
- $els.each(function(){
- updateUpDown(this);
- });
-
- $els.sortable({
- items: '> dl',
- handle: 'dt',
- cursor: 'move',
- //cursorAt: { top: 2, left: 2 },
- //opacity: 0.8,
- //helper: 'clone',
- appendTo: 'body',
- //placeholder: 'clone',
- //placeholder: 'placeholder',
- connectWith: els,
- start: function(e,ui) {
- ui.helper.css("width", ui.item.width());
- },
- change: sortableChange,
- update: sortableUpdate
- });
- });
-
- $(window).bind('load',function(){
- setTimeout(function(){
- $('#overlay').fadeOut(function(){
- $('body').css('overflow', 'auto');
- });
- }, 750);
- });
+(function($){
+ var updateUpDown = function(sortable){
+ $('dl:not(.ui-sortable-helper)', sortable)
+ .removeClass('first').removeClass('last')
+ .find('.up, .down').removeClass('disabled').end()
+ .filter(':first').addClass('first').find('.up').addClass('disabled').end().end()
+ .filter(':last').addClass('last').find('.down').addClass('disabled').end().end();
+ };
+
+ var moveUpDown = function(){
+ var link = $(this),
+ dl = link.parents('dl'),
+ prev = dl.prev('dl'),
+ next = dl.next('dl');
+
+ if(link.is('.up') && prev.length > 0)
+ dl.insertBefore(prev);
+
+ if(link.is('.down') && next.length > 0)
+ dl.insertAfter(next);
+
+ updateUpDown(dl.parent());
+ };
+
+ var addItem = function(){
+ var sortable = $(this).parents('.ui-sortable');
+ var options = '<span class="options"><a class="up">up</a><a class="down">down</a></span>';
+ var tpl = '<dl class="sort"><dt>{name}' + options + '</dt><dd>{desc}</dd></dl>';
+ var html = tpl.replace(/{name}/g, 'Dynamic name :D').replace(/{desc}/g, 'Description');
+
+ sortable.append(html).sortable('refresh').find('a.up, a.down').bind('click', moveUpDown);
+ updateUpDown(sortable);
+ };
+
+ var emptyTrashCan = function(item){
+ item.remove();
+ };
+
+ var sortableChange = function(e, ui){
+ if(ui.sender){
+ var w = ui.element.width();
+ ui.placeholder.width(w);
+ ui.helper.css("width",ui.element.children().width());
+ }
+ };
+
+ var sortableUpdate = function(e, ui){
+ if(ui.element[0].id == 'trashcan'){
+ emptyTrashCan(ui.item);
+ } else {
+ updateUpDown(ui.element[0]);
+ if(ui.sender)
+ updateUpDown(ui.sender[0]);
+ }
+ };
+
+ $(document).ready(function(){
+ var els = ['#header', '#content', '#sidebar', '#footer', '#trashcan'];
+ var $els = $(els.toString());
+
+ $('h2', $els.slice(0,-1)).append('<span class="options"><a class="add">add</a></span>');
+ $('dt', $els).append('<span class="options"><a class="up">up</a><a class="down">down</a></span>');
+
+ $('a.add').bind('click', addItem);
+ $('a.up, a.down').bind('click', moveUpDown);
+
+ $els.each(function(){
+ updateUpDown(this);
+ });
+
+ $els.sortable({
+ items: '> dl',
+ handle: 'dt',
+ cursor: 'move',
+ //cursorAt: { top: 2, left: 2 },
+ //opacity: 0.8,
+ //helper: 'clone',
+ appendTo: 'body',
+ //placeholder: 'clone',
+ //placeholder: 'placeholder',
+ connectWith: els,
+ start: function(e,ui) {
+ ui.helper.css("width", ui.item.width());
+ },
+ change: sortableChange,
+ update: sortableUpdate
+ });
+ });
+
+ $(window).bind('load',function(){
+ setTimeout(function(){
+ $('#overlay').fadeOut(function(){
+ $('body').css('overflow', 'auto');
+ });
+ }, 750);
+ });
})(jQuery); \ No newline at end of file
diff --git a/ui/demos/real-world/layout/index.html b/ui/demos/real-world/layout/index.html
index c988e9c0a..83f9d0378 100644
--- a/ui/demos/real-world/layout/index.html
+++ b/ui/demos/real-world/layout/index.html
@@ -1,94 +1,94 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <title>UI Sortable: Layout Demo</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-
- <meta name="title" content="UI Sortable: Layout Demo" />
- <meta name="description" content="A sortable layout created with the jQuery UI suite" />
-
- <meta name="author" content="Joan Piedra" />
- <meta name="author-url" content="http://www.joanpiedra.com/" />
- <meta name="author-url" content="http://www.justaquit.com/" />
- <meta name="author-url" content="http://jquery.com/" />
-
- <link rel="shortcut icon" href="http://jquery.com/favicon.ico" />
- <link rel="icon" href="http://jquery.com/favicon.ico" type="image/x-icon" />
-
- <link rel="stylesheet" href="demo.css" type="text/css" media="screen" />
- <!-- saved from url=(0013)about:internet -->
- </head>
-
- <body id="uidemo">
- <h1>UI Sortable: <em>Layout demo</em></h1>
-
- <div id="container">
- <div id="header" class="ui-sortable">
- <h2>Header</h2>
- <dl class="sort">
- <dt>Pages</dt>
- <dd>Main Navigation</dd>
- </dl>
- </div>
-
- <div id="content" class="ui-sortable">
- <h2>Content</h2>
- <dl class="sort">
- <dt>Blog</dt>
- <dd>Main blog post</dd>
- </dl>
- </div>
-
- <div id="sidebar" class="ui-sortable">
- <h2>Sidebar</h2>
- <dl class="sort">
- <dt>Pages</dt>
- <dd>Mini About</dd>
- </dl>
- <dl class="sort">
- <dt>Blog</dt>
- <dd>Monthly Archives</dd>
- </dl>
- <dl class="sort">
- <dt>Links</dt>
- <dd>Random Links</dd>
- </dl>
- </div>
-
- <div class="clear"></div>
-
- <div id="footer" class="ui-sortable">
- <h2>Footer</h2>
- <dl class="sort">
- <dt>Pages</dt>
- <dd>Copyright</dd>
- </dl>
- </div>
- </div>
-
- <div id="trashcan" class="ui-sortable">
- <h2>Trash can</h2>
- <p>Drag modules here to delete them.</p>
- </div>
-
- <div class="clear"></div>
- <div id="overlay">
- <div id="preloader"><img src="loader.gif" alt="" /></div>
- </div>
-
- <!-- jQuery Core -->
- <script type="text/javascript" src="../../../../jquery/jquery-1.2.6.js"></script>
-
- <!-- jQuery UI Base -->
- <script type="text/javascript" src="../../../source/ui.core.js"></script>
-
- <!-- jQuery UI Plugins -->
- <script type="text/javascript" src="../../../source/ui.draggable.js"></script>
- <script type="text/javascript" src="../../../source/ui.droppable.js"></script>
- <script type="text/javascript" src="../../../source/ui.sortable.js"></script>
-
-
- <!-- jQuery UI Demo -->
- <script type="text/javascript" src="demo.js"></script>
- </body>
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>UI Sortable: Layout Demo</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+
+ <meta name="title" content="UI Sortable: Layout Demo" />
+ <meta name="description" content="A sortable layout created with the jQuery UI suite" />
+
+ <meta name="author" content="Joan Piedra" />
+ <meta name="author-url" content="http://www.joanpiedra.com/" />
+ <meta name="author-url" content="http://www.justaquit.com/" />
+ <meta name="author-url" content="http://jquery.com/" />
+
+ <link rel="shortcut icon" href="http://jquery.com/favicon.ico" />
+ <link rel="icon" href="http://jquery.com/favicon.ico" type="image/x-icon" />
+
+ <link rel="stylesheet" href="demo.css" type="text/css" media="screen" />
+ <!-- saved from url=(0013)about:internet -->
+ </head>
+
+ <body id="uidemo">
+ <h1>UI Sortable: <em>Layout demo</em></h1>
+
+ <div id="container">
+ <div id="header" class="ui-sortable">
+ <h2>Header</h2>
+ <dl class="sort">
+ <dt>Pages</dt>
+ <dd>Main Navigation</dd>
+ </dl>
+ </div>
+
+ <div id="content" class="ui-sortable">
+ <h2>Content</h2>
+ <dl class="sort">
+ <dt>Blog</dt>
+ <dd>Main blog post</dd>
+ </dl>
+ </div>
+
+ <div id="sidebar" class="ui-sortable">
+ <h2>Sidebar</h2>
+ <dl class="sort">
+ <dt>Pages</dt>
+ <dd>Mini About</dd>
+ </dl>
+ <dl class="sort">
+ <dt>Blog</dt>
+ <dd>Monthly Archives</dd>
+ </dl>
+ <dl class="sort">
+ <dt>Links</dt>
+ <dd>Random Links</dd>
+ </dl>
+ </div>
+
+ <div class="clear"></div>
+
+ <div id="footer" class="ui-sortable">
+ <h2>Footer</h2>
+ <dl class="sort">
+ <dt>Pages</dt>
+ <dd>Copyright</dd>
+ </dl>
+ </div>
+ </div>
+
+ <div id="trashcan" class="ui-sortable">
+ <h2>Trash can</h2>
+ <p>Drag modules here to delete them.</p>
+ </div>
+
+ <div class="clear"></div>
+ <div id="overlay">
+ <div id="preloader"><img src="loader.gif" alt="" /></div>
+ </div>
+
+ <!-- jQuery Core -->
+ <script type="text/javascript" src="../../../../jquery/jquery-1.2.6.js"></script>
+
+ <!-- jQuery UI Base -->
+ <script type="text/javascript" src="../../../source/ui.core.js"></script>
+
+ <!-- jQuery UI Plugins -->
+ <script type="text/javascript" src="../../../source/ui.draggable.js"></script>
+ <script type="text/javascript" src="../../../source/ui.droppable.js"></script>
+ <script type="text/javascript" src="../../../source/ui.sortable.js"></script>
+
+
+ <!-- jQuery UI Demo -->
+ <script type="text/javascript" src="demo.js"></script>
+ </body>
</html> \ No newline at end of file
diff --git a/ui/demos/real-world/photo-manager/index.html b/ui/demos/real-world/photo-manager/index.html
index ec6568fe3..ecc9a5500 100644
--- a/ui/demos/real-world/photo-manager/index.html
+++ b/ui/demos/real-world/photo-manager/index.html
@@ -1,126 +1,126 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <title>jQuery UI Draggables and Droppables playground</title>
-
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <meta http-equiv="content-language" content="en" />
-
- <meta name="keywords" content="jquery, ui, droppables, draggables, demo" />
- <meta name="description" content="Demonstration of jQuery UI Droppables and Dragables. More to come." />
- <script type="text/javascript" src="../../../../jquery/jquery-1.2.6.js"></script>
- <script type="text/javascript" src="js/jquery.livequery.js"></script>
- <script type="text/javascript" src="js/jquery.blockUI.js"></script>
-
- <script type="text/javascript" src="../../../source/ui.core.js"></script>
- <script type="text/javascript" src="../../../source/ui.draggable.js"></script>
- <script type="text/javascript" src="../../../source/ui.droppable.js"></script>
-
- <script type="text/javascript" src="./js/demo.js"></script>
-
- <link rel="stylesheet" type="text/css" href="./theme/css/screen.css" media="screen, projection" />
- </head>
- <body>
- <h1>Manage Your Photos</h1>
- <div id="body_wrap">
- <div id="content">
- <h2>Drag photos to the Trash or waste them in the Shredder:</h2>
- <ul class="gallery">
- <li>
- <img src="./img/thumbs/P1010020.JPG" alt="Tatry 1" title="Drag me!" />
- <p>Tatry 1</p>
- <div>
- <a href="#" title="Trash me." class="tb_trash">Trash me</a>
- <a href="./img/P1010020.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
- </div>
- </li>
- <li>
- <img src="./img/thumbs/P1010036.JPG" alt="Tatry 2" title="Drag me!" />
- <p>Tatry 2</p>
- <div>
- <a href="#" title="Trash me." class="tb_trash">Trash me</a>
- <a href="./img/P1010036.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
- </div>
- </li>
- <li>
- <img src="./img/thumbs/P1010039.JPG" alt="Tatry 3" title="Drag me!" />
- <p>Tatry 3</p>
- <div>
- <a href="#" title="Trash me." class="tb_trash">Trash me</a>
- <a href="./img/P1010039.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
- </div>
- </li>
- <li>
- <img src="./img/thumbs/P1010044.JPG" alt="Tatry 4" title="Drag me!" />
- <p>Tatry 4</p>
- <div>
- <a href="#" title="Trash me." class="tb_trash">Trash me</a>
- <a href="./img/P1010044.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
- </div>
- </li>
- <li>
- <img src="./img/thumbs/P1010050.JPG" alt="Tatry 5" title="Drag me!" />
- <p>Tatry 5</p>
- <div>
- <a href="#" title="Trash me." class="tb_trash">Trash me</a>
- <a href="./img/P1010050.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
- </div>
- </li>
- <li>
- <img src="./img/thumbs/P1010055.JPG" alt="Tatry 6" title="Drag me!" />
- <p>Tatry 6</p>
- <div>
- <a href="#" title="Trash me." class="tb_trash">Trash me</a>
- <a href="./img/P1010055.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
- </div>
- </li>
- <li>
- <img src="./img/thumbs/P1010058.JPG" alt="Tatry 7" title="Drag me!" />
- <p>Tatry 7</p>
- <div>
- <a href="#" title="Trash me." class="tb_trash">Trash me</a>
- <a href="./img/P1010058.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
- </div>
- </li>
- <li>
- <img src="./img/thumbs/P1010059.JPG" alt="Tatry 8" title="Drag me!" />
- <p>Tatry 8</p>
- <div>
- <a href="#" title="Trash me." class="tb_trash">Trash me</a>
- <a href="./img/P1010059.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
- </div>
- </li>
- <li>
- <img src="./img/thumbs/P1010061.JPG" alt="Tatry 9" title="Drag me!" />
- <p>Tatry 9</p>
- <div>
- <a href="#" title="Trash me." class="tb_trash">Trash me</a>
- <a href="./img/P1010061.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
- </div>
- </li>
- <li>
- <img src="./img/thumbs/P1010063.JPG" alt="Tatry 10" title="Drag me!" />
- <p>Tatry 10</p>
- <div>
- <a href="#" title="Trash me." class="tb_trash">Trash me</a>
- <a href="./img/P1010063.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
- </div>
- </li>
- </ul>
- </div>
- <div id="sidebar">
- <div class="box" id="trash">
- <h2>Trash (drag me back)</h2>
- <div></div>
- </div>
- <div class="box" id="shred">
- <h2>Shredder (see me no more)</h2>
- <div></div>
- </div>
- </div>
- </div>
- <div id="footer">
- <p>Demo footer here :)</p>
- </div>
- </body>
-</html>
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>jQuery UI Draggables and Droppables playground</title>
+
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <meta http-equiv="content-language" content="en" />
+
+ <meta name="keywords" content="jquery, ui, droppables, draggables, demo" />
+ <meta name="description" content="Demonstration of jQuery UI Droppables and Dragables. More to come." />
+ <script type="text/javascript" src="../../../../jquery/jquery-1.2.6.js"></script>
+ <script type="text/javascript" src="js/jquery.livequery.js"></script>
+ <script type="text/javascript" src="js/jquery.blockUI.js"></script>
+
+ <script type="text/javascript" src="../../../source/ui.core.js"></script>
+ <script type="text/javascript" src="../../../source/ui.draggable.js"></script>
+ <script type="text/javascript" src="../../../source/ui.droppable.js"></script>
+
+ <script type="text/javascript" src="./js/demo.js"></script>
+
+ <link rel="stylesheet" type="text/css" href="./theme/css/screen.css" media="screen, projection" />
+ </head>
+ <body>
+ <h1>Manage Your Photos</h1>
+ <div id="body_wrap">
+ <div id="content">
+ <h2>Drag photos to the Trash or waste them in the Shredder:</h2>
+ <ul class="gallery">
+ <li>
+ <img src="./img/thumbs/P1010020.JPG" alt="Tatry 1" title="Drag me!" />
+ <p>Tatry 1</p>
+ <div>
+ <a href="#" title="Trash me." class="tb_trash">Trash me</a>
+ <a href="./img/P1010020.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
+ </div>
+ </li>
+ <li>
+ <img src="./img/thumbs/P1010036.JPG" alt="Tatry 2" title="Drag me!" />
+ <p>Tatry 2</p>
+ <div>
+ <a href="#" title="Trash me." class="tb_trash">Trash me</a>
+ <a href="./img/P1010036.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
+ </div>
+ </li>
+ <li>
+ <img src="./img/thumbs/P1010039.JPG" alt="Tatry 3" title="Drag me!" />
+ <p>Tatry 3</p>
+ <div>
+ <a href="#" title="Trash me." class="tb_trash">Trash me</a>
+ <a href="./img/P1010039.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
+ </div>
+ </li>
+ <li>
+ <img src="./img/thumbs/P1010044.JPG" alt="Tatry 4" title="Drag me!" />
+ <p>Tatry 4</p>
+ <div>
+ <a href="#" title="Trash me." class="tb_trash">Trash me</a>
+ <a href="./img/P1010044.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
+ </div>
+ </li>
+ <li>
+ <img src="./img/thumbs/P1010050.JPG" alt="Tatry 5" title="Drag me!" />
+ <p>Tatry 5</p>
+ <div>
+ <a href="#" title="Trash me." class="tb_trash">Trash me</a>
+ <a href="./img/P1010050.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
+ </div>
+ </li>
+ <li>
+ <img src="./img/thumbs/P1010055.JPG" alt="Tatry 6" title="Drag me!" />
+ <p>Tatry 6</p>
+ <div>
+ <a href="#" title="Trash me." class="tb_trash">Trash me</a>
+ <a href="./img/P1010055.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
+ </div>
+ </li>
+ <li>
+ <img src="./img/thumbs/P1010058.JPG" alt="Tatry 7" title="Drag me!" />
+ <p>Tatry 7</p>
+ <div>
+ <a href="#" title="Trash me." class="tb_trash">Trash me</a>
+ <a href="./img/P1010058.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
+ </div>
+ </li>
+ <li>
+ <img src="./img/thumbs/P1010059.JPG" alt="Tatry 8" title="Drag me!" />
+ <p>Tatry 8</p>
+ <div>
+ <a href="#" title="Trash me." class="tb_trash">Trash me</a>
+ <a href="./img/P1010059.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
+ </div>
+ </li>
+ <li>
+ <img src="./img/thumbs/P1010061.JPG" alt="Tatry 9" title="Drag me!" />
+ <p>Tatry 9</p>
+ <div>
+ <a href="#" title="Trash me." class="tb_trash">Trash me</a>
+ <a href="./img/P1010061.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
+ </div>
+ </li>
+ <li>
+ <img src="./img/thumbs/P1010063.JPG" alt="Tatry 10" title="Drag me!" />
+ <p>Tatry 10</p>
+ <div>
+ <a href="#" title="Trash me." class="tb_trash">Trash me</a>
+ <a href="./img/P1010063.JPG" title="See me supersized." class="tb_supersize">See me supersized</a>
+ </div>
+ </li>
+ </ul>
+ </div>
+ <div id="sidebar">
+ <div class="box" id="trash">
+ <h2>Trash (drag me back)</h2>
+ <div></div>
+ </div>
+ <div class="box" id="shred">
+ <h2>Shredder (see me no more)</h2>
+ <div></div>
+ </div>
+ </div>
+ </div>
+ <div id="footer">
+ <p>Demo footer here :)</p>
+ </div>
+ </body>
+</html>
diff --git a/ui/demos/real-world/photo-manager/js/demo.js b/ui/demos/real-world/photo-manager/js/demo.js
index 437191e2c..fac91ca1c 100644
--- a/ui/demos/real-world/photo-manager/js/demo.js
+++ b/ui/demos/real-world/photo-manager/js/demo.js
@@ -1,130 +1,130 @@
-/*
- * The very first increment of Droppables&Draggables demo. The code is going to
- * be more concise (remove unnecessary code repetitions etc.). And imho the
- * photo management is a good candidate for demonstration of more jQuery UI
- * components (sortables, selectables...). More to come...
- *
- */
-
-$(window).bind('load', function() {
- // make images in the gallery draggable
- $('ul.gallery img').addClass('img_content').draggable({
- helper: 'clone'
- });
-
- // make the trash box droppable, accepting images from the content section only
- $('#trash div').droppable({
- accept: '.img_content',
- activeClass: 'active',
- drop: function(ev, ui) {
- var $that = $(this);
- ui.draggable.parent().fadeOut('slow', function() {
- ui.draggable
- .hide()
- .appendTo($that)
- .fadeIn('slow')
- .animate({
- width: '72px',
- height: '54px'
- })
- .removeClass('img_content')
- .addClass('img_trash');
- $(this).remove();
- });
- }
- });
-
- // make the shredder box droppable, accepting images from both content and trash sections
- $('#shred div').droppable({
- accept: '.img_content, .img_trash',
- activeClass: 'active',
- drop: function(ev, ui) {
- var $that = $(this);
- // images from the content
- if (ui.draggable.hasClass('img_content')) {
- ui.draggable.parent().fadeOut('slow', function() {
- ui.draggable
- .appendTo($that)
- .animate({
- width: '0',
- height: '0'
- }, 'slow', function(){
- $(this).remove();
- });
- $(this).remove();
- });
- }
- // images from the trash
- else if (ui.draggable.hasClass('img_trash')) {
- ui.draggable
- .appendTo($that)
- .animate({
- width: '0',
- height: '0'
- }, 'slow', function(){
- $(this).remove();
- });
- }
- }
- });
-
- // make the gallery droppable as well, accepting images from the trash only
- $('ul.gallery').droppable({
- accept: '.img_trash',
- activeClass: 'active',
- drop: function(ev, ui) {
- var $that = $(this);
- ui.draggable.fadeOut('slow', function() {
- var $item = createGalleryItem(this).appendTo($that);
- $(this)
- .removeClass('img_trash')
- .addClass('img_content')
- .css({ width: '144px', height: '108px' })
- .show();
- $item.fadeIn('slow');
- });
- }
- });
-
- // handle the trash icon behavior
- $('a.tb_trash').livequery('click', function() {
- var $this = $(this);
- var $img = $this.parent().siblings('img');
- var $item = $this.parents('li');
-
- $item.fadeOut('slow', function() {
- $img
- .hide()
- .appendTo('#trash div')
- .fadeIn('slow')
- .animate({
- width: '72px',
- height: '54px'
- })
- .removeClass('img_content')
- .addClass('img_trash');
- $(this).remove();
- });
-
- return false;
- });
-
- // handle the magnify button
- $('a.tb_supersize').livequery('click', function() {
- $('<img width="576" height="432">')
- .attr('src', $(this).attr('href'))
- .appendTo('#body_wrap')
- .displayBox();
- return false;
- });
-});
-
-function createGalleryItem(img) {
- var title = img.getAttribute('alt');
- var href = img.getAttribute('src').replace(/thumbs\//, '');
-
- var $item = $('<li><p>'+title+'</p><div><a href="#" title="Trash me" class="tb_trash">Trash me</a><a href="'+href+'" title="See me supersized" class="tb_supersize">See me supersized</a></div></li>').hide();
- $item.prepend($(img));
-
- return $item;
-}
+/*
+ * The very first increment of Droppables&Draggables demo. The code is going to
+ * be more concise (remove unnecessary code repetitions etc.). And imho the
+ * photo management is a good candidate for demonstration of more jQuery UI
+ * components (sortables, selectables...). More to come...
+ *
+ */
+
+$(window).bind('load', function() {
+ // make images in the gallery draggable
+ $('ul.gallery img').addClass('img_content').draggable({
+ helper: 'clone'
+ });
+
+ // make the trash box droppable, accepting images from the content section only
+ $('#trash div').droppable({
+ accept: '.img_content',
+ activeClass: 'active',
+ drop: function(ev, ui) {
+ var $that = $(this);
+ ui.draggable.parent().fadeOut('slow', function() {
+ ui.draggable
+ .hide()
+ .appendTo($that)
+ .fadeIn('slow')
+ .animate({
+ width: '72px',
+ height: '54px'
+ })
+ .removeClass('img_content')
+ .addClass('img_trash');
+ $(this).remove();
+ });
+ }
+ });
+
+ // make the shredder box droppable, accepting images from both content and trash sections
+ $('#shred div').droppable({
+ accept: '.img_content, .img_trash',
+ activeClass: 'active',
+ drop: function(ev, ui) {
+ var $that = $(this);
+ // images from the content
+ if (ui.draggable.hasClass('img_content')) {
+ ui.draggable.parent().fadeOut('slow', function() {
+ ui.draggable
+ .appendTo($that)
+ .animate({
+ width: '0',
+ height: '0'
+ }, 'slow', function(){
+ $(this).remove();
+ });
+ $(this).remove();
+ });
+ }
+ // images from the trash
+ else if (ui.draggable.hasClass('img_trash')) {
+ ui.draggable
+ .appendTo($that)
+ .animate({
+ width: '0',
+ height: '0'
+ }, 'slow', function(){
+ $(this).remove();
+ });
+ }
+ }
+ });
+
+ // make the gallery droppable as well, accepting images from the trash only
+ $('ul.gallery').droppable({
+ accept: '.img_trash',
+ activeClass: 'active',
+ drop: function(ev, ui) {
+ var $that = $(this);
+ ui.draggable.fadeOut('slow', function() {
+ var $item = createGalleryItem(this).appendTo($that);
+ $(this)
+ .removeClass('img_trash')
+ .addClass('img_content')
+ .css({ width: '144px', height: '108px' })
+ .show();
+ $item.fadeIn('slow');
+ });
+ }
+ });
+
+ // handle the trash icon behavior
+ $('a.tb_trash').livequery('click', function() {
+ var $this = $(this);
+ var $img = $this.parent().siblings('img');
+ var $item = $this.parents('li');
+
+ $item.fadeOut('slow', function() {
+ $img
+ .hide()
+ .appendTo('#trash div')
+ .fadeIn('slow')
+ .animate({
+ width: '72px',
+ height: '54px'
+ })
+ .removeClass('img_content')
+ .addClass('img_trash');
+ $(this).remove();
+ });
+
+ return false;
+ });
+
+ // handle the magnify button
+ $('a.tb_supersize').livequery('click', function() {
+ $('<img width="576" height="432">')
+ .attr('src', $(this).attr('href'))
+ .appendTo('#body_wrap')
+ .displayBox();
+ return false;
+ });
+});
+
+function createGalleryItem(img) {
+ var title = img.getAttribute('alt');
+ var href = img.getAttribute('src').replace(/thumbs\//, '');
+
+ var $item = $('<li><p>'+title+'</p><div><a href="#" title="Trash me" class="tb_trash">Trash me</a><a href="'+href+'" title="See me supersized" class="tb_supersize">See me supersized</a></div></li>').hide();
+ $item.prepend($(img));
+
+ return $item;
+}
diff --git a/ui/demos/real-world/photo-manager/js/jquery.blockUI.js b/ui/demos/real-world/photo-manager/js/jquery.blockUI.js
index 1c338ebb5..b24c2dd05 100644
--- a/ui/demos/real-world/photo-manager/js/jquery.blockUI.js
+++ b/ui/demos/real-world/photo-manager/js/jquery.blockUI.js
@@ -1,361 +1,361 @@
-/*
- * jQuery blockUI plugin
- * Version 1.33 (09/14/2007)
- * @requires jQuery v1.1.1
- *
- * $Id: jquery.blockUI.js 3291 2007-09-14 23:56:25Z malsup $
- *
- * Examples at: http://malsup.com/jquery/block/
- * Copyright (c) 2007 M. Alsup
- * Dual licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- */
- (function($) {
-/**
- * blockUI provides a mechanism for blocking user interaction with a page (or parts of a page).
- * This can be an effective way to simulate synchronous behavior during ajax operations without
- * locking the browser. It will prevent user operations for the current page while it is
- * active ane will return the page to normal when it is deactivate. blockUI accepts the following
- * two optional arguments:
- *
- * message (String|Element|jQuery): The message to be displayed while the UI is blocked. The message
- * argument can be a plain text string like "Processing...", an HTML string like
- * "<h1><img src="busy.gif" /> Please wait...</h1>", a DOM element, or a jQuery object.
- * The default message is "<h1>Please wait...</h1>"
- *
- * css (Object): Object which contains css property/values to override the default styles of
- * the message. Use this argument if you wish to override the default
- * styles. The css Object should be in a format suitable for the jQuery.css
- * function. For example:
- * $.blockUI({
- * backgroundColor: '#ff8',
- * border: '5px solid #f00,
- * fontWeight: 'bold'
- * });
- *
- * The default blocking message used when blocking the entire page is "<h1>Please wait...</h1>"
- * but this can be overridden by assigning a value to $.blockUI.defaults.pageMessage in your
- * own code. For example:
- *
- * $.blockUI.defaults.pageMessage = "<h1>Bitte Wartezeit</h1>";
- *
- * The default message styling can also be overridden. For example:
- *
- * $.extend($.blockUI.defaults.pageMessageCSS, { color: '#00a', backgroundColor: '#0f0' });
- *
- * The default styles work well for simple messages like "Please wait", but for longer messages
- * style overrides may be necessary.
- *
- * @example $.blockUI();
- * @desc prevent user interaction with the page (and show the default message of 'Please wait...')
- *
- * @example $.blockUI( { backgroundColor: '#f00', color: '#fff'} );
- * @desc prevent user interaction and override the default styles of the message to use a white on red color scheme
- *
- * @example $.blockUI('Processing...');
- * @desc prevent user interaction and display the message "Processing..." instead of the default message
- *
- * @name blockUI
- * @param String|jQuery|Element message Message to display while the UI is blocked
- * @param Object css Style object to control look of the message
- * @cat Plugins/blockUI
- */
-$.blockUI = function(msg, css, opts) {
- $.blockUI.impl.install(window, msg, css, opts);
-};
-
-// expose version number so other plugins can interogate
-$.blockUI.version = 1.33;
-
-/**
- * unblockUI removes the UI block that was put in place by blockUI
- *
- * @example $.unblockUI();
- * @desc unblocks the page
- *
- * @name unblockUI
- * @cat Plugins/blockUI
- */
-$.unblockUI = function(opts) {
- $.blockUI.impl.remove(window, opts);
-};
-
-/**
- * Blocks user interaction with the selected elements. (Hat tip: Much of
- * this logic comes from Brandon Aaron's bgiframe plugin. Thanks, Brandon!)
- * By default, no message is displayed when blocking elements.
- *
- * @example $('div.special').block();
- * @desc prevent user interaction with all div elements with the 'special' class.
- *
- * @example $('div.special').block('Please wait');
- * @desc prevent user interaction with all div elements with the 'special' class
- * and show a message over the blocked content.
- *
- * @name block
- * @type jQuery
- * @param String|jQuery|Element message Message to display while the element is blocked
- * @param Object css Style object to control look of the message
- * @cat Plugins/blockUI
- */
-$.fn.block = function(msg, css, opts) {
- return this.each(function() {
- if (!this.$pos_checked) {
- if ($.css(this,"position") == 'static')
- this.style.position = 'relative';
- if ($.browser.msie) this.style.zoom = 1; // force 'hasLayout' in IE
- this.$pos_checked = 1;
- }
- $.blockUI.impl.install(this, msg, css, opts);
- });
-};
-
-/**
- * Unblocks content that was blocked by "block()"
- *
- * @example $('div.special').unblock();
- * @desc unblocks all div elements with the 'special' class.
- *
- * @name unblock
- * @type jQuery
- * @cat Plugins/blockUI
- */
-$.fn.unblock = function(opts) {
- return this.each(function() {
- $.blockUI.impl.remove(this, opts);
- });
-};
-
-/**
- * displays the first matched element in a "display box" above a page overlay.
- *
- * @example $('#myImage').displayBox();
- * @desc displays "myImage" element in a box
- *
- * @name displayBox
- * @type jQuery
- * @cat Plugins/blockUI
- */
-$.fn.displayBox = function(css, fn, isFlash) {
- var msg = this[0];
- if (!msg) return;
- var $msg = $(msg);
- css = css || {};
-
- var w = $msg.width() || $msg.attr('width') || css.width || $.blockUI.defaults.displayBoxCSS.width;
- var h = $msg.height() || $msg.attr('height') || css.height || $.blockUI.defaults.displayBoxCSS.height ;
- if (w[w.length-1] == '%') {
- var ww = document.documentElement.clientWidth || document.body.clientWidth;
- w = parseInt(w) || 100;
- w = (w * ww) / 100;
- }
- if (h[h.length-1] == '%') {
- var hh = document.documentElement.clientHeight || document.body.clientHeight;
- h = parseInt(h) || 100;
- h = (h * hh) / 100;
- }
-
- var ml = '-' + parseInt(w)/2 + 'px';
- var mt = '-' + parseInt(h)/2 + 'px';
-
- // supress opacity on overlay if displaying flash content on mac/ff platform
- var ua = navigator.userAgent.toLowerCase();
- var opts = {
- displayMode: fn || 1,
- noalpha: isFlash && /mac/.test(ua) && /firefox/.test(ua)
- };
-
- $.blockUI.impl.install(window, msg, { width: w, height: h, marginTop: mt, marginLeft: ml }, opts);
-};
-
-
-// override these in your code to change the default messages and styles
-$.blockUI.defaults = {
- // the message displayed when blocking the entire page
- pageMessage: '<h1>Please wait...</h1>',
- // the message displayed when blocking an element
- elementMessage: '', // none
- // styles for the overlay iframe
- overlayCSS: { backgroundColor: '#fff', opacity: '0.5' },
- // styles for the message when blocking the entire page
- pageMessageCSS: { width:'250px', margin:'-50px 0 0 -125px', top:'50%', left:'50%', textAlign:'center', color:'#000', backgroundColor:'#fff', border:'3px solid #aaa' },
- // styles for the message when blocking an element
- elementMessageCSS: { width:'250px', padding:'10px', textAlign:'center', backgroundColor:'#fff'},
- // styles for the displayBox
- displayBoxCSS: { width: '400px', height: '400px', top:'50%', left:'50%' },
- // allow body element to be stetched in ie6
- ie6Stretch: 1,
- // supress tab nav from leaving blocking content?
- allowTabToLeave: 0,
- // Title attribute for overlay when using displayBox
- closeMessage: 'Click to close',
- // use fadeOut effect when unblocking (can be overridden on unblock call)
- fadeOut: 1,
- // fadeOut transition time in millis
- fadeTime: 400
-};
-
-// the gory details
-$.blockUI.impl = {
- box: null,
- boxCallback: null,
- pageBlock: null,
- pageBlockEls: [],
- op8: window.opera && window.opera.version() < 9,
- ie6: $.browser.msie && /MSIE 6.0/.test(navigator.userAgent),
- install: function(el, msg, css, opts) {
- opts = opts || {};
- this.boxCallback = typeof opts.displayMode == 'function' ? opts.displayMode : null;
- this.box = opts.displayMode ? msg : null;
- var full = (el == window);
-
- // use logical settings for opacity support based on browser but allow overrides via opts arg
- var noalpha = this.op8 || $.browser.mozilla && /Linux/.test(navigator.platform);
- if (typeof opts.alphaOverride != 'undefined')
- noalpha = opts.alphaOverride == 0 ? 1 : 0;
-
- if (full && this.pageBlock) this.remove(window, {fadeOut:0});
- // check to see if we were only passed the css object (a literal)
- if (msg && typeof msg == 'object' && !msg.jquery && !msg.nodeType) {
- css = msg;
- msg = null;
- }
- msg = msg ? (msg.nodeType ? $(msg) : msg) : full ? $.blockUI.defaults.pageMessage : $.blockUI.defaults.elementMessage;
- if (opts.displayMode)
- var basecss = jQuery.extend({}, $.blockUI.defaults.displayBoxCSS);
- else
- var basecss = jQuery.extend({}, full ? $.blockUI.defaults.pageMessageCSS : $.blockUI.defaults.elementMessageCSS);
- css = jQuery.extend(basecss, css || {});
- var f = ($.browser.msie) ? $('<iframe class="blockUI" style="z-index:1000;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="javascript:false;"></iframe>')
- : $('<div class="blockUI" style="display:none"></div>');
- var w = $('<div class="blockUI" style="z-index:1001;cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
- var m = full ? $('<div class="blockUI blockMsg" style="z-index:1002;cursor:wait;padding:0;position:fixed"></div>')
- : $('<div class="blockUI" style="display:none;z-index:1002;cursor:wait;position:absolute"></div>');
- w.css('position', full ? 'fixed' : 'absolute');
- if (msg) m.css(css);
- if (!noalpha) w.css($.blockUI.defaults.overlayCSS);
- if (this.op8) w.css({ width:''+el.clientWidth,height:''+el.clientHeight }); // lame
- if ($.browser.msie) f.css('opacity','0.0');
-
- $([f[0],w[0],m[0]]).appendTo(full ? 'body' : el);
-
- // ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling)
- var expr = $.browser.msie && (!$.boxModel || $('object,embed', full ? null : el).length > 0);
- if (this.ie6 || expr) {
- // stretch content area if it's short
- if (full && $.blockUI.defaults.ie6Stretch && $.boxModel)
- $('html,body').css('height','100%');
-
- // fix ie6 problem when blocked element has a border width
- if ((this.ie6 || !$.boxModel) && !full) {
- var t = this.sz(el,'borderTopWidth'), l = this.sz(el,'borderLeftWidth');
- var fixT = t ? '(0 - '+t+')' : 0;
- var fixL = l ? '(0 - '+l+')' : 0;
- }
-
- // simulate fixed position
- $.each([f,w,m], function(i,o) {
- var s = o[0].style;
- s.position = 'absolute';
- if (i < 2) {
- full ? s.setExpression('height','document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + "px"')
- : s.setExpression('height','this.parentNode.offsetHeight + "px"');
- full ? s.setExpression('width','jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"')
- : s.setExpression('width','this.parentNode.offsetWidth + "px"');
- if (fixL) s.setExpression('left', fixL);
- if (fixT) s.setExpression('top', fixT);
- }
- else {
- if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
- s.marginTop = 0;
- }
- });
- }
- if (opts.displayMode) {
- w.css('cursor','default').attr('title', $.blockUI.defaults.closeMessage);
- m.css('cursor','default');
- $([f[0],w[0],m[0]]).removeClass('blockUI').addClass('displayBox');
- $().click($.blockUI.impl.boxHandler).bind('keypress', $.blockUI.impl.boxHandler);
- }
- else
- this.bind(1, el);
- m.append(msg).show();
- if (msg.jquery) msg.show();
- if (opts.displayMode) return;
- if (full) {
- this.pageBlock = m[0];
- this.pageBlockEls = $(':input:enabled:visible',this.pageBlock);
- setTimeout(this.focus, 20);
- }
- else this.center(m[0]);
- },
- remove: function(el, opts) {
- var o = $.extend({}, $.blockUI.defaults, opts);
- this.bind(0, el);
- var full = el == window;
- var els = full ? $('body').children().filter('.blockUI') : $('.blockUI', el);
- if (full) this.pageBlock = this.pageBlockEls = null;
-
- if (o.fadeOut) {
- els.fadeOut(o.fadeTime, function() {
- if (this.parentNode) this.parentNode.removeChild(this);
- });
- }
- else els.remove();
- },
- boxRemove: function(el) {
- $().unbind('click',$.blockUI.impl.boxHandler).unbind('keypress', $.blockUI.impl.boxHandler);
- if (this.boxCallback)
- this.boxCallback(this.box);
- $('body .displayBox').hide().remove();
- },
- // event handler to suppress keyboard/mouse events when blocking
- handler: function(e) {
- if (e.keyCode && e.keyCode == 9) {
- if ($.blockUI.impl.pageBlock && !$.blockUI.defaults.allowTabToLeave) {
- var els = $.blockUI.impl.pageBlockEls;
- var fwd = !e.shiftKey && e.target == els[els.length-1];
- var back = e.shiftKey && e.target == els[0];
- if (fwd || back) {
- setTimeout(function(){$.blockUI.impl.focus(back)},10);
- return false;
- }
- }
- }
- if ($(e.target).parents('div.blockMsg').length > 0)
- return true;
- return $(e.target).parents().children().filter('div.blockUI').length == 0;
- },
- boxHandler: function(e) {
- if ((e.keyCode && e.keyCode == 27) || (e.type == 'click' && $(e.target).parents('div.blockMsg').length == 0))
- $.blockUI.impl.boxRemove();
- return true;
- },
- // bind/unbind the handler
- bind: function(b, el) {
- var full = el == window;
- // don't bother unbinding if there is nothing to unbind
- if (!b && (full && !this.pageBlock || !full && !el.$blocked)) return;
- if (!full) el.$blocked = b;
- var $e = $(el).find('a,:input');
- $.each(['mousedown','mouseup','keydown','keypress','click'], function(i,o) {
- $e[b?'bind':'unbind'](o, $.blockUI.impl.handler);
- });
- },
- focus: function(back) {
- if (!$.blockUI.impl.pageBlockEls) return;
- var e = $.blockUI.impl.pageBlockEls[back===true ? $.blockUI.impl.pageBlockEls.length-1 : 0];
- if (e) e.focus();
- },
- center: function(el) {
- var p = el.parentNode, s = el.style;
- var l = ((p.offsetWidth - el.offsetWidth)/2) - this.sz(p,'borderLeftWidth');
- var t = ((p.offsetHeight - el.offsetHeight)/2) - this.sz(p,'borderTopWidth');
- s.left = l > 0 ? (l+'px') : '0';
- s.top = t > 0 ? (t+'px') : '0';
- },
- sz: function(el, p) { return parseInt($.css(el,p))||0; }
-};
-
-})(jQuery);
+/*
+ * jQuery blockUI plugin
+ * Version 1.33 (09/14/2007)
+ * @requires jQuery v1.1.1
+ *
+ * $Id: jquery.blockUI.js 3291 2007-09-14 23:56:25Z malsup $
+ *
+ * Examples at: http://malsup.com/jquery/block/
+ * Copyright (c) 2007 M. Alsup
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ */
+ (function($) {
+/**
+ * blockUI provides a mechanism for blocking user interaction with a page (or parts of a page).
+ * This can be an effective way to simulate synchronous behavior during ajax operations without
+ * locking the browser. It will prevent user operations for the current page while it is
+ * active ane will return the page to normal when it is deactivate. blockUI accepts the following
+ * two optional arguments:
+ *
+ * message (String|Element|jQuery): The message to be displayed while the UI is blocked. The message
+ * argument can be a plain text string like "Processing...", an HTML string like
+ * "<h1><img src="busy.gif" /> Please wait...</h1>", a DOM element, or a jQuery object.
+ * The default message is "<h1>Please wait...</h1>"
+ *
+ * css (Object): Object which contains css property/values to override the default styles of
+ * the message. Use this argument if you wish to override the default
+ * styles. The css Object should be in a format suitable for the jQuery.css
+ * function. For example:
+ * $.blockUI({
+ * backgroundColor: '#ff8',
+ * border: '5px solid #f00,
+ * fontWeight: 'bold'
+ * });
+ *
+ * The default blocking message used when blocking the entire page is "<h1>Please wait...</h1>"
+ * but this can be overridden by assigning a value to $.blockUI.defaults.pageMessage in your
+ * own code. For example:
+ *
+ * $.blockUI.defaults.pageMessage = "<h1>Bitte Wartezeit</h1>";
+ *
+ * The default message styling can also be overridden. For example:
+ *
+ * $.extend($.blockUI.defaults.pageMessageCSS, { color: '#00a', backgroundColor: '#0f0' });
+ *
+ * The default styles work well for simple messages like "Please wait", but for longer messages
+ * style overrides may be necessary.
+ *
+ * @example $.blockUI();
+ * @desc prevent user interaction with the page (and show the default message of 'Please wait...')
+ *
+ * @example $.blockUI( { backgroundColor: '#f00', color: '#fff'} );
+ * @desc prevent user interaction and override the default styles of the message to use a white on red color scheme
+ *
+ * @example $.blockUI('Processing...');
+ * @desc prevent user interaction and display the message "Processing..." instead of the default message
+ *
+ * @name blockUI
+ * @param String|jQuery|Element message Message to display while the UI is blocked
+ * @param Object css Style object to control look of the message
+ * @cat Plugins/blockUI
+ */
+$.blockUI = function(msg, css, opts) {
+ $.blockUI.impl.install(window, msg, css, opts);
+};
+
+// expose version number so other plugins can interogate
+$.blockUI.version = 1.33;
+
+/**
+ * unblockUI removes the UI block that was put in place by blockUI
+ *
+ * @example $.unblockUI();
+ * @desc unblocks the page
+ *
+ * @name unblockUI
+ * @cat Plugins/blockUI
+ */
+$.unblockUI = function(opts) {
+ $.blockUI.impl.remove(window, opts);
+};
+
+/**
+ * Blocks user interaction with the selected elements. (Hat tip: Much of
+ * this logic comes from Brandon Aaron's bgiframe plugin. Thanks, Brandon!)
+ * By default, no message is displayed when blocking elements.
+ *
+ * @example $('div.special').block();
+ * @desc prevent user interaction with all div elements with the 'special' class.
+ *
+ * @example $('div.special').block('Please wait');
+ * @desc prevent user interaction with all div elements with the 'special' class
+ * and show a message over the blocked content.
+ *
+ * @name block
+ * @type jQuery
+ * @param String|jQuery|Element message Message to display while the element is blocked
+ * @param Object css Style object to control look of the message
+ * @cat Plugins/blockUI
+ */
+$.fn.block = function(msg, css, opts) {
+ return this.each(function() {
+ if (!this.$pos_checked) {
+ if ($.css(this,"position") == 'static')
+ this.style.position = 'relative';
+ if ($.browser.msie) this.style.zoom = 1; // force 'hasLayout' in IE
+ this.$pos_checked = 1;
+ }
+ $.blockUI.impl.install(this, msg, css, opts);
+ });
+};
+
+/**
+ * Unblocks content that was blocked by "block()"
+ *
+ * @example $('div.special').unblock();
+ * @desc unblocks all div elements with the 'special' class.
+ *
+ * @name unblock
+ * @type jQuery
+ * @cat Plugins/blockUI
+ */
+$.fn.unblock = function(opts) {
+ return this.each(function() {
+ $.blockUI.impl.remove(this, opts);
+ });
+};
+
+/**
+ * displays the first matched element in a "display box" above a page overlay.
+ *
+ * @example $('#myImage').displayBox();
+ * @desc displays "myImage" element in a box
+ *
+ * @name displayBox
+ * @type jQuery
+ * @cat Plugins/blockUI
+ */
+$.fn.displayBox = function(css, fn, isFlash) {
+ var msg = this[0];
+ if (!msg) return;
+ var $msg = $(msg);
+ css = css || {};
+
+ var w = $msg.width() || $msg.attr('width') || css.width || $.blockUI.defaults.displayBoxCSS.width;
+ var h = $msg.height() || $msg.attr('height') || css.height || $.blockUI.defaults.displayBoxCSS.height ;
+ if (w[w.length-1] == '%') {
+ var ww = document.documentElement.clientWidth || document.body.clientWidth;
+ w = parseInt(w) || 100;
+ w = (w * ww) / 100;
+ }
+ if (h[h.length-1] == '%') {
+ var hh = document.documentElement.clientHeight || document.body.clientHeight;
+ h = parseInt(h) || 100;
+ h = (h * hh) / 100;
+ }
+
+ var ml = '-' + parseInt(w)/2 + 'px';
+ var mt = '-' + parseInt(h)/2 + 'px';
+
+ // supress opacity on overlay if displaying flash content on mac/ff platform
+ var ua = navigator.userAgent.toLowerCase();
+ var opts = {
+ displayMode: fn || 1,
+ noalpha: isFlash && /mac/.test(ua) && /firefox/.test(ua)
+ };
+
+ $.blockUI.impl.install(window, msg, { width: w, height: h, marginTop: mt, marginLeft: ml }, opts);
+};
+
+
+// override these in your code to change the default messages and styles
+$.blockUI.defaults = {
+ // the message displayed when blocking the entire page
+ pageMessage: '<h1>Please wait...</h1>',
+ // the message displayed when blocking an element
+ elementMessage: '', // none
+ // styles for the overlay iframe
+ overlayCSS: { backgroundColor: '#fff', opacity: '0.5' },
+ // styles for the message when blocking the entire page
+ pageMessageCSS: { width:'250px', margin:'-50px 0 0 -125px', top:'50%', left:'50%', textAlign:'center', color:'#000', backgroundColor:'#fff', border:'3px solid #aaa' },
+ // styles for the message when blocking an element
+ elementMessageCSS: { width:'250px', padding:'10px', textAlign:'center', backgroundColor:'#fff'},
+ // styles for the displayBox
+ displayBoxCSS: { width: '400px', height: '400px', top:'50%', left:'50%' },
+ // allow body element to be stetched in ie6
+ ie6Stretch: 1,
+ // supress tab nav from leaving blocking content?
+ allowTabToLeave: 0,
+ // Title attribute for overlay when using displayBox
+ closeMessage: 'Click to close',
+ // use fadeOut effect when unblocking (can be overridden on unblock call)
+ fadeOut: 1,
+ // fadeOut transition time in millis
+ fadeTime: 400
+};
+
+// the gory details
+$.blockUI.impl = {
+ box: null,
+ boxCallback: null,
+ pageBlock: null,
+ pageBlockEls: [],
+ op8: window.opera && window.opera.version() < 9,
+ ie6: $.browser.msie && /MSIE 6.0/.test(navigator.userAgent),
+ install: function(el, msg, css, opts) {
+ opts = opts || {};
+ this.boxCallback = typeof opts.displayMode == 'function' ? opts.displayMode : null;
+ this.box = opts.displayMode ? msg : null;
+ var full = (el == window);
+
+ // use logical settings for opacity support based on browser but allow overrides via opts arg
+ var noalpha = this.op8 || $.browser.mozilla && /Linux/.test(navigator.platform);
+ if (typeof opts.alphaOverride != 'undefined')
+ noalpha = opts.alphaOverride == 0 ? 1 : 0;
+
+ if (full && this.pageBlock) this.remove(window, {fadeOut:0});
+ // check to see if we were only passed the css object (a literal)
+ if (msg && typeof msg == 'object' && !msg.jquery && !msg.nodeType) {
+ css = msg;
+ msg = null;
+ }
+ msg = msg ? (msg.nodeType ? $(msg) : msg) : full ? $.blockUI.defaults.pageMessage : $.blockUI.defaults.elementMessage;
+ if (opts.displayMode)
+ var basecss = jQuery.extend({}, $.blockUI.defaults.displayBoxCSS);
+ else
+ var basecss = jQuery.extend({}, full ? $.blockUI.defaults.pageMessageCSS : $.blockUI.defaults.elementMessageCSS);
+ css = jQuery.extend(basecss, css || {});
+ var f = ($.browser.msie) ? $('<iframe class="blockUI" style="z-index:1000;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="javascript:false;"></iframe>')
+ : $('<div class="blockUI" style="display:none"></div>');
+ var w = $('<div class="blockUI" style="z-index:1001;cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
+ var m = full ? $('<div class="blockUI blockMsg" style="z-index:1002;cursor:wait;padding:0;position:fixed"></div>')
+ : $('<div class="blockUI" style="display:none;z-index:1002;cursor:wait;position:absolute"></div>');
+ w.css('position', full ? 'fixed' : 'absolute');
+ if (msg) m.css(css);
+ if (!noalpha) w.css($.blockUI.defaults.overlayCSS);
+ if (this.op8) w.css({ width:''+el.clientWidth,height:''+el.clientHeight }); // lame
+ if ($.browser.msie) f.css('opacity','0.0');
+
+ $([f[0],w[0],m[0]]).appendTo(full ? 'body' : el);
+
+ // ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling)
+ var expr = $.browser.msie && (!$.boxModel || $('object,embed', full ? null : el).length > 0);
+ if (this.ie6 || expr) {
+ // stretch content area if it's short
+ if (full && $.blockUI.defaults.ie6Stretch && $.boxModel)
+ $('html,body').css('height','100%');
+
+ // fix ie6 problem when blocked element has a border width
+ if ((this.ie6 || !$.boxModel) && !full) {
+ var t = this.sz(el,'borderTopWidth'), l = this.sz(el,'borderLeftWidth');
+ var fixT = t ? '(0 - '+t+')' : 0;
+ var fixL = l ? '(0 - '+l+')' : 0;
+ }
+
+ // simulate fixed position
+ $.each([f,w,m], function(i,o) {
+ var s = o[0].style;
+ s.position = 'absolute';
+ if (i < 2) {
+ full ? s.setExpression('height','document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + "px"')
+ : s.setExpression('height','this.parentNode.offsetHeight + "px"');
+ full ? s.setExpression('width','jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"')
+ : s.setExpression('width','this.parentNode.offsetWidth + "px"');
+ if (fixL) s.setExpression('left', fixL);
+ if (fixT) s.setExpression('top', fixT);
+ }
+ else {
+ if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
+ s.marginTop = 0;
+ }
+ });
+ }
+ if (opts.displayMode) {
+ w.css('cursor','default').attr('title', $.blockUI.defaults.closeMessage);
+ m.css('cursor','default');
+ $([f[0],w[0],m[0]]).removeClass('blockUI').addClass('displayBox');
+ $().click($.blockUI.impl.boxHandler).bind('keypress', $.blockUI.impl.boxHandler);
+ }
+ else
+ this.bind(1, el);
+ m.append(msg).show();
+ if (msg.jquery) msg.show();
+ if (opts.displayMode) return;
+ if (full) {
+ this.pageBlock = m[0];
+ this.pageBlockEls = $(':input:enabled:visible',this.pageBlock);
+ setTimeout(this.focus, 20);
+ }
+ else this.center(m[0]);
+ },
+ remove: function(el, opts) {
+ var o = $.extend({}, $.blockUI.defaults, opts);
+ this.bind(0, el);
+ var full = el == window;
+ var els = full ? $('body').children().filter('.blockUI') : $('.blockUI', el);
+ if (full) this.pageBlock = this.pageBlockEls = null;
+
+ if (o.fadeOut) {
+ els.fadeOut(o.fadeTime, function() {
+ if (this.parentNode) this.parentNode.removeChild(this);
+ });
+ }
+ else els.remove();
+ },
+ boxRemove: function(el) {
+ $().unbind('click',$.blockUI.impl.boxHandler).unbind('keypress', $.blockUI.impl.boxHandler);
+ if (this.boxCallback)
+ this.boxCallback(this.box);
+ $('body .displayBox').hide().remove();
+ },
+ // event handler to suppress keyboard/mouse events when blocking
+ handler: function(e) {
+ if (e.keyCode && e.keyCode == 9) {
+ if ($.blockUI.impl.pageBlock && !$.blockUI.defaults.allowTabToLeave) {
+ var els = $.blockUI.impl.pageBlockEls;
+ var fwd = !e.shiftKey && e.target == els[els.length-1];
+ var back = e.shiftKey && e.target == els[0];
+ if (fwd || back) {
+ setTimeout(function(){$.blockUI.impl.focus(back)},10);
+ return false;
+ }
+ }
+ }
+ if ($(e.target).parents('div.blockMsg').length > 0)
+ return true;
+ return $(e.target).parents().children().filter('div.blockUI').length == 0;
+ },
+ boxHandler: function(e) {
+ if ((e.keyCode && e.keyCode == 27) || (e.type == 'click' && $(e.target).parents('div.blockMsg').length == 0))
+ $.blockUI.impl.boxRemove();
+ return true;
+ },
+ // bind/unbind the handler
+ bind: function(b, el) {
+ var full = el == window;
+ // don't bother unbinding if there is nothing to unbind
+ if (!b && (full && !this.pageBlock || !full && !el.$blocked)) return;
+ if (!full) el.$blocked = b;
+ var $e = $(el).find('a,:input');
+ $.each(['mousedown','mouseup','keydown','keypress','click'], function(i,o) {
+ $e[b?'bind':'unbind'](o, $.blockUI.impl.handler);
+ });
+ },
+ focus: function(back) {
+ if (!$.blockUI.impl.pageBlockEls) return;
+ var e = $.blockUI.impl.pageBlockEls[back===true ? $.blockUI.impl.pageBlockEls.length-1 : 0];
+ if (e) e.focus();
+ },
+ center: function(el) {
+ var p = el.parentNode, s = el.style;
+ var l = ((p.offsetWidth - el.offsetWidth)/2) - this.sz(p,'borderLeftWidth');
+ var t = ((p.offsetHeight - el.offsetHeight)/2) - this.sz(p,'borderTopWidth');
+ s.left = l > 0 ? (l+'px') : '0';
+ s.top = t > 0 ? (t+'px') : '0';
+ },
+ sz: function(el, p) { return parseInt($.css(el,p))||0; }
+};
+
+})(jQuery);
diff --git a/ui/demos/real-world/photo-manager/theme/css/screen.css b/ui/demos/real-world/photo-manager/theme/css/screen.css
index 71e38dcfb..3866beb8e 100644
--- a/ui/demos/real-world/photo-manager/theme/css/screen.css
+++ b/ui/demos/real-world/photo-manager/theme/css/screen.css
@@ -1,179 +1,179 @@
-body {
- padding: 0;
- margin: 0;
- line-height: 1.5em;
- font-size: 75%; /* gives us 12px in most browsers */
- font-family: "Helvetica Neue", "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
- background: #aefe05 url('../img/side_top.jpg') repeat-x top; /* body background from ui.jquery.com */
- color: 222;
-}
-
-/*
-================================
-=LAYOUT
-================================ */
-h1 {
- padding: 0 0 0 52px;
- margin: 0;
- font-size: 1.5em; /* 18px */
- line-height: 2em; /* 36px */
- background: url('../img/photos_gold_32.gif') no-repeat 8px 50%; /* Thanks to Iconbuffet.com */
- color: #fff;
-}
-#body_wrap {
- width: 960px;
- margin: 0 auto;
- background: #fff url('../img/body_wrap_bg.gif') repeat-y;
-}
-#content {
- float: left;
- width: 632px;
-}
-#sidebar {
- float: right;
- width: 320px;
-}
-#footer {
- clear: both;
- background: #32342f;
- color: #fff;
-}
-
-/*
-================================
-=SECTIONS
-================================ */
-/*
-----------------
-=HEADER
----------------- */
-/*
-----------------
-=CONTENT
----------------- */
-#content h2 {
- padding-left: 25px;
-}
-/*
-=gallery
--------- */
-.gallery {
- min-height: 108px;
- padding: 0;
- margin: 18px 0;
- list-style: none;
-}
-* html .gallery {
- height: 108px; /* min-height for lte IE6 */
-}
-.gallery.active {
- background: #eee;
-}
-.gallery li {
- float: left;
- width: 160px;
- padding: 0 25px;
- margin: 0 0 8px;
-}
-.gallery img {
- display: block;
- padding: 7px;
- border: 1px solid #ccc;
- background: #fff;
-}
-.displayBox img {
- border: 25px solid #222;
-}
-/* img title */
-.gallery p {
- float: left;
- padding: 0;
- margin: 0;
-}
-/* img toolbar */
-.gallery div {
- float: right;
-}
-.gallery div a {
- float: left;
- width: 24px;
- height: 24px;
- background-repeat: no-repeat;
- background-position: center;
- text-indent: -9999px; /* Phark revisited image replacement */
-}
-.gallery div a:focus {
- outline: 0;
-}
-.tb_supersize {
- background-image: url('../img/search_16.gif'); /* Thanks to Iconbuffet.com */
-}
-.tb_trash {
- background-image: url('../img/trash_16.gif'); /* Thanks to Iconbuffet.com */
-}
-
-/*
-----------------
-=SIDEBAR
----------------- */
-.box {
- margin: 18px;
- border: 1px solid #ccc;
- background: #fff;
-}
-.box h2 {
- padding: 0 8px;
- margin: 0;
- font-size: 1.5em;
- line-height: 2em;
- background: #525252 url('../img/header_bg.png') repeat-x bottom;
- color: #fff;
-}
-.box div {
- min-height: 128px;
- border: 2px solid #fff;
-}
-* html #sidebar .box div {
- height: 128px; /* min-height for lte IE6 */
-}
-#trash div.active {
- border-color: green;
-}
-#shred div.active {
- border-color: red;
-}
-#trash div img {
- float: left;
- margin: 4px;
-}
-
-/*
-----------------
-=FOOTER
----------------- */
-#footer p {
- margin: 0;
- text-align: right;
-}
-
-
-/*
-================================
-=FLOAT CLEARING
-================================ */
-#body_wrap, ul.gallery, #trash div {
- display: inline-block;
-}
-#body_wrap:after, ul.gallery:after, #trash div:after {
- content: ".";
- display: block;
- height: 0;
- clear: both;
- visibility: hidden;
-}
-* html #body_wrap, * html ul.gallery, * html #trash div {
- height: 1%;
-}
-#body_wrap, ul.gallery, #trash div {
- display: block;
-}
+body {
+ padding: 0;
+ margin: 0;
+ line-height: 1.5em;
+ font-size: 75%; /* gives us 12px in most browsers */
+ font-family: "Helvetica Neue", "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
+ background: #aefe05 url('../img/side_top.jpg') repeat-x top; /* body background from ui.jquery.com */
+ color: 222;
+}
+
+/*
+================================
+=LAYOUT
+================================ */
+h1 {
+ padding: 0 0 0 52px;
+ margin: 0;
+ font-size: 1.5em; /* 18px */
+ line-height: 2em; /* 36px */
+ background: url('../img/photos_gold_32.gif') no-repeat 8px 50%; /* Thanks to Iconbuffet.com */
+ color: #fff;
+}
+#body_wrap {
+ width: 960px;
+ margin: 0 auto;
+ background: #fff url('../img/body_wrap_bg.gif') repeat-y;
+}
+#content {
+ float: left;
+ width: 632px;
+}
+#sidebar {
+ float: right;
+ width: 320px;
+}
+#footer {
+ clear: both;
+ background: #32342f;
+ color: #fff;
+}
+
+/*
+================================
+=SECTIONS
+================================ */
+/*
+----------------
+=HEADER
+---------------- */
+/*
+----------------
+=CONTENT
+---------------- */
+#content h2 {
+ padding-left: 25px;
+}
+/*
+=gallery
+-------- */
+.gallery {
+ min-height: 108px;
+ padding: 0;
+ margin: 18px 0;
+ list-style: none;
+}
+* html .gallery {
+ height: 108px; /* min-height for lte IE6 */
+}
+.gallery.active {
+ background: #eee;
+}
+.gallery li {
+ float: left;
+ width: 160px;
+ padding: 0 25px;
+ margin: 0 0 8px;
+}
+.gallery img {
+ display: block;
+ padding: 7px;
+ border: 1px solid #ccc;
+ background: #fff;
+}
+.displayBox img {
+ border: 25px solid #222;
+}
+/* img title */
+.gallery p {
+ float: left;
+ padding: 0;
+ margin: 0;
+}
+/* img toolbar */
+.gallery div {
+ float: right;
+}
+.gallery div a {
+ float: left;
+ width: 24px;
+ height: 24px;
+ background-repeat: no-repeat;
+ background-position: center;
+ text-indent: -9999px; /* Phark revisited image replacement */
+}
+.gallery div a:focus {
+ outline: 0;
+}
+.tb_supersize {
+ background-image: url('../img/search_16.gif'); /* Thanks to Iconbuffet.com */
+}
+.tb_trash {
+ background-image: url('../img/trash_16.gif'); /* Thanks to Iconbuffet.com */
+}
+
+/*
+----------------
+=SIDEBAR
+---------------- */
+.box {
+ margin: 18px;
+ border: 1px solid #ccc;
+ background: #fff;
+}
+.box h2 {
+ padding: 0 8px;
+ margin: 0;
+ font-size: 1.5em;
+ line-height: 2em;
+ background: #525252 url('../img/header_bg.png') repeat-x bottom;
+ color: #fff;
+}
+.box div {
+ min-height: 128px;
+ border: 2px solid #fff;
+}
+* html #sidebar .box div {
+ height: 128px; /* min-height for lte IE6 */
+}
+#trash div.active {
+ border-color: green;
+}
+#shred div.active {
+ border-color: red;
+}
+#trash div img {
+ float: left;
+ margin: 4px;
+}
+
+/*
+----------------
+=FOOTER
+---------------- */
+#footer p {
+ margin: 0;
+ text-align: right;
+}
+
+
+/*
+================================
+=FLOAT CLEARING
+================================ */
+#body_wrap, ul.gallery, #trash div {
+ display: inline-block;
+}
+#body_wrap:after, ul.gallery:after, #trash div:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
+}
+* html #body_wrap, * html ul.gallery, * html #trash div {
+ height: 1%;
+}
+#body_wrap, ul.gallery, #trash div {
+ display: block;
+}
diff --git a/ui/demos/real-world/product-slider/index.html b/ui/demos/real-world/product-slider/index.html
index a6f855adc..07cae0de7 100644
--- a/ui/demos/real-world/product-slider/index.html
+++ b/ui/demos/real-world/product-slider/index.html
@@ -1,185 +1,185 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
- <title>Slider Gallery</title>
- <style type="text/css" media="screen">
- <!--
- body {
- padding: 0;
- font: 1em "Trebuchet MS", verdana, arial, sans-serif;
- font-size: 100%;
- background-color: #212121;
- margin: 0;
- }
-
- h1 {
- margin-bottom: 2px;
- }
-
- #container {
- background-color: #fff;
- width: 580px;
- margin: 15px auto;
- padding: 50px;
- }
-
- /* slider specific CSS */
- .sliderGallery {
- background: url(images/productbrowser_background_20070622.jpg) no-repeat;
- overflow: hidden;
- position: relative;
- padding: 10px;
- height: 160px;
- width: 560px;
- }
-
- .sliderGallery UL {
- position: absolute;
- list-style: none;
- overflow: none;
- white-space: nowrap;
- padding: 0;
- margin: 0;
- }
-
- .sliderGallery UL LI {
- display: inline;
- }
-
- .slider {
- width: 542px;
- height: 17px;
- margin-top: 140px;
- margin-left: 5px;
- padding: 1px;
- position: relative;
- background: url(images/productbrowser_scrollbar_20070622.png) no-repeat;
- }
-
- .handle {
- position: absolute;
- cursor: move;
- height: 17px;
- width: 181px;
- top: 0;
- background: url(images/productbrowser_scroller_20080115.png) no-repeat;
- z-index: 100;
- }
-
- .slider span {
- color: #bbb;
- font-size: 80%;
- cursor: pointer;
- position: absolute;
- z-index: 110;
- top: 3px;
- }
-
- .slider .slider-lbl1 {
- left: 50px;
- }
-
- .slider .slider-lbl2 {
- left: 107px;
- }
-
- .slider .slider-lbl3 {
- left: 156px;
- }
-
- .slider .slider-lbl4 {
- left: 280px;
- }
-
- .slider .slider-lbl5 {
- left: 455px;
- }
- -->
- </style>
-
- <script type="text/javascript" src="../../../../jquery/jquery-1.2.6.js"></script>
- <script type="text/javascript" src="../../../source/ui.core.js"></script>
- <script type="text/javascript" src="../../../source/ui.slider.js"></script>
-
- <script type="text/javascript" charset="utf-8">
- /**
- * Note that we have to use window.onload because $(document).ready() fires before images are loaded
- * and ul.innerWidth() - container.outerWidth(); doesn't give the correct width because the width
- * of the UL hasn't expanded out until the images have finished rendering.
- */
- window.onload = function () {
- var container = $('div.sliderGallery');
- var ul = $('ul', container);
-
- var itemsWidth = ul.innerWidth() - container.outerWidth();
-
- $('.slider', container).slider({
- min: 0,
- max: itemsWidth,
- handle: '.handle',
- stop: function (event, ui) {
- ul.animate({'left' : ui.value * -1}, 500);
- },
- slide: function (event, ui) {
- ul.css('left', ui.value * -1);
- }
- });
- };
- </script>
-</head>
-<body>
- <div id="container">
- <h1>Slider Gallery</h1>
- <p>This shows a demonstration of a slider widget from the jQuery UI library used to create the same effect used on <a href="http://www.apple.com/mac/">Apple's web site</a>.</p>
- <p><a href="http://jqueryfordesigners.com/slider-gallery">Read the article, and see the screencast this demonstration relates to</a></p>
-
- <div class="sliderGallery">
- <ul>
- <li><img class="pb-airportexpress" src="images/pb_airport_express.jpg" /></li>
- <li><img src="images/pb_airport_extreme.jpg" /></li>
- <li><img src="images/pb_timecapsule_20080115.jpg" /></li>
- <li><img src="images/pb_keyboards20070807.jpg" /></li>
- <li><img src="images/pb_mighty_mouse.jpg" /></li>
- <li><img src="images/pb_cinema_display20071026.jpg" /></li>
- <li><img src="images/pb_mac_pro_20070622.jpg" /></li>
-
- <li><img class="pb-macmini" src="images/pb_mac_mini.jpg" /></li>
- <li><img src="images/pb_macbook20071026.jpg" /></li>
- <li><img class="pb-macbookair" src="images/pb_macbookair_20080115.jpg" /></li>
- <li><img class="pb-macbookpro" src="images/pb_macbook_pro20071026.jpg" /></li>
- <li><img class="pb-imac" src="images/pb_imac20071026.jpg" /></li>
- <li><img src="images/pb_macosx_20080115.jpg" /></li>
- <li><img src="images/pb_ilife_20080115.jpg" /></li>
- <li><img src="images/pb_dot_mac_20080115.jpg" /></li>
- <li><img src="images/pb_iwork_20080115.jpg" /></li>
-
- <li><img src="images/pb_quicktime.jpg" /></li>
- <li><img src="images/pb_aperture20080212.jpg" /></li>
- <li><img src="images/pb_final_cut_studio2_20080115.jpg" /></li>
- <li><img src="images/pb_final_cut_express_20080115.jpg" /></li>
- <li><img src="images/pb_logic_studio_20080115.jpg" /></li>
- <li><img src="images/pb_logic_express_20080115.jpg" /></li>
- <li><img src="images/pb_shake_20080115.jpg" /></li>
- <li><img src="images/pb_apple_remote_desktop_20080115.jpg" /></li>
- <li><img src="images/pb_xserve.jpg" /></li>
-
- <li><img src="images/pb_xserve_raid.jpg" /></li>
- <li><img class="pb-xsan" src="images/pb_xsan_20080115.jpg" /></li>
- <li><img class="pb-macosxserver" src="images/pb_macosx_server20071016.jpg" /></li>
- </ul>
- <div class="slider">
- <div class="handle"></div>
- <span class="slider-lbl1">Wi-Fi</span>
- <span class="slider-lbl3">Macs</span>
- <span class="slider-lbl4">Applications</span>
- <span class="slider-lbl5">Servers</span>
- </div>
- </div>
- </div>
-</body>
-</html>
-
-
-
-
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+ <title>Slider Gallery</title>
+ <style type="text/css" media="screen">
+ <!--
+ body {
+ padding: 0;
+ font: 1em "Trebuchet MS", verdana, arial, sans-serif;
+ font-size: 100%;
+ background-color: #212121;
+ margin: 0;
+ }
+
+ h1 {
+ margin-bottom: 2px;
+ }
+
+ #container {
+ background-color: #fff;
+ width: 580px;
+ margin: 15px auto;
+ padding: 50px;
+ }
+
+ /* slider specific CSS */
+ .sliderGallery {
+ background: url(images/productbrowser_background_20070622.jpg) no-repeat;
+ overflow: hidden;
+ position: relative;
+ padding: 10px;
+ height: 160px;
+ width: 560px;
+ }
+
+ .sliderGallery UL {
+ position: absolute;
+ list-style: none;
+ overflow: none;
+ white-space: nowrap;
+ padding: 0;
+ margin: 0;
+ }
+
+ .sliderGallery UL LI {
+ display: inline;
+ }
+
+ .slider {
+ width: 542px;
+ height: 17px;
+ margin-top: 140px;
+ margin-left: 5px;
+ padding: 1px;
+ position: relative;
+ background: url(images/productbrowser_scrollbar_20070622.png) no-repeat;
+ }
+
+ .handle {
+ position: absolute;
+ cursor: move;
+ height: 17px;
+ width: 181px;
+ top: 0;
+ background: url(images/productbrowser_scroller_20080115.png) no-repeat;
+ z-index: 100;
+ }
+
+ .slider span {
+ color: #bbb;
+ font-size: 80%;
+ cursor: pointer;
+ position: absolute;
+ z-index: 110;
+ top: 3px;
+ }
+
+ .slider .slider-lbl1 {
+ left: 50px;
+ }
+
+ .slider .slider-lbl2 {
+ left: 107px;
+ }
+
+ .slider .slider-lbl3 {
+ left: 156px;
+ }
+
+ .slider .slider-lbl4 {
+ left: 280px;
+ }
+
+ .slider .slider-lbl5 {
+ left: 455px;
+ }
+ -->
+ </style>
+
+ <script type="text/javascript" src="../../../../jquery/jquery-1.2.6.js"></script>
+ <script type="text/javascript" src="../../../source/ui.core.js"></script>
+ <script type="text/javascript" src="../../../source/ui.slider.js"></script>
+
+ <script type="text/javascript" charset="utf-8">
+ /**
+ * Note that we have to use window.onload because $(document).ready() fires before images are loaded
+ * and ul.innerWidth() - container.outerWidth(); doesn't give the correct width because the width
+ * of the UL hasn't expanded out until the images have finished rendering.
+ */
+ window.onload = function () {
+ var container = $('div.sliderGallery');
+ var ul = $('ul', container);
+
+ var itemsWidth = ul.innerWidth() - container.outerWidth();
+
+ $('.slider', container).slider({
+ min: 0,
+ max: itemsWidth,
+ handle: '.handle',
+ stop: function (event, ui) {
+ ul.animate({'left' : ui.value * -1}, 500);
+ },
+ slide: function (event, ui) {
+ ul.css('left', ui.value * -1);
+ }
+ });
+ };
+ </script>
+</head>
+<body>
+ <div id="container">
+ <h1>Slider Gallery</h1>
+ <p>This shows a demonstration of a slider widget from the jQuery UI library used to create the same effect used on <a href="http://www.apple.com/mac/">Apple's web site</a>.</p>
+ <p><a href="http://jqueryfordesigners.com/slider-gallery">Read the article, and see the screencast this demonstration relates to</a></p>
+
+ <div class="sliderGallery">
+ <ul>
+ <li><img class="pb-airportexpress" src="images/pb_airport_express.jpg" /></li>
+ <li><img src="images/pb_airport_extreme.jpg" /></li>
+ <li><img src="images/pb_timecapsule_20080115.jpg" /></li>
+ <li><img src="images/pb_keyboards20070807.jpg" /></li>
+ <li><img src="images/pb_mighty_mouse.jpg" /></li>
+ <li><img src="images/pb_cinema_display20071026.jpg" /></li>
+ <li><img src="images/pb_mac_pro_20070622.jpg" /></li>
+
+ <li><img class="pb-macmini" src="images/pb_mac_mini.jpg" /></li>
+ <li><img src="images/pb_macbook20071026.jpg" /></li>
+ <li><img class="pb-macbookair" src="images/pb_macbookair_20080115.jpg" /></li>
+ <li><img class="pb-macbookpro" src="images/pb_macbook_pro20071026.jpg" /></li>
+ <li><img class="pb-imac" src="images/pb_imac20071026.jpg" /></li>
+ <li><img src="images/pb_macosx_20080115.jpg" /></li>
+ <li><img src="images/pb_ilife_20080115.jpg" /></li>
+ <li><img src="images/pb_dot_mac_20080115.jpg" /></li>
+ <li><img src="images/pb_iwork_20080115.jpg" /></li>
+
+ <li><img src="images/pb_quicktime.jpg" /></li>
+ <li><img src="images/pb_aperture20080212.jpg" /></li>
+ <li><img src="images/pb_final_cut_studio2_20080115.jpg" /></li>
+ <li><img src="images/pb_final_cut_express_20080115.jpg" /></li>
+ <li><img src="images/pb_logic_studio_20080115.jpg" /></li>
+ <li><img src="images/pb_logic_express_20080115.jpg" /></li>
+ <li><img src="images/pb_shake_20080115.jpg" /></li>
+ <li><img src="images/pb_apple_remote_desktop_20080115.jpg" /></li>
+ <li><img src="images/pb_xserve.jpg" /></li>
+
+ <li><img src="images/pb_xserve_raid.jpg" /></li>
+ <li><img class="pb-xsan" src="images/pb_xsan_20080115.jpg" /></li>
+ <li><img class="pb-macosxserver" src="images/pb_macosx_server20071016.jpg" /></li>
+ </ul>
+ <div class="slider">
+ <div class="handle"></div>
+ <span class="slider-lbl1">Wi-Fi</span>
+ <span class="slider-lbl3">Macs</span>
+ <span class="slider-lbl4">Applications</span>
+ <span class="slider-lbl5">Servers</span>
+ </div>
+ </div>
+ </div>
+</body>
+</html>
+
+
+
+
diff --git a/ui/demos/real-world/splitpane/css/demo.css b/ui/demos/real-world/splitpane/css/demo.css
index 72ed40afc..d30c33149 100644
--- a/ui/demos/real-world/splitpane/css/demo.css
+++ b/ui/demos/real-world/splitpane/css/demo.css
@@ -1,149 +1,149 @@
-/* --------------------------------------------------------------
-
- jQuery UI: Demo Viewer
-
--------------------------------------------------------------- */
-
-
-/*************************************/
-/* Blueprint: reset.css */
-
-html, body, div, span, applet, object, iframe,
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-a, abbr, acronym, address, big, cite, code,
-del, dfn, em, font, img, ins, kbd, q, s, samp,
-small, strike, strong, sub, sup, tt, var,
-dl, dt, dd, ol,
-fieldset, form, label, legend,
-table, caption, tbody, tfoot, thead, tr, th, td {
- margin: 0;
- padding: 0;
- border: 0;
- outline: 0;
- font-weight: inherit;
- font-style: inherit;
- font-size: 100%;
- font-family: inherit;
- vertical-align: baseline;
-}
-
-label {
- margin-right: 5px;
-}
-
-/* Remember to define focus styles! */
-:focus {
- outline: 0;
-}
-body {
- line-height: 1;
- color: black;
- background: white;
- font-family: Arial,Sans-serif; font-size: 0.9em;
- background-color: white;
- overflow: hidden;
-}
-ol, ul {
- list-style: none;
-}
-
-/* Tables still need 'cellspacing="0"' in the markup. */
-table {
- border-collapse: separate;
- border-spacing: 0;
-}
-caption, th, td {
- text-align: left;
- font-weight: normal;
-}
-
-/* Remove possible quote marks (") from <q>, <blockquote>. */
-blockquote:before, blockquote:after,
-q:before, q:after {
- content: "";
-}
-blockquote, q {
- quotes: "" "";
-}
-
-/*************************************/
-/* Viewer: Layout */
-
-#wrapper {
- background: #e1e7f2 url(../images/bg_gradient.gif) repeat-x;
- }
- #header {
- padding: 10px;
- background: #67A7E3; color: #fff;
- position: relative;
- }
- #container {
- height: 500px;
- }
- #container td {
- overflow: hidden;
- }
- #container td div {
- overflow: hidden;
- padding: 0 15px 0 10px;
- background: #fff;
- height:475px;
- font-size: 90%;
- }
- #container .ui-split-side-box {
- width: 200px;
- }
- #container .ui-split-side {
- overflow: hidden;
- }
- #container .ui-split-side ul {
- margin: 0; padding: 0; padding-top: 3px;
- }
- #container .ui-split-side li {
- margin: 0; padding: 0; border: 0; outline: 0;
- list-style: none;
- }
- #container .ui-split-side li a {
- height: 15px;
- display:block;
- padding: 3px 3px 3px 12px;
- border-bottom: 1px solid #E8EEF7;
- color: #000;
- font-size: 90%;
- text-decoration: none;
- }
- #container .ui-split-side li a:hover {
- background: #E8EEF7;
- border-color: #C3D9FF;
- }
- #container .ui-split-main-box {
-
- }
-
- #container .ui-resizable-e {
- width: 10px; height: 475px;
- background:#e1e7f2 url(../images/splitpane_handle-ew.gif) no-repeat scroll 75% 50% !important;
- cursor:col-resize !important;
- border-left: #bbb 1px solid;
- padding: 3px;
- }
- #container .ui-resizable-n {
- height: 10px;
- background:#e1e7f2 url(../images/splitpane_handle-sn.gif) no-repeat scroll 50% 55% !important;
- border-top: #bbb 1px solid;
- padding: 3px;
- }
-
-
-
- .ui-toolbar-item-hide-icon {
- padding-left: 16px; height: 16px;
- background-image: url(../images/icons_2.png);
- background-repeat: no-repeat; margin: 0 2px;
- display: inline-block;
- }
-
- .ui-toolbar-item-hide-icon { background-position: -64px 50%; }
-
- .proxy { border: 1px dashed #000; };
-
+/* --------------------------------------------------------------
+
+ jQuery UI: Demo Viewer
+
+-------------------------------------------------------------- */
+
+
+/*************************************/
+/* Blueprint: reset.css */
+
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, font, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+dl, dt, dd, ol,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ outline: 0;
+ font-weight: inherit;
+ font-style: inherit;
+ font-size: 100%;
+ font-family: inherit;
+ vertical-align: baseline;
+}
+
+label {
+ margin-right: 5px;
+}
+
+/* Remember to define focus styles! */
+:focus {
+ outline: 0;
+}
+body {
+ line-height: 1;
+ color: black;
+ background: white;
+ font-family: Arial,Sans-serif; font-size: 0.9em;
+ background-color: white;
+ overflow: hidden;
+}
+ol, ul {
+ list-style: none;
+}
+
+/* Tables still need 'cellspacing="0"' in the markup. */
+table {
+ border-collapse: separate;
+ border-spacing: 0;
+}
+caption, th, td {
+ text-align: left;
+ font-weight: normal;
+}
+
+/* Remove possible quote marks (") from <q>, <blockquote>. */
+blockquote:before, blockquote:after,
+q:before, q:after {
+ content: "";
+}
+blockquote, q {
+ quotes: "" "";
+}
+
+/*************************************/
+/* Viewer: Layout */
+
+#wrapper {
+ background: #e1e7f2 url(../images/bg_gradient.gif) repeat-x;
+ }
+ #header {
+ padding: 10px;
+ background: #67A7E3; color: #fff;
+ position: relative;
+ }
+ #container {
+ height: 500px;
+ }
+ #container td {
+ overflow: hidden;
+ }
+ #container td div {
+ overflow: hidden;
+ padding: 0 15px 0 10px;
+ background: #fff;
+ height:475px;
+ font-size: 90%;
+ }
+ #container .ui-split-side-box {
+ width: 200px;
+ }
+ #container .ui-split-side {
+ overflow: hidden;
+ }
+ #container .ui-split-side ul {
+ margin: 0; padding: 0; padding-top: 3px;
+ }
+ #container .ui-split-side li {
+ margin: 0; padding: 0; border: 0; outline: 0;
+ list-style: none;
+ }
+ #container .ui-split-side li a {
+ height: 15px;
+ display:block;
+ padding: 3px 3px 3px 12px;
+ border-bottom: 1px solid #E8EEF7;
+ color: #000;
+ font-size: 90%;
+ text-decoration: none;
+ }
+ #container .ui-split-side li a:hover {
+ background: #E8EEF7;
+ border-color: #C3D9FF;
+ }
+ #container .ui-split-main-box {
+
+ }
+
+ #container .ui-resizable-e {
+ width: 10px; height: 475px;
+ background:#e1e7f2 url(../images/splitpane_handle-ew.gif) no-repeat scroll 75% 50% !important;
+ cursor:col-resize !important;
+ border-left: #bbb 1px solid;
+ padding: 3px;
+ }
+ #container .ui-resizable-n {
+ height: 10px;
+ background:#e1e7f2 url(../images/splitpane_handle-sn.gif) no-repeat scroll 50% 55% !important;
+ border-top: #bbb 1px solid;
+ padding: 3px;
+ }
+
+
+
+ .ui-toolbar-item-hide-icon {
+ padding-left: 16px; height: 16px;
+ background-image: url(../images/icons_2.png);
+ background-repeat: no-repeat; margin: 0 2px;
+ display: inline-block;
+ }
+
+ .ui-toolbar-item-hide-icon { background-position: -64px 50%; }
+
+ .proxy { border: 1px dashed #000; };
+
diff --git a/ui/demos/real-world/splitpane/index.html b/ui/demos/real-world/splitpane/index.html
index d2f9e109e..2800b206f 100644
--- a/ui/demos/real-world/splitpane/index.html
+++ b/ui/demos/real-world/splitpane/index.html
@@ -1,96 +1,96 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta http-equiv="Content-Language" content="en" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>jQuery UI: SplitPane</title>
-
- <!-- jQuery -->
- <script type="text/javascript" src="../../../../jquery/jquery-1.2.6.js"></script>
-
- <!-- jQuery UI -->
- <script type="text/javascript" src="../../../source/ui.core.js"></script>
- <script type="text/javascript" src="../../../source/ui.resizable.js"></script>
-
- <script src="js/demo.js" type="text/javascript" charset="utf-8"></script>
-
- <style type="text/css">
- @import "css/demo.css";
- </style>
-
-</head>
-<body>
-
-<div id="wrapper">
- <div id="header">
- <span class="ui-toolbar-item-hide-icon"></span> <span>jQuery UI Resizable SplitPanel</span>
- </div>
- <table id="container" cellpadding="0" cellspacing="0" border="0">
-
- <tr>
-
- <td class="ui-split-side-box">
- <div class="ui-split-side">
- <ul id="component-links">
- <li><a href="#ui.accordion" title="Goto Accordion's Component Page">Accordion</a></li>
- <li><a href="#ui.dialog" title="Goto Dialog's Component Page">Dialog</a></li>
- <li><a href="#ui.draggable" title="Goto Draggable's Component Page">Draggable</a></li>
- <li><a href="#ui.droppable" title="Goto Droppable's Component Page">Droppable</a></li>
- <li><a href="#ui.resizable" title="Goto Resizable's Component Page">Resizable</a></li>
- <li><a href="#ui.selectable" title="Goto Selectable's Component Page">Selectable</a></li>
- <li><a href="#ui.sortable" title="Goto Sortable's Component Page">Sortable</a></li>
- <li><a href="#ui.tabs" title="Goto Tabs Component Page">Tabs</a></li>
- </ul>
- </div>
- </td>
-
-
- <td class="ui-split-main-box">
- <div class="ui-split-main1">
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum commodo mollis tortor. Ut dapibus turpis consequat quam. Nulla lacinia. Donec nunc. Donec sollicitudin. Vivamus orci. Pellentesque tempus velit vitae odio. Maecenas enim arcu, volutpat ac, viverra id, bibendum eu, felis. Vestibulum imperdiet arcu. Ut nisi. Cras vel lectus consectetuer mauris luctus ultrices. Duis fringilla pellentesque sapien.
- <br><br>
- Cras tristique justo vel metus. Pellentesque dolor libero, ullamcorper ac, vehicula eget, porttitor at, dui. Ut a nibh. Nunc sit amet turpis. Aenean diam dui, consequat vel, scelerisque id, accumsan a, lectus. Duis ultrices, enim vitae pharetra tincidunt, elit nunc sollicitudin felis, dapibus pellentesque urna velit ut quam. Donec scelerisque vehicula dolor. Suspendisse lectus dui, posuere sit amet, sagittis nec, vulputate in, libero. Morbi tempus sagittis est. Phasellus in nisi. Sed a ligula. Vivamus condimentum quam non nibh. Fusce pellentesque, neque ac scelerisque luctus, leo elit bibendum elit, in rutrum leo erat tristique felis. Etiam consequat fringilla eros. Nullam neque. Aenean mollis, odio at consectetuer sollicitudin, tortor lorem facilisis nunc, sit amet condimentum lectus libero convallis dolor. Vivamus quis risus.
-
- </div>
- </td>
-
- <td class="ui-split-main-box">
- <div class="ui-split-main2">
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum commodo mollis tortor. Ut dapibus turpis consequat quam. Nulla lacinia. Donec nunc. Donec sollicitudin. Vivamus orci. Pellentesque tempus velit vitae odio. Maecenas enim arcu, volutpat ac, viverra id, bibendum eu, felis. Vestibulum imperdiet arcu. Ut nisi. Cras vel lectus consectetuer mauris luctus ultrices. Duis fringilla pellentesque sapien.
- <br><br>
- Cras tristique justo vel metus. Pellentesque dolor libero, ullamcorper ac, vehicula eget, porttitor at, dui. Ut a nibh. Nunc sit amet turpis. Aenean diam dui, consequat vel, scelerisque id, accumsan a, lectus. Duis ultrices, enim vitae pharetra tincidunt, elit nunc sollicitudin felis, dapibus pellentesque urna velit ut quam. Donec scelerisque vehicula dolor. Suspendisse lectus dui, posuere sit amet, sagittis nec, vulputate in, libero. Morbi tempus sagittis est. Phasellus in nisi. Sed a ligula. Vivamus condimentum quam non nibh. Fusce pellentesque, neque ac scelerisque luctus, leo elit bibendum elit, in rutrum leo erat tristique felis. Etiam consequat fringilla eros. Nullam neque. Aenean mollis, odio at consectetuer sollicitudin, tortor lorem facilisis nunc, sit amet condimentum lectus libero convallis dolor. Vivamus quis risus.
- </div>
- </td>
-
- <td class="ui-split-main-box">
- <div class="ui-split-main3">
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum commodo mollis tortor. Ut dapibus turpis consequat quam. Nulla lacinia. Donec nunc. Donec sollicitudin. Vivamus orci. Pellentesque tempus velit vitae odio. Maecenas enim arcu, volutpat ac, viverra id, bibendum eu, felis. Vestibulum imperdiet arcu. Ut nisi. Cras vel lectus consectetuer mauris luctus ultrices. Duis fringilla pellentesque sapien.
- <br><br>
- Cras tristique justo vel metus. Pellentesque dolor libero, ullamcorper ac, vehicula eget, porttitor at, dui. Ut a nibh. Nunc sit amet turpis. Aenean diam dui, consequat vel, scelerisque id, accumsan a, lectus. Duis ultrices, enim vitae pharetra tincidunt, elit nunc sollicitudin felis, dapibus pellentesque urna velit ut quam. Donec scelerisque vehicula dolor. Suspendisse lectus dui, posuere sit amet, sagittis nec, vulputate in, libero. Morbi tempus sagittis est. Phasellus in nisi. Sed a ligula. Vivamus condimentum quam non nibh. Fusce pellentesque, neque ac scelerisque luctus, leo elit bibendum elit, in rutrum leo erat tristique felis. Etiam consequat fringilla eros. Nullam neque. Aenean mollis, odio at consectetuer sollicitudin, tortor lorem facilisis nunc, sit amet condimentum lectus libero convallis dolor. Vivamus quis risus.
- </div>
- </td>
-
- </tr>
-
- </table>
-</div>
-<script type="text/javascript">
- $(function() {
-
- $('div.ui-split-main1, div.ui-split-main2').resizable({
- handles: 'e',
- minWidth: 200,
- maxWidth: 800
- });
-
- $('div.ui-split-side').resizable({
- handles: 'e',
- proxy: 'proxy',
- minWidth: 200,
- maxWidth: 300
- });
-
- });
-</script>
-</body>
-</html>
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta http-equiv="Content-Language" content="en" />
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>jQuery UI: SplitPane</title>
+
+ <!-- jQuery -->
+ <script type="text/javascript" src="../../../../jquery/jquery-1.2.6.js"></script>
+
+ <!-- jQuery UI -->
+ <script type="text/javascript" src="../../../source/ui.core.js"></script>
+ <script type="text/javascript" src="../../../source/ui.resizable.js"></script>
+
+ <script src="js/demo.js" type="text/javascript" charset="utf-8"></script>
+
+ <style type="text/css">
+ @import "css/demo.css";
+ </style>
+
+</head>
+<body>
+
+<div id="wrapper">
+ <div id="header">
+ <span class="ui-toolbar-item-hide-icon"></span> <span>jQuery UI Resizable SplitPanel</span>
+ </div>
+ <table id="container" cellpadding="0" cellspacing="0" border="0">
+
+ <tr>
+
+ <td class="ui-split-side-box">
+ <div class="ui-split-side">
+ <ul id="component-links">
+ <li><a href="#ui.accordion" title="Goto Accordion's Component Page">Accordion</a></li>
+ <li><a href="#ui.dialog" title="Goto Dialog's Component Page">Dialog</a></li>
+ <li><a href="#ui.draggable" title="Goto Draggable's Component Page">Draggable</a></li>
+ <li><a href="#ui.droppable" title="Goto Droppable's Component Page">Droppable</a></li>
+ <li><a href="#ui.resizable" title="Goto Resizable's Component Page">Resizable</a></li>
+ <li><a href="#ui.selectable" title="Goto Selectable's Component Page">Selectable</a></li>
+ <li><a href="#ui.sortable" title="Goto Sortable's Component Page">Sortable</a></li>
+ <li><a href="#ui.tabs" title="Goto Tabs Component Page">Tabs</a></li>
+ </ul>
+ </div>
+ </td>
+
+
+ <td class="ui-split-main-box">
+ <div class="ui-split-main1">
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum commodo mollis tortor. Ut dapibus turpis consequat quam. Nulla lacinia. Donec nunc. Donec sollicitudin. Vivamus orci. Pellentesque tempus velit vitae odio. Maecenas enim arcu, volutpat ac, viverra id, bibendum eu, felis. Vestibulum imperdiet arcu. Ut nisi. Cras vel lectus consectetuer mauris luctus ultrices. Duis fringilla pellentesque sapien.
+ <br><br>
+ Cras tristique justo vel metus. Pellentesque dolor libero, ullamcorper ac, vehicula eget, porttitor at, dui. Ut a nibh. Nunc sit amet turpis. Aenean diam dui, consequat vel, scelerisque id, accumsan a, lectus. Duis ultrices, enim vitae pharetra tincidunt, elit nunc sollicitudin felis, dapibus pellentesque urna velit ut quam. Donec scelerisque vehicula dolor. Suspendisse lectus dui, posuere sit amet, sagittis nec, vulputate in, libero. Morbi tempus sagittis est. Phasellus in nisi. Sed a ligula. Vivamus condimentum quam non nibh. Fusce pellentesque, neque ac scelerisque luctus, leo elit bibendum elit, in rutrum leo erat tristique felis. Etiam consequat fringilla eros. Nullam neque. Aenean mollis, odio at consectetuer sollicitudin, tortor lorem facilisis nunc, sit amet condimentum lectus libero convallis dolor. Vivamus quis risus.
+
+ </div>
+ </td>
+
+ <td class="ui-split-main-box">
+ <div class="ui-split-main2">
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum commodo mollis tortor. Ut dapibus turpis consequat quam. Nulla lacinia. Donec nunc. Donec sollicitudin. Vivamus orci. Pellentesque tempus velit vitae odio. Maecenas enim arcu, volutpat ac, viverra id, bibendum eu, felis. Vestibulum imperdiet arcu. Ut nisi. Cras vel lectus consectetuer mauris luctus ultrices. Duis fringilla pellentesque sapien.
+ <br><br>
+ Cras tristique justo vel metus. Pellentesque dolor libero, ullamcorper ac, vehicula eget, porttitor at, dui. Ut a nibh. Nunc sit amet turpis. Aenean diam dui, consequat vel, scelerisque id, accumsan a, lectus. Duis ultrices, enim vitae pharetra tincidunt, elit nunc sollicitudin felis, dapibus pellentesque urna velit ut quam. Donec scelerisque vehicula dolor. Suspendisse lectus dui, posuere sit amet, sagittis nec, vulputate in, libero. Morbi tempus sagittis est. Phasellus in nisi. Sed a ligula. Vivamus condimentum quam non nibh. Fusce pellentesque, neque ac scelerisque luctus, leo elit bibendum elit, in rutrum leo erat tristique felis. Etiam consequat fringilla eros. Nullam neque. Aenean mollis, odio at consectetuer sollicitudin, tortor lorem facilisis nunc, sit amet condimentum lectus libero convallis dolor. Vivamus quis risus.
+ </div>
+ </td>
+
+ <td class="ui-split-main-box">
+ <div class="ui-split-main3">
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum commodo mollis tortor. Ut dapibus turpis consequat quam. Nulla lacinia. Donec nunc. Donec sollicitudin. Vivamus orci. Pellentesque tempus velit vitae odio. Maecenas enim arcu, volutpat ac, viverra id, bibendum eu, felis. Vestibulum imperdiet arcu. Ut nisi. Cras vel lectus consectetuer mauris luctus ultrices. Duis fringilla pellentesque sapien.
+ <br><br>
+ Cras tristique justo vel metus. Pellentesque dolor libero, ullamcorper ac, vehicula eget, porttitor at, dui. Ut a nibh. Nunc sit amet turpis. Aenean diam dui, consequat vel, scelerisque id, accumsan a, lectus. Duis ultrices, enim vitae pharetra tincidunt, elit nunc sollicitudin felis, dapibus pellentesque urna velit ut quam. Donec scelerisque vehicula dolor. Suspendisse lectus dui, posuere sit amet, sagittis nec, vulputate in, libero. Morbi tempus sagittis est. Phasellus in nisi. Sed a ligula. Vivamus condimentum quam non nibh. Fusce pellentesque, neque ac scelerisque luctus, leo elit bibendum elit, in rutrum leo erat tristique felis. Etiam consequat fringilla eros. Nullam neque. Aenean mollis, odio at consectetuer sollicitudin, tortor lorem facilisis nunc, sit amet condimentum lectus libero convallis dolor. Vivamus quis risus.
+ </div>
+ </td>
+
+ </tr>
+
+ </table>
+</div>
+<script type="text/javascript">
+ $(function() {
+
+ $('div.ui-split-main1, div.ui-split-main2').resizable({
+ handles: 'e',
+ minWidth: 200,
+ maxWidth: 800
+ });
+
+ $('div.ui-split-side').resizable({
+ handles: 'e',
+ proxy: 'proxy',
+ minWidth: 200,
+ maxWidth: 300
+ });
+
+ });
+</script>
+</body>
+</html>