From 7ed79d0be525a2d4fcb5cd0a905df7b3814ad7d5 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Fri, 23 May 2008 09:14:39 +0000 Subject: --- jquery/jquery-1.2.5.js | 3544 ++++++++++++++++++++ .../real-world/accordion-drawers/images/caps.gif | Bin 0 -> 139 bytes .../accordion-drawers/images/sideboxlight_bg.gif | Bin 0 -> 86 bytes .../accordion-drawers/images/slider_handlebg.png | Bin 0 -> 452 bytes ui/demos/real-world/accordion-drawers/index.html | 263 ++ ui/demos/real-world/image-cropper/img/img01.jpg | Bin 0 -> 84258 bytes ui/demos/real-world/image-cropper/img/img02.jpg | Bin 0 -> 112791 bytes ui/demos/real-world/image-cropper/img/img03.jpg | Bin 0 -> 59031 bytes ui/demos/real-world/image-cropper/img/img04.jpg | Bin 0 -> 54449 bytes ui/demos/real-world/image-cropper/img/img05.jpg | Bin 0 -> 92368 bytes ui/demos/real-world/image-cropper/index.html | 236 ++ ui/demos/real-world/layout/demo.css | 42 + ui/demos/real-world/layout/demo.js | 97 + ui/demos/real-world/layout/index.html | 99 + ui/demos/real-world/layout/loader.gif | Bin 0 -> 4782 bytes ui/demos/real-world/layout/loader_bg.gif | Bin 0 -> 317 bytes ui/demos/real-world/photo-manager/img/P1010020.JPG | Bin 0 -> 59031 bytes ui/demos/real-world/photo-manager/img/P1010036.JPG | Bin 0 -> 54449 bytes ui/demos/real-world/photo-manager/img/P1010039.JPG | Bin 0 -> 92368 bytes ui/demos/real-world/photo-manager/img/P1010044.JPG | Bin 0 -> 84258 bytes ui/demos/real-world/photo-manager/img/P1010050.JPG | Bin 0 -> 112791 bytes ui/demos/real-world/photo-manager/img/P1010055.JPG | Bin 0 -> 25591 bytes ui/demos/real-world/photo-manager/img/P1010058.JPG | Bin 0 -> 46234 bytes ui/demos/real-world/photo-manager/img/P1010059.JPG | Bin 0 -> 37428 bytes ui/demos/real-world/photo-manager/img/P1010061.JPG | Bin 0 -> 59638 bytes ui/demos/real-world/photo-manager/img/P1010063.JPG | Bin 0 -> 54692 bytes .../photo-manager/img/thumbs/P1010020.JPG | Bin 0 -> 4735 bytes .../photo-manager/img/thumbs/P1010036.JPG | Bin 0 -> 3996 bytes .../photo-manager/img/thumbs/P1010039.JPG | Bin 0 -> 6783 bytes .../photo-manager/img/thumbs/P1010044.JPG | Bin 0 -> 7084 bytes .../photo-manager/img/thumbs/P1010050.JPG | Bin 0 -> 6418 bytes .../photo-manager/img/thumbs/P1010055.JPG | Bin 0 -> 2645 bytes .../photo-manager/img/thumbs/P1010058.JPG | Bin 0 -> 3727 bytes .../photo-manager/img/thumbs/P1010059.JPG | Bin 0 -> 3287 bytes .../photo-manager/img/thumbs/P1010061.JPG | Bin 0 -> 5062 bytes .../photo-manager/img/thumbs/P1010063.JPG | Bin 0 -> 5042 bytes ui/demos/real-world/photo-manager/index.html | 133 + ui/demos/real-world/photo-manager/js/demo.js | 130 + .../real-world/photo-manager/theme/css/screen.css | 179 + .../photo-manager/theme/img/body_wrap_bg.gif | Bin 0 -> 148 bytes .../photo-manager/theme/img/header_bg.png | Bin 0 -> 339 bytes .../photo-manager/theme/img/photos_gold_32.gif | Bin 0 -> 1341 bytes .../photo-manager/theme/img/search_16.gif | Bin 0 -> 541 bytes .../photo-manager/theme/img/side_top.jpg | Bin 0 -> 985 bytes .../photo-manager/theme/img/trash_16.gif | Bin 0 -> 571 bytes .../product-slider/images/pb_airport_express.jpg | Bin 0 -> 1211 bytes .../product-slider/images/pb_airport_extreme.jpg | Bin 0 -> 1109 bytes .../product-slider/images/pb_aperture20080212.jpg | Bin 0 -> 2208 bytes .../images/pb_apple_remote_desktop_20080115.jpg | Bin 0 -> 2234 bytes .../images/pb_cinema_display20071026.jpg | Bin 0 -> 4994 bytes .../product-slider/images/pb_dot_mac_20080115.jpg | Bin 0 -> 4154 bytes .../images/pb_final_cut_express_20080115.jpg | Bin 0 -> 3464 bytes .../images/pb_final_cut_studio2_20080115.jpg | Bin 0 -> 4256 bytes .../product-slider/images/pb_ilife_20080115.jpg | Bin 0 -> 4495 bytes .../product-slider/images/pb_imac20071026.jpg | Bin 0 -> 5106 bytes .../product-slider/images/pb_iwork_20080115.jpg | Bin 0 -> 3305 bytes .../product-slider/images/pb_keyboards20070807.jpg | Bin 0 -> 3165 bytes .../images/pb_logic_express_20080115.jpg | Bin 0 -> 2896 bytes .../images/pb_logic_studio_20080115.jpg | Bin 0 -> 3391 bytes .../product-slider/images/pb_mac_mini.jpg | Bin 0 -> 1094 bytes .../product-slider/images/pb_mac_pro_20070622.jpg | Bin 0 -> 3406 bytes .../product-slider/images/pb_macbook20071026.jpg | Bin 0 -> 3705 bytes .../images/pb_macbook_pro20071026.jpg | Bin 0 -> 4228 bytes .../images/pb_macbookair_20080115.jpg | Bin 0 -> 4921 bytes .../product-slider/images/pb_macosx_20080115.jpg | Bin 0 -> 2610 bytes .../images/pb_macosx_server20071016.jpg | Bin 0 -> 3307 bytes .../product-slider/images/pb_mighty_mouse.jpg | Bin 0 -> 1223 bytes .../product-slider/images/pb_quicktime.jpg | Bin 0 -> 4057 bytes .../product-slider/images/pb_shake_20080115.jpg | Bin 0 -> 3535 bytes .../images/pb_timecapsule_20080115.jpg | Bin 0 -> 1361 bytes .../product-slider/images/pb_xsan_20080115.jpg | Bin 0 -> 2092 bytes .../real-world/product-slider/images/pb_xserve.jpg | Bin 0 -> 1463 bytes .../product-slider/images/pb_xserve_raid.jpg | Bin 0 -> 2649 bytes .../images/productbrowser_background_20070622.jpg | Bin 0 -> 5449 bytes .../images/productbrowser_scrollbar_20070622.png | Bin 0 -> 3842 bytes .../images/productbrowser_scroller_20080115.png | Bin 0 -> 1503 bytes ui/demos/real-world/product-slider/index.html | 193 ++ ui/demos/real-world/splitpane/css/demo.css | 149 + .../real-world/splitpane/images/bg_gradient.gif | Bin 0 -> 265 bytes ui/demos/real-world/splitpane/images/icons_2.png | Bin 0 -> 3494 bytes .../splitpane/images/splitpane_handle-ew.gif | Bin 0 -> 114 bytes .../splitpane/images/splitpane_handle-sn.gif | Bin 0 -> 114 bytes ui/demos/real-world/splitpane/index.html | 113 + ui/tests/widgets/accordion.html | 175 + ui/tests/widgets/accordion.js | 78 + ui/tests/widgets/all.html | 188 ++ ui/tests/widgets/slider.html | 38 + ui/tests/widgets/slider.js | 100 + ui/themes/flora/flora.accordion.css | 39 + ui/themes/flora/flora.all.css | 7 + ui/themes/flora/flora.css | 2 + ui/themes/flora/flora.datepicker.css | 179 + ui/themes/flora/flora.dialog.css | 95 + ui/themes/flora/flora.resizable.css | 20 + ui/themes/flora/flora.slider.css | 11 + ui/themes/flora/flora.tabs.css | 105 + ui/themes/flora/i/accordion-left-act.png | Bin 0 -> 249 bytes ui/themes/flora/i/accordion-left-over.png | Bin 0 -> 174 bytes ui/themes/flora/i/accordion-left.png | Bin 0 -> 174 bytes ui/themes/flora/i/accordion-middle-act.png | Bin 0 -> 148 bytes ui/themes/flora/i/accordion-middle-over.png | Bin 0 -> 122 bytes ui/themes/flora/i/accordion-middle.png | Bin 0 -> 122 bytes ui/themes/flora/i/accordion-right-act.png | Bin 0 -> 245 bytes ui/themes/flora/i/accordion-right-over.png | Bin 0 -> 177 bytes ui/themes/flora/i/accordion-right.png | Bin 0 -> 177 bytes ui/themes/flora/i/dialog-e.gif | Bin 0 -> 440 bytes ui/themes/flora/i/dialog-n.gif | Bin 0 -> 700 bytes ui/themes/flora/i/dialog-ne.gif | Bin 0 -> 353 bytes ui/themes/flora/i/dialog-nw.gif | Bin 0 -> 353 bytes ui/themes/flora/i/dialog-s.gif | Bin 0 -> 434 bytes ui/themes/flora/i/dialog-se.gif | Bin 0 -> 175 bytes ui/themes/flora/i/dialog-sw.gif | Bin 0 -> 175 bytes ui/themes/flora/i/dialog-title.gif | Bin 0 -> 238 bytes ui/themes/flora/i/dialog-titlebar-close-hover.png | Bin 0 -> 2927 bytes ui/themes/flora/i/dialog-titlebar-close.png | Bin 0 -> 2880 bytes ui/themes/flora/i/dialog-w.gif | Bin 0 -> 437 bytes ui/themes/flora/i/resizable-e.gif | Bin 0 -> 338 bytes ui/themes/flora/i/resizable-n.gif | Bin 0 -> 341 bytes ui/themes/flora/i/resizable-ne.gif | Bin 0 -> 124 bytes ui/themes/flora/i/resizable-nw.gif | Bin 0 -> 91 bytes ui/themes/flora/i/resizable-s.gif | Bin 0 -> 341 bytes ui/themes/flora/i/resizable-se.gif | Bin 0 -> 120 bytes ui/themes/flora/i/resizable-sw.gif | Bin 0 -> 175 bytes ui/themes/flora/i/resizable-w.gif | Bin 0 -> 339 bytes ui/themes/flora/i/slider-bg-1.png | Bin 0 -> 204 bytes ui/themes/flora/i/slider-bg-2.png | Bin 0 -> 326 bytes ui/themes/flora/i/slider-handle.gif | Bin 0 -> 176 bytes ui/themes/flora/i/tabs.png | Bin 0 -> 263 bytes 128 files changed, 6215 insertions(+) create mode 100644 jquery/jquery-1.2.5.js create mode 100644 ui/demos/real-world/accordion-drawers/images/caps.gif create mode 100644 ui/demos/real-world/accordion-drawers/images/sideboxlight_bg.gif create mode 100644 ui/demos/real-world/accordion-drawers/images/slider_handlebg.png create mode 100644 ui/demos/real-world/accordion-drawers/index.html create mode 100644 ui/demos/real-world/image-cropper/img/img01.jpg create mode 100644 ui/demos/real-world/image-cropper/img/img02.jpg create mode 100644 ui/demos/real-world/image-cropper/img/img03.jpg create mode 100644 ui/demos/real-world/image-cropper/img/img04.jpg create mode 100644 ui/demos/real-world/image-cropper/img/img05.jpg create mode 100644 ui/demos/real-world/image-cropper/index.html create mode 100644 ui/demos/real-world/layout/demo.css create mode 100644 ui/demos/real-world/layout/demo.js create mode 100644 ui/demos/real-world/layout/index.html create mode 100644 ui/demos/real-world/layout/loader.gif create mode 100644 ui/demos/real-world/layout/loader_bg.gif create mode 100644 ui/demos/real-world/photo-manager/img/P1010020.JPG create mode 100644 ui/demos/real-world/photo-manager/img/P1010036.JPG create mode 100644 ui/demos/real-world/photo-manager/img/P1010039.JPG create mode 100644 ui/demos/real-world/photo-manager/img/P1010044.JPG create mode 100644 ui/demos/real-world/photo-manager/img/P1010050.JPG create mode 100644 ui/demos/real-world/photo-manager/img/P1010055.JPG create mode 100644 ui/demos/real-world/photo-manager/img/P1010058.JPG create mode 100644 ui/demos/real-world/photo-manager/img/P1010059.JPG create mode 100644 ui/demos/real-world/photo-manager/img/P1010061.JPG create mode 100644 ui/demos/real-world/photo-manager/img/P1010063.JPG create mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010020.JPG create mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010036.JPG create mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010039.JPG create mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010044.JPG create mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010050.JPG create mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010055.JPG create mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010058.JPG create mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010059.JPG create mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010061.JPG create mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010063.JPG create mode 100644 ui/demos/real-world/photo-manager/index.html create mode 100644 ui/demos/real-world/photo-manager/js/demo.js create mode 100644 ui/demos/real-world/photo-manager/theme/css/screen.css create mode 100644 ui/demos/real-world/photo-manager/theme/img/body_wrap_bg.gif create mode 100644 ui/demos/real-world/photo-manager/theme/img/header_bg.png create mode 100644 ui/demos/real-world/photo-manager/theme/img/photos_gold_32.gif create mode 100644 ui/demos/real-world/photo-manager/theme/img/search_16.gif create mode 100644 ui/demos/real-world/photo-manager/theme/img/side_top.jpg create mode 100644 ui/demos/real-world/photo-manager/theme/img/trash_16.gif create mode 100644 ui/demos/real-world/product-slider/images/pb_airport_express.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_airport_extreme.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_aperture20080212.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_apple_remote_desktop_20080115.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_cinema_display20071026.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_dot_mac_20080115.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_final_cut_express_20080115.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_final_cut_studio2_20080115.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_ilife_20080115.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_imac20071026.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_iwork_20080115.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_keyboards20070807.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_logic_express_20080115.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_logic_studio_20080115.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_mac_mini.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_mac_pro_20070622.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_macbook20071026.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_macbook_pro20071026.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_macbookair_20080115.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_macosx_20080115.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_macosx_server20071016.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_mighty_mouse.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_quicktime.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_shake_20080115.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_timecapsule_20080115.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_xsan_20080115.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_xserve.jpg create mode 100644 ui/demos/real-world/product-slider/images/pb_xserve_raid.jpg create mode 100644 ui/demos/real-world/product-slider/images/productbrowser_background_20070622.jpg create mode 100644 ui/demos/real-world/product-slider/images/productbrowser_scrollbar_20070622.png create mode 100644 ui/demos/real-world/product-slider/images/productbrowser_scroller_20080115.png create mode 100644 ui/demos/real-world/product-slider/index.html create mode 100644 ui/demos/real-world/splitpane/css/demo.css create mode 100644 ui/demos/real-world/splitpane/images/bg_gradient.gif create mode 100644 ui/demos/real-world/splitpane/images/icons_2.png create mode 100644 ui/demos/real-world/splitpane/images/splitpane_handle-ew.gif create mode 100644 ui/demos/real-world/splitpane/images/splitpane_handle-sn.gif create mode 100644 ui/demos/real-world/splitpane/index.html create mode 100644 ui/tests/widgets/accordion.html create mode 100644 ui/tests/widgets/accordion.js create mode 100644 ui/tests/widgets/all.html create mode 100644 ui/tests/widgets/slider.html create mode 100644 ui/tests/widgets/slider.js create mode 100644 ui/themes/flora/flora.accordion.css create mode 100644 ui/themes/flora/flora.all.css create mode 100644 ui/themes/flora/flora.css create mode 100644 ui/themes/flora/flora.datepicker.css create mode 100644 ui/themes/flora/flora.dialog.css create mode 100644 ui/themes/flora/flora.resizable.css create mode 100644 ui/themes/flora/flora.slider.css create mode 100644 ui/themes/flora/flora.tabs.css create mode 100644 ui/themes/flora/i/accordion-left-act.png create mode 100644 ui/themes/flora/i/accordion-left-over.png create mode 100644 ui/themes/flora/i/accordion-left.png create mode 100644 ui/themes/flora/i/accordion-middle-act.png create mode 100644 ui/themes/flora/i/accordion-middle-over.png create mode 100644 ui/themes/flora/i/accordion-middle.png create mode 100644 ui/themes/flora/i/accordion-right-act.png create mode 100644 ui/themes/flora/i/accordion-right-over.png create mode 100644 ui/themes/flora/i/accordion-right.png create mode 100644 ui/themes/flora/i/dialog-e.gif create mode 100644 ui/themes/flora/i/dialog-n.gif create mode 100644 ui/themes/flora/i/dialog-ne.gif create mode 100644 ui/themes/flora/i/dialog-nw.gif create mode 100644 ui/themes/flora/i/dialog-s.gif create mode 100644 ui/themes/flora/i/dialog-se.gif create mode 100644 ui/themes/flora/i/dialog-sw.gif create mode 100644 ui/themes/flora/i/dialog-title.gif create mode 100644 ui/themes/flora/i/dialog-titlebar-close-hover.png create mode 100644 ui/themes/flora/i/dialog-titlebar-close.png create mode 100644 ui/themes/flora/i/dialog-w.gif create mode 100644 ui/themes/flora/i/resizable-e.gif create mode 100644 ui/themes/flora/i/resizable-n.gif create mode 100644 ui/themes/flora/i/resizable-ne.gif create mode 100644 ui/themes/flora/i/resizable-nw.gif create mode 100644 ui/themes/flora/i/resizable-s.gif create mode 100644 ui/themes/flora/i/resizable-se.gif create mode 100644 ui/themes/flora/i/resizable-sw.gif create mode 100644 ui/themes/flora/i/resizable-w.gif create mode 100644 ui/themes/flora/i/slider-bg-1.png create mode 100644 ui/themes/flora/i/slider-bg-2.png create mode 100644 ui/themes/flora/i/slider-handle.gif create mode 100644 ui/themes/flora/i/tabs.png diff --git a/jquery/jquery-1.2.5.js b/jquery/jquery-1.2.5.js new file mode 100644 index 000000000..f975de2ba --- /dev/null +++ b/jquery/jquery-1.2.5.js @@ -0,0 +1,3544 @@ +(function(){ +/* + * jQuery 1.2.5 - New Wave Javascript + * + * Copyright (c) 2008 John Resig (jquery.com) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * $Date: 2008-05-20 23:14:54 -0400 (Tue, 20 May 2008) $ + * $Rev: 5651 $ + */ + +// Map over jQuery in case of overwrite +var _jQuery = window.jQuery, +// Map over the $ in case of overwrite + _$ = window.$; + +var jQuery = window.jQuery = window.$ = function( selector, context ) { + // The jQuery object is actually just the init constructor 'enhanced' + return new jQuery.fn.init( selector, context ); +}; + +// A simple way to check for HTML strings or ID strings +// (both of which we optimize for) +var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/, + +// Is it a simple selector + isSimple = /^.[^:#\[\.]*$/, + +// Will speed up references to undefined, and allows munging its name. + undefined; + +jQuery.fn = jQuery.prototype = { + init: function( selector, context ) { + // Make sure that a selection was provided + selector = selector || document; + + // Handle $(DOMElement) + if ( selector.nodeType ) { + this[0] = selector; + this.length = 1; + return this; + } + // Handle HTML strings + if ( typeof selector == "string" ) { + // Are we dealing with HTML string or an ID? + var match = quickExpr.exec( selector ); + + // Verify a match, and that no context was specified for #id + if ( match && (match[1] || !context) ) { + + // HANDLE: $(html) -> $(array) + if ( match[1] ) + selector = jQuery.clean( [ match[1] ], context ); + + // HANDLE: $("#id") + else { + var elem = document.getElementById( match[3] ); + + // Make sure an element was located + if ( elem ){ + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id != match[3] ) + return jQuery().find( selector ); + + // Otherwise, we inject the element directly into the jQuery object + return jQuery( elem ); + } + selector = []; + } + + // HANDLE: $(expr, [context]) + // (which is just equivalent to: $(content).find(expr) + } else + return jQuery( context ).find( selector ); + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) + return jQuery( document )[ jQuery.fn.ready ? "ready" : "load" ]( selector ); + + return this.setArray(jQuery.makeArray(selector)); + }, + + // The current version of jQuery being used + jquery: "1.2.5", + + // The number of elements contained in the matched element set + size: function() { + return this.length; + }, + + // The number of elements contained in the matched element set + length: 0, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + return num == undefined ? + + // Return a 'clean' array + jQuery.makeArray( this ) : + + // Return just the object + this[ num ]; + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems ) { + // Build a new jQuery matched element set + var ret = jQuery( elems ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + + // Return the newly-formed element set + return ret; + }, + + // Force the current matched set of elements to become + // the specified array of elements (destroying the stack in the process) + // You should use pushStack() in order to do this, but maintain the stack + setArray: function( elems ) { + // Resetting the length to 0, then using the native Array push + // is a super-fast way to populate an object with array-like properties + this.length = 0; + Array.prototype.push.apply( this, elems ); + + return this; + }, + + // Execute a callback for every element in the matched set. + // (You can seed the arguments with an array of args, but this is + // only used internally.) + each: function( callback, args ) { + return jQuery.each( this, callback, args ); + }, + + // Determine the position of an element within + // the matched set of elements + index: function( elem ) { + var ret = -1; + + // Locate the position of the desired element + return jQuery.inArray( + // If it receives a jQuery object, the first element is used + elem && elem.jquery ? elem[0] : elem + , this ); + }, + + attr: function( name, value, type ) { + var options = name; + + // Look for the case where we're accessing a style value + if ( name.constructor == String ) + if ( value === undefined ) + return this[0] && jQuery[ type || "attr" ]( this[0], name ); + + else { + options = {}; + options[ name ] = value; + } + + // Check to see if we're setting style values + return this.each(function(i){ + // Set all the styles + for ( name in options ) + jQuery.attr( + type ? + this.style : + this, + name, jQuery.prop( this, options[ name ], type, i, name ) + ); + }); + }, + + css: function( key, value ) { + // ignore negative width and height values + if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 ) + value = undefined; + return this.attr( key, value, "curCSS" ); + }, + + text: function( text ) { + if ( typeof text != "object" && text != null ) + return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) ); + + var ret = ""; + + jQuery.each( text || this, function(){ + jQuery.each( this.childNodes, function(){ + if ( this.nodeType != 8 ) + ret += this.nodeType != 1 ? + this.nodeValue : + jQuery.fn.text( [ this ] ); + }); + }); + + return ret; + }, + + wrapAll: function( html ) { + if ( this[0] ) + // The elements to wrap the target around + jQuery( html, this[0].ownerDocument ) + .clone() + .insertBefore( this[0] ) + .map(function(){ + var elem = this; + + while ( elem.firstChild ) + elem = elem.firstChild; + + return elem; + }) + .append(this); + + return this; + }, + + wrapInner: function( html ) { + return this.each(function(){ + jQuery( this ).contents().wrapAll( html ); + }); + }, + + wrap: function( html ) { + return this.each(function(){ + jQuery( this ).wrapAll( html ); + }); + }, + + append: function() { + return this.domManip(arguments, true, false, function(elem){ + if (this.nodeType == 1) + this.appendChild( elem ); + }); + }, + + prepend: function() { + return this.domManip(arguments, true, true, function(elem){ + if (this.nodeType == 1) + this.insertBefore( elem, this.firstChild ); + }); + }, + + before: function() { + return this.domManip(arguments, false, false, function(elem){ + this.parentNode.insertBefore( elem, this ); + }); + }, + + after: function() { + return this.domManip(arguments, false, true, function(elem){ + this.parentNode.insertBefore( elem, this.nextSibling ); + }); + }, + + end: function() { + return this.prevObject || jQuery( [] ); + }, + + find: function( selector ) { + var elems = jQuery.map(this, function(elem){ + return jQuery.find( selector, elem ); + }); + + return this.pushStack( /[^+>] [^+>]/.test( selector ) || selector.indexOf("..") > -1 ? + jQuery.unique( elems ) : + elems ); + }, + + clone: function( events ) { + // Do the clone + var ret = this.map(function(){ + if ( jQuery.browser.msie && !jQuery.isXMLDoc(this) ) { + // IE copies events bound via attachEvent when + // using cloneNode. Calling detachEvent on the + // clone will also remove the events from the orignal + // In order to get around this, we use innerHTML. + // Unfortunately, this means some modifications to + // attributes in IE that are actually only stored + // as properties will not be copied (such as the + // the name attribute on an input). + var clone = this.cloneNode(true), + container = document.createElement("div"); + container.appendChild(clone); + return jQuery.clean([container.innerHTML])[0]; + } else + return this.cloneNode(true); + }); + + // Need to set the expando to null on the cloned set if it exists + // removeData doesn't work here, IE removes it from the original as well + // this is primarily for IE but the data expando shouldn't be copied over in any browser + var clone = ret.find("*").andSelf().each(function(){ + if ( this[ expando ] != undefined ) + this[ expando ] = null; + }); + + // Copy the events from the original to the clone + if ( events === true ) + this.find("*").andSelf().each(function(i){ + if (this.nodeType == 3) + return; + var events = jQuery.data( this, "events" ); + + for ( var type in events ) + for ( var handler in events[ type ] ) + jQuery.event.add( clone[ i ], type, events[ type ][ handler ], events[ type ][ handler ].data ); + }); + + // Return the cloned set + return ret; + }, + + filter: function( selector ) { + return this.pushStack( + jQuery.isFunction( selector ) && + jQuery.grep(this, function(elem, i){ + return selector.call( elem, i ); + }) || + + jQuery.multiFilter( selector, this ) ); + }, + + not: function( selector ) { + if ( selector.constructor == String ) + // test special case where just one selector is passed in + if ( isSimple.test( selector ) ) + return this.pushStack( jQuery.multiFilter( selector, this, true ) ); + else + selector = jQuery.multiFilter( selector, this ); + + var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; + return this.filter(function() { + return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; + }); + }, + + add: function( selector ) { + return this.pushStack( jQuery.unique( jQuery.merge( + this.get(), + typeof selector == 'string' ? + jQuery( selector ) : + jQuery.makeArray( selector ) + ))); + }, + + is: function( selector ) { + return !!selector && jQuery.multiFilter( selector, this ).length > 0; + }, + + hasClass: function( selector ) { + return this.is( "." + selector ); + }, + + val: function( value ) { + if ( value == undefined ) { + + if ( this.length ) { + var elem = this[0]; + + // We need to handle select boxes special + if ( jQuery.nodeName( elem, "select" ) ) { + var index = elem.selectedIndex, + values = [], + options = elem.options, + one = elem.type == "select-one"; + + // Nothing was selected + if ( index < 0 ) + return null; + + // Loop through all the selected options + for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { + var option = options[ i ]; + + if ( option.selected ) { + // Get the specifc value for the option + value = jQuery.browser.msie && !option.attributes.value.specified ? option.text : option.value; + + // We don't need an array for one selects + if ( one ) + return value; + + // Multi-Selects return an array + values.push( value ); + } + } + + return values; + + // Everything else, we just grab the value + } else + return (this[0].value || "").replace(/\r/g, ""); + + } + + return undefined; + } + + return this.each(function(){ + if ( this.nodeType != 1 ) + return; + + if ( value.constructor == Array && /radio|checkbox/.test( this.type ) ) + this.checked = (jQuery.inArray(this.value, value) >= 0 || + jQuery.inArray(this.name, value) >= 0); + + else if ( jQuery.nodeName( this, "select" ) ) { + var values = jQuery.makeArray(value); + + jQuery( "option", this ).each(function(){ + this.selected = (jQuery.inArray( this.value, values ) >= 0 || + jQuery.inArray( this.text, values ) >= 0); + }); + + if ( !values.length ) + this.selectedIndex = -1; + + } else + this.value = value; + }); + }, + + html: function( value ) { + return value == undefined ? + (this.length ? + this[0].innerHTML : + null) : + this.empty().append( value ); + }, + + replaceWith: function( value ) { + return this.after( value ).remove(); + }, + + eq: function( i ) { + return this.slice( i, i + 1 ); + }, + + slice: function() { + return this.pushStack( Array.prototype.slice.apply( this, arguments ) ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map(this, function(elem, i){ + return callback.call( elem, i, elem ); + })); + }, + + andSelf: function() { + return this.add( this.prevObject ); + }, + + data: function( key, value ){ + var parts = key.split("."); + parts[1] = parts[1] ? "." + parts[1] : ""; + + if ( value === undefined ) { + var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); + + if ( data === undefined && this.length ) + data = jQuery.data( this[0], key ); + + return data === undefined && parts[1] ? + this.data( parts[0] ) : + data; + } else + return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){ + jQuery.data( this, key, value ); + }); + }, + + removeData: function( key ){ + return this.each(function(){ + jQuery.removeData( this, key ); + }); + }, + + domManip: function( args, table, reverse, callback ) { + var clone = this.length > 1, elems; + + return this.each(function(){ + if ( !elems ) { + elems = jQuery.clean( args, this.ownerDocument ); + + if ( reverse ) + elems.reverse(); + } + + var obj = this; + + if ( table && jQuery.nodeName( this, "table" ) && jQuery.nodeName( elems[0], "tr" ) ) + obj = this.getElementsByTagName("tbody")[0] || this.appendChild( this.ownerDocument.createElement("tbody") ); + + var scripts = jQuery( [] ); + + jQuery.each(elems, function(){ + var elem = clone ? + jQuery( this ).clone( true )[0] : + this; + + // execute all scripts after the elements have been injected + if ( jQuery.nodeName( elem, "script" ) ) { + scripts = scripts.add( elem ); + } else { + // Remove any inner scripts for later evaluation + if ( elem.nodeType == 1 ) + scripts = scripts.add( jQuery( "script", elem ).remove() ); + + // Inject the elements into the document + callback.call( obj, elem ); + } + }); + + scripts.each( evalScript ); + }); + } +}; + +// Give the init function the jQuery prototype for later instantiation +jQuery.fn.init.prototype = jQuery.fn; + +function evalScript( i, elem ) { + if ( elem.src ) + jQuery.ajax({ + url: elem.src, + async: false, + dataType: "script" + }); + + else + jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); + + if ( elem.parentNode ) + elem.parentNode.removeChild( elem ); +} + +function now(){ + return +new Date; +} + +jQuery.extend = jQuery.fn.extend = function() { + // copy reference to target object + var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; + + // Handle a deep copy situation + if ( target.constructor == Boolean ) { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target != "object" && typeof target != "function" ) + target = {}; + + // extend jQuery itself if only one argument is passed + if ( length == i ) { + target = this; + --i; + } + + for ( ; i < length; i++ ) + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) + // Extend the base object + for ( var name in options ) { + var src = target[ name ], copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) + continue; + + // Recurse if we're merging object values + if ( deep && copy && typeof copy == "object" && !copy.nodeType ) + target[ name ] = jQuery.extend( deep, + // Never move original objects, clone them + src || ( copy.length != null ? [ ] : { } ) + , copy ); + + // Don't bring in undefined values + else if ( copy !== undefined ) + target[ name ] = copy; + + } + + // Return the modified object + return target; +}; + +var expando = "jQuery" + now(), uuid = 0, windowData = {}, + // exclude the following css properties to add px + exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, + // cache defaultView + defaultView = document.defaultView || {}; + +jQuery.extend({ + noConflict: function( deep ) { + window.$ = _$; + + if ( deep ) + window.jQuery = _jQuery; + + return jQuery; + }, + + // See test/unit/core.js for details concerning this function. + isFunction: function( fn ) { + return !!fn && typeof fn != "string" && !fn.nodeName && + fn.constructor != Array && /^[\s[]?function/.test( fn + "" ); + }, + + // check if an element is in a (or is an) XML document + isXMLDoc: function( elem ) { + return elem.documentElement && !elem.body || + elem.tagName && elem.ownerDocument && !elem.ownerDocument.body; + }, + + // Evalulates a script in a global context + globalEval: function( data ) { + data = jQuery.trim( data ); + + if ( data ) { + // Inspired by code by Andrea Giammarchi + // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html + var head = document.getElementsByTagName("head")[0] || document.documentElement, + script = document.createElement("script"); + + script.type = "text/javascript"; + if ( jQuery.browser.msie ) + script.text = data; + else + script.appendChild( document.createTextNode( data ) ); + + // Use insertBefore instead of appendChild to circumvent an IE6 bug. + // This arises when a base node is used (#2709). + head.insertBefore( script, head.firstChild ); + head.removeChild( script ); + } + }, + + nodeName: function( elem, name ) { + return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); + }, + + cache: {}, + + data: function( elem, name, data ) { + elem = elem == window ? + windowData : + elem; + + var id = elem[ expando ]; + + // Compute a unique ID for the element + if ( !id ) + id = elem[ expando ] = ++uuid; + + // Only generate the data cache if we're + // trying to access or manipulate it + if ( name && !jQuery.cache[ id ] ) + jQuery.cache[ id ] = {}; + + // Prevent overriding the named cache with undefined values + if ( data !== undefined ) + jQuery.cache[ id ][ name ] = data; + + // Return the named cache data, or the ID for the element + return name ? + jQuery.cache[ id ][ name ] : + id; + }, + + removeData: function( elem, name ) { + elem = elem == window ? + windowData : + elem; + + var id = elem[ expando ]; + + // If we want to remove a specific section of the element's data + if ( name ) { + if ( jQuery.cache[ id ] ) { + // Remove the section of cache data + delete jQuery.cache[ id ][ name ]; + + // If we've removed all the data, remove the element's cache + name = ""; + + for ( name in jQuery.cache[ id ] ) + break; + + if ( !name ) + jQuery.removeData( elem ); + } + + // Otherwise, we want to remove all of the element's data + } else { + // Clean up the element expando + try { + delete elem[ expando ]; + } catch(e){ + // IE has trouble directly removing the expando + // but it's ok with using removeAttribute + if ( elem.removeAttribute ) + elem.removeAttribute( expando ); + } + + // Completely remove the data cache + delete jQuery.cache[ id ]; + } + }, + + // args is for internal usage only + each: function( object, callback, args ) { + var name, i = 0, length = object.length; + + if ( args ) { + if ( length == undefined ) { + for ( name in object ) + if ( callback.apply( object[ name ], args ) === false ) + break; + } else + for ( ; i < length; ) + if ( callback.apply( object[ i++ ], args ) === false ) + break; + + // A special, fast, case for the most common use of each + } else { + if ( length == undefined ) { + for ( name in object ) + if ( callback.call( object[ name ], name, object[ name ] ) === false ) + break; + } else + for ( var value = object[0]; + i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} + } + + return object; + }, + + prop: function( elem, value, type, i, name ) { + // Handle executable functions + if ( jQuery.isFunction( value ) ) + value = value.call( elem, i ); + + // Handle passing in a number to a CSS property + return value && value.constructor == Number && type == "curCSS" && !exclude.test( name ) ? + value + "px" : + value; + }, + + className: { + // internal only, use addClass("class") + add: function( elem, classNames ) { + jQuery.each((classNames || "").split(/\s+/), function(i, className){ + if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) + elem.className += (elem.className ? " " : "") + className; + }); + }, + + // internal only, use removeClass("class") + remove: function( elem, classNames ) { + if (elem.nodeType == 1) + elem.className = classNames != undefined ? + jQuery.grep(elem.className.split(/\s+/), function(className){ + return !jQuery.className.has( classNames, className ); + }).join(" ") : + ""; + }, + + // internal only, use hasClass("class") + has: function( elem, className ) { + return jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; + } + }, + + // A method for quickly swapping in/out CSS properties to get correct calculations + swap: function( elem, options, callback ) { + var old = {}; + // Remember the old values, and insert the new ones + for ( var name in options ) { + old[ name ] = elem.style[ name ]; + elem.style[ name ] = options[ name ]; + } + + callback.call( elem ); + + // Revert the old values + for ( var name in options ) + elem.style[ name ] = old[ name ]; + }, + + css: function( elem, name, force ) { + if ( name == "width" || name == "height" ) { + var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; + + function getWH() { + val = name == "width" ? elem.offsetWidth : elem.offsetHeight; + var padding = 0, border = 0; + jQuery.each( which, function() { + padding += parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; + border += parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; + }); + val -= Math.round(padding + border); + } + + if ( jQuery(elem).is(":visible") ) + getWH(); + else + jQuery.swap( elem, props, getWH ); + + return Math.max(0, val); + } + + return jQuery.curCSS( elem, name, force ); + }, + + curCSS: function( elem, name, force ) { + var ret, style = elem.style; + + // A helper method for determining if an element's values are broken + function color( elem ) { + if ( !jQuery.browser.safari ) + return false; + + // defaultView is cached + var ret = defaultView.getComputedStyle( elem, null ); + return !ret || ret.getPropertyValue("color") == ""; + } + + // We need to handle opacity special in IE + if ( name == "opacity" && jQuery.browser.msie ) { + ret = jQuery.attr( style, "opacity" ); + + return ret == "" ? + "1" : + ret; + } + // Opera sometimes will give the wrong display answer, this fixes it, see #2037 + if ( jQuery.browser.opera && name == "display" ) { + var save = style.outline; + style.outline = "0 solid black"; + style.outline = save; + } + + // Make sure we're using the right name for getting the float value + if ( name.match( /float/i ) ) + name = styleFloat; + + if ( !force && style && style[ name ] ) + ret = style[ name ]; + + else if ( defaultView.getComputedStyle ) { + + // Only "float" is needed here + if ( name.match( /float/i ) ) + name = "float"; + + name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); + + var computedStyle = defaultView.getComputedStyle( elem, null ); + + if ( computedStyle && !color( elem ) ) + ret = computedStyle.getPropertyValue( name ); + + // If the element isn't reporting its values properly in Safari + // then some display: none elements are involved + else { + var swap = [], stack = [], a = elem, i = 0; + + // Locate all of the parent display: none elements + for ( ; a && color(a); a = a.parentNode ) + stack.unshift(a); + + // Go through and make them visible, but in reverse + // (It would be better if we knew the exact display type that they had) + for ( ; i < stack.length; i++ ) + if ( color( stack[ i ] ) ) { + swap[ i ] = stack[ i ].style.display; + stack[ i ].style.display = "block"; + } + + // Since we flip the display style, we have to handle that + // one special, otherwise get the value + ret = name == "display" && swap[ stack.length - 1 ] != null ? + "none" : + ( computedStyle && computedStyle.getPropertyValue( name ) ) || ""; + + // Finally, revert the display styles back + for ( i = 0; i < swap.length; i++ ) + if ( swap[ i ] != null ) + stack[ i ].style.display = swap[ i ]; + } + + // We should always get a number back from opacity + if ( name == "opacity" && ret == "" ) + ret = "1"; + + } else if ( elem.currentStyle ) { + var camelCase = name.replace(/\-(\w)/g, function(all, letter){ + return letter.toUpperCase(); + }); + + ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; + + // From the awesome hack by Dean Edwards + // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 + + // If we're not dealing with a regular pixel number + // but a number that has a weird ending, we need to convert it to pixels + if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { + // Remember the original values + var left = style.left, rsLeft = elem.runtimeStyle.left; + + // Put in the new values to get a computed value out + elem.runtimeStyle.left = elem.currentStyle.left; + style.left = ret || 0; + ret = style.pixelLeft + "px"; + + // Revert the changed values + style.left = left; + elem.runtimeStyle.left = rsLeft; + } + } + + return ret; + }, + + clean: function( elems, context ) { + var ret = []; + context = context || document; + // !context.createElement fails in IE with an error but returns typeof 'object' + if (typeof context.createElement == 'undefined') + context = context.ownerDocument || context[0] && context[0].ownerDocument || document; + + jQuery.each(elems, function(i, elem){ + if ( !elem ) + return; + + if ( elem.constructor == Number ) + elem += ''; + + // Convert html string into DOM nodes + if ( typeof elem == "string" ) { + // Fix "XHTML"-style tags in all browsers + elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ + return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? + all : + front + ">"; + }); + + // Trim whitespace, otherwise indexOf won't work as expected + var tags = jQuery.trim( elem ).toLowerCase(), div = context.createElement("div"); + + var wrap = + // option or optgroup + !tags.indexOf("", "" ] || + + !tags.indexOf("", "" ] || + + tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && + [ 1, "", "
" ] || + + !tags.indexOf("", "" ] || + + // matched above + (!tags.indexOf("", "" ] || + + !tags.indexOf("", "" ] || + + // IE can't serialize and + + + + + + + + + + + + + + +
+

Fixed drawer slide out demo (using accordion plugin)

+

This example demonstrates the Apple downloads slider/accordion effect using the jQuery Accordion plugin.

+

Mouse over the headings to reveal the list of available links.

+ +

+ Read the article this demonstration relates to +

+
+ + + diff --git a/ui/demos/real-world/image-cropper/img/img01.jpg b/ui/demos/real-world/image-cropper/img/img01.jpg new file mode 100644 index 000000000..4d5f88445 Binary files /dev/null and b/ui/demos/real-world/image-cropper/img/img01.jpg differ diff --git a/ui/demos/real-world/image-cropper/img/img02.jpg b/ui/demos/real-world/image-cropper/img/img02.jpg new file mode 100644 index 000000000..5745265f0 Binary files /dev/null and b/ui/demos/real-world/image-cropper/img/img02.jpg differ diff --git a/ui/demos/real-world/image-cropper/img/img03.jpg b/ui/demos/real-world/image-cropper/img/img03.jpg new file mode 100644 index 000000000..7e6928f63 Binary files /dev/null and b/ui/demos/real-world/image-cropper/img/img03.jpg differ diff --git a/ui/demos/real-world/image-cropper/img/img04.jpg b/ui/demos/real-world/image-cropper/img/img04.jpg new file mode 100644 index 000000000..8216a2382 Binary files /dev/null and b/ui/demos/real-world/image-cropper/img/img04.jpg differ diff --git a/ui/demos/real-world/image-cropper/img/img05.jpg b/ui/demos/real-world/image-cropper/img/img05.jpg new file mode 100644 index 000000000..35de5bd8c Binary files /dev/null and b/ui/demos/real-world/image-cropper/img/img05.jpg differ diff --git a/ui/demos/real-world/image-cropper/index.html b/ui/demos/real-world/image-cropper/index.html new file mode 100644 index 000000000..e41fb978e --- /dev/null +++ b/ui/demos/real-world/image-cropper/index.html @@ -0,0 +1,236 @@ + + + + + +Image Cropper: jQuery Real-world Demo + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+
+
+
+
+ Properties: +
    +
  • width: 0px
  • +
  • height: 0px
  • +
  • top: 0px
  • +
  • left: 0px
  • +
+
+
+ + diff --git a/ui/demos/real-world/layout/demo.css b/ui/demos/real-world/layout/demo.css new file mode 100644 index 000000000..010f09db5 --- /dev/null +++ b/ui/demos/real-world/layout/demo.css @@ -0,0 +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; } + +#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 new file mode 100644 index 000000000..a17478d2f --- /dev/null +++ b/ui/demos/real-world/layout/demo.js @@ -0,0 +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 = 'updown'; + var tpl = '
{name}' + options + '
{desc}
'; + 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('add'); + $('dt', $els).append('updown'); + + $('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 new file mode 100644 index 000000000..b0e423a7f --- /dev/null +++ b/ui/demos/real-world/layout/index.html @@ -0,0 +1,99 @@ + + + + UI Sortable: Layout Demo + + + + + + + + + + + + + + + + + + +

UI Sortable: Layout demo

+ +
+ + +
+

Content

+
+
Blog
+
Main blog post
+
+
+ + + +
+ + +
+ +
+

Trash can

+

Drag modules here to delete them.

+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ui/demos/real-world/layout/loader.gif b/ui/demos/real-world/layout/loader.gif new file mode 100644 index 000000000..7e717cdf9 Binary files /dev/null and b/ui/demos/real-world/layout/loader.gif differ diff --git a/ui/demos/real-world/layout/loader_bg.gif b/ui/demos/real-world/layout/loader_bg.gif new file mode 100644 index 000000000..9c0488402 Binary files /dev/null and b/ui/demos/real-world/layout/loader_bg.gif differ diff --git a/ui/demos/real-world/photo-manager/img/P1010020.JPG b/ui/demos/real-world/photo-manager/img/P1010020.JPG new file mode 100644 index 000000000..7e6928f63 Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/P1010020.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/P1010036.JPG b/ui/demos/real-world/photo-manager/img/P1010036.JPG new file mode 100644 index 000000000..8216a2382 Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/P1010036.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/P1010039.JPG b/ui/demos/real-world/photo-manager/img/P1010039.JPG new file mode 100644 index 000000000..35de5bd8c Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/P1010039.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/P1010044.JPG b/ui/demos/real-world/photo-manager/img/P1010044.JPG new file mode 100644 index 000000000..4d5f88445 Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/P1010044.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/P1010050.JPG b/ui/demos/real-world/photo-manager/img/P1010050.JPG new file mode 100644 index 000000000..5745265f0 Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/P1010050.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/P1010055.JPG b/ui/demos/real-world/photo-manager/img/P1010055.JPG new file mode 100644 index 000000000..246121ba4 Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/P1010055.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/P1010058.JPG b/ui/demos/real-world/photo-manager/img/P1010058.JPG new file mode 100644 index 000000000..d107b38ce Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/P1010058.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/P1010059.JPG b/ui/demos/real-world/photo-manager/img/P1010059.JPG new file mode 100644 index 000000000..c7fcdbdd1 Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/P1010059.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/P1010061.JPG b/ui/demos/real-world/photo-manager/img/P1010061.JPG new file mode 100644 index 000000000..1812fbfdf Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/P1010061.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/P1010063.JPG b/ui/demos/real-world/photo-manager/img/P1010063.JPG new file mode 100644 index 000000000..05b0d133c Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/P1010063.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010020.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010020.JPG new file mode 100644 index 000000000..cba634588 Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/thumbs/P1010020.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010036.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010036.JPG new file mode 100644 index 000000000..1d062b364 Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/thumbs/P1010036.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010039.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010039.JPG new file mode 100644 index 000000000..2d0b6c726 Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/thumbs/P1010039.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010044.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010044.JPG new file mode 100644 index 000000000..9d0cccf86 Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/thumbs/P1010044.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010050.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010050.JPG new file mode 100644 index 000000000..89a36b78b Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/thumbs/P1010050.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010055.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010055.JPG new file mode 100644 index 000000000..889b4e67d Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/thumbs/P1010055.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010058.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010058.JPG new file mode 100644 index 000000000..6a83a628b Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/thumbs/P1010058.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010059.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010059.JPG new file mode 100644 index 000000000..6aac87261 Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/thumbs/P1010059.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010061.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010061.JPG new file mode 100644 index 000000000..bfe698e86 Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/thumbs/P1010061.JPG differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010063.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010063.JPG new file mode 100644 index 000000000..88c22e021 Binary files /dev/null and b/ui/demos/real-world/photo-manager/img/thumbs/P1010063.JPG differ diff --git a/ui/demos/real-world/photo-manager/index.html b/ui/demos/real-world/photo-manager/index.html new file mode 100644 index 000000000..9c880aef6 --- /dev/null +++ b/ui/demos/real-world/photo-manager/index.html @@ -0,0 +1,133 @@ + + + + jQuery UI Draggables and Droppables playground + + + + + + + + + + + + + + + + + + + + + + + + + + +

Manage Your Photos

+
+
+

Drag photos to the Trash or waste them in the Shredder:

+ +
+ +
+ + + diff --git a/ui/demos/real-world/photo-manager/js/demo.js b/ui/demos/real-world/photo-manager/js/demo.js new file mode 100644 index 000000000..437191e2c --- /dev/null +++ b/ui/demos/real-world/photo-manager/js/demo.js @@ -0,0 +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() { + $('') + .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 = $('
  • '+title+'

  • ').hide(); + $item.prepend($(img)); + + return $item; +} diff --git a/ui/demos/real-world/photo-manager/theme/css/screen.css b/ui/demos/real-world/photo-manager/theme/css/screen.css new file mode 100644 index 000000000..71e38dcfb --- /dev/null +++ b/ui/demos/real-world/photo-manager/theme/css/screen.css @@ -0,0 +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; +} diff --git a/ui/demos/real-world/photo-manager/theme/img/body_wrap_bg.gif b/ui/demos/real-world/photo-manager/theme/img/body_wrap_bg.gif new file mode 100644 index 000000000..7ad1d5476 Binary files /dev/null and b/ui/demos/real-world/photo-manager/theme/img/body_wrap_bg.gif differ diff --git a/ui/demos/real-world/photo-manager/theme/img/header_bg.png b/ui/demos/real-world/photo-manager/theme/img/header_bg.png new file mode 100644 index 000000000..a517ae7dd Binary files /dev/null and b/ui/demos/real-world/photo-manager/theme/img/header_bg.png differ diff --git a/ui/demos/real-world/photo-manager/theme/img/photos_gold_32.gif b/ui/demos/real-world/photo-manager/theme/img/photos_gold_32.gif new file mode 100644 index 000000000..e6bdfdcbc Binary files /dev/null and b/ui/demos/real-world/photo-manager/theme/img/photos_gold_32.gif differ diff --git a/ui/demos/real-world/photo-manager/theme/img/search_16.gif b/ui/demos/real-world/photo-manager/theme/img/search_16.gif new file mode 100644 index 000000000..d9ed18dfc Binary files /dev/null and b/ui/demos/real-world/photo-manager/theme/img/search_16.gif differ diff --git a/ui/demos/real-world/photo-manager/theme/img/side_top.jpg b/ui/demos/real-world/photo-manager/theme/img/side_top.jpg new file mode 100644 index 000000000..ecf5a18b6 Binary files /dev/null and b/ui/demos/real-world/photo-manager/theme/img/side_top.jpg differ diff --git a/ui/demos/real-world/photo-manager/theme/img/trash_16.gif b/ui/demos/real-world/photo-manager/theme/img/trash_16.gif new file mode 100644 index 000000000..cbe509180 Binary files /dev/null and b/ui/demos/real-world/photo-manager/theme/img/trash_16.gif differ diff --git a/ui/demos/real-world/product-slider/images/pb_airport_express.jpg b/ui/demos/real-world/product-slider/images/pb_airport_express.jpg new file mode 100644 index 000000000..d3ae98fa6 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_airport_express.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_airport_extreme.jpg b/ui/demos/real-world/product-slider/images/pb_airport_extreme.jpg new file mode 100644 index 000000000..b7d1e0395 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_airport_extreme.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_aperture20080212.jpg b/ui/demos/real-world/product-slider/images/pb_aperture20080212.jpg new file mode 100644 index 000000000..b8bc10830 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_aperture20080212.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_apple_remote_desktop_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_apple_remote_desktop_20080115.jpg new file mode 100644 index 000000000..760035bac Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_apple_remote_desktop_20080115.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_cinema_display20071026.jpg b/ui/demos/real-world/product-slider/images/pb_cinema_display20071026.jpg new file mode 100644 index 000000000..f75703766 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_cinema_display20071026.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_dot_mac_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_dot_mac_20080115.jpg new file mode 100644 index 000000000..d1bd8ffb6 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_dot_mac_20080115.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_final_cut_express_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_final_cut_express_20080115.jpg new file mode 100644 index 000000000..085b18033 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_final_cut_express_20080115.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_final_cut_studio2_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_final_cut_studio2_20080115.jpg new file mode 100644 index 000000000..1f9c60a64 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_final_cut_studio2_20080115.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_ilife_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_ilife_20080115.jpg new file mode 100644 index 000000000..69d6961bf Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_ilife_20080115.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_imac20071026.jpg b/ui/demos/real-world/product-slider/images/pb_imac20071026.jpg new file mode 100644 index 000000000..961eaf7ec Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_imac20071026.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_iwork_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_iwork_20080115.jpg new file mode 100644 index 000000000..929b7130e Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_iwork_20080115.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_keyboards20070807.jpg b/ui/demos/real-world/product-slider/images/pb_keyboards20070807.jpg new file mode 100644 index 000000000..8bed6d3d8 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_keyboards20070807.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_logic_express_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_logic_express_20080115.jpg new file mode 100644 index 000000000..ff708e48b Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_logic_express_20080115.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_logic_studio_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_logic_studio_20080115.jpg new file mode 100644 index 000000000..916ecce93 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_logic_studio_20080115.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_mac_mini.jpg b/ui/demos/real-world/product-slider/images/pb_mac_mini.jpg new file mode 100644 index 000000000..4822b02e2 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_mac_mini.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_mac_pro_20070622.jpg b/ui/demos/real-world/product-slider/images/pb_mac_pro_20070622.jpg new file mode 100644 index 000000000..d1e6ab8d6 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_mac_pro_20070622.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_macbook20071026.jpg b/ui/demos/real-world/product-slider/images/pb_macbook20071026.jpg new file mode 100644 index 000000000..525175a4b Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_macbook20071026.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_macbook_pro20071026.jpg b/ui/demos/real-world/product-slider/images/pb_macbook_pro20071026.jpg new file mode 100644 index 000000000..4e4f42cca Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_macbook_pro20071026.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_macbookair_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_macbookair_20080115.jpg new file mode 100644 index 000000000..595ecaf07 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_macbookair_20080115.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_macosx_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_macosx_20080115.jpg new file mode 100644 index 000000000..34ace8d55 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_macosx_20080115.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_macosx_server20071016.jpg b/ui/demos/real-world/product-slider/images/pb_macosx_server20071016.jpg new file mode 100644 index 000000000..53066e432 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_macosx_server20071016.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_mighty_mouse.jpg b/ui/demos/real-world/product-slider/images/pb_mighty_mouse.jpg new file mode 100644 index 000000000..a0267a7f7 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_mighty_mouse.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_quicktime.jpg b/ui/demos/real-world/product-slider/images/pb_quicktime.jpg new file mode 100644 index 000000000..163059d46 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_quicktime.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_shake_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_shake_20080115.jpg new file mode 100644 index 000000000..43151b508 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_shake_20080115.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_timecapsule_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_timecapsule_20080115.jpg new file mode 100644 index 000000000..cdc24f583 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_timecapsule_20080115.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_xsan_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_xsan_20080115.jpg new file mode 100644 index 000000000..1623791e6 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_xsan_20080115.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_xserve.jpg b/ui/demos/real-world/product-slider/images/pb_xserve.jpg new file mode 100644 index 000000000..f2c3f4b79 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_xserve.jpg differ diff --git a/ui/demos/real-world/product-slider/images/pb_xserve_raid.jpg b/ui/demos/real-world/product-slider/images/pb_xserve_raid.jpg new file mode 100644 index 000000000..f93f3dfc9 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/pb_xserve_raid.jpg differ diff --git a/ui/demos/real-world/product-slider/images/productbrowser_background_20070622.jpg b/ui/demos/real-world/product-slider/images/productbrowser_background_20070622.jpg new file mode 100644 index 000000000..0eb8f8e16 Binary files /dev/null and b/ui/demos/real-world/product-slider/images/productbrowser_background_20070622.jpg differ diff --git a/ui/demos/real-world/product-slider/images/productbrowser_scrollbar_20070622.png b/ui/demos/real-world/product-slider/images/productbrowser_scrollbar_20070622.png new file mode 100644 index 000000000..997ac189c Binary files /dev/null and b/ui/demos/real-world/product-slider/images/productbrowser_scrollbar_20070622.png differ diff --git a/ui/demos/real-world/product-slider/images/productbrowser_scroller_20080115.png b/ui/demos/real-world/product-slider/images/productbrowser_scroller_20080115.png new file mode 100644 index 000000000..6c9d0f9bb Binary files /dev/null and b/ui/demos/real-world/product-slider/images/productbrowser_scroller_20080115.png differ diff --git a/ui/demos/real-world/product-slider/index.html b/ui/demos/real-world/product-slider/index.html new file mode 100644 index 000000000..abbd333fc --- /dev/null +++ b/ui/demos/real-world/product-slider/index.html @@ -0,0 +1,193 @@ + + + + + Slider Gallery + + + + + + + + + + + + + + + + + +
    +

    Slider Gallery

    +

    This shows a demonstration of a slider widget from the jQuery UI library used to create the same effect used on Apple's web site.

    +

    Read the article, and see the screencast this demonstration relates to

    + +
    +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • + +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • + +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • + +
    • +
    • +
    • +
    +
    +
    + Wi-Fi + Macs + Applications + Servers +
    +
    +
    + + + + + + diff --git a/ui/demos/real-world/splitpane/css/demo.css b/ui/demos/real-world/splitpane/css/demo.css new file mode 100644 index 000000000..72ed40afc --- /dev/null +++ b/ui/demos/real-world/splitpane/css/demo.css @@ -0,0 +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 ,
    . */ +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/images/bg_gradient.gif b/ui/demos/real-world/splitpane/images/bg_gradient.gif new file mode 100644 index 000000000..d3f535e73 Binary files /dev/null and b/ui/demos/real-world/splitpane/images/bg_gradient.gif differ diff --git a/ui/demos/real-world/splitpane/images/icons_2.png b/ui/demos/real-world/splitpane/images/icons_2.png new file mode 100644 index 000000000..a05f52c7a Binary files /dev/null and b/ui/demos/real-world/splitpane/images/icons_2.png differ diff --git a/ui/demos/real-world/splitpane/images/splitpane_handle-ew.gif b/ui/demos/real-world/splitpane/images/splitpane_handle-ew.gif new file mode 100644 index 000000000..262763665 Binary files /dev/null and b/ui/demos/real-world/splitpane/images/splitpane_handle-ew.gif differ diff --git a/ui/demos/real-world/splitpane/images/splitpane_handle-sn.gif b/ui/demos/real-world/splitpane/images/splitpane_handle-sn.gif new file mode 100644 index 000000000..bd60c408b Binary files /dev/null and b/ui/demos/real-world/splitpane/images/splitpane_handle-sn.gif differ diff --git a/ui/demos/real-world/splitpane/index.html b/ui/demos/real-world/splitpane/index.html new file mode 100644 index 000000000..b13257557 --- /dev/null +++ b/ui/demos/real-world/splitpane/index.html @@ -0,0 +1,113 @@ + + + + + + jQuery UI: SplitPane + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + + + + +
    + + +
    + 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. +

    + 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. + +
    +
    +
    + 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. +

    + 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. +
    +
    +
    + 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. +

    + 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. +
    +
    +
    + + + diff --git a/ui/tests/widgets/accordion.html b/ui/tests/widgets/accordion.html new file mode 100644 index 000000000..5732bf966 --- /dev/null +++ b/ui/tests/widgets/accordion.html @@ -0,0 +1,175 @@ + + + + jQuery UI Accordion Test Suite + + + + + + + + + + + + + + + + + + + +

    jQuery UI Accordion Test Suite

    + +

    + +
      + +
      + +
      + Standard, container is a div, header is h3 and content p + +
      + There is one obvious advantage: +
      +

      + You've seen it coming!
      + Buy now and get nothing for free!
      + Well, at least no free beer. Perhaps a bear, if you can afford it. +

      +
      + Now that you've got... +
      +

      + your bear, you have to admit it!
      + No, we aren't selling bears. +

      +

      + We could talk about renting one. +

      +
      + Rent one bear, ... +
      +

      + get two for three beer. +

      +

      + And now, for something completely different. +

      +
      +
      + +
      + +
      + Navigation - Unordered List with anchors and nested lists. +

      The first item is cloned to allow the user to select it. The + active element is choosen based on location.hash: Open Drums and click + the first item ('Drums'), then reload the page.

      + + + +
      + +
      + With options, container is a definition list, header dt, content dd + +
      +
      Red
      +
      + Fancy stuff about red thingies. +
      +
      Green
      +
      + Green! Green! Green! +
      +
      Blue
      +
      + Cool kids are blue. +
      +
      + +
      + +
      + Divitus structure, div container, div header (class title), div + content, no active on startup and can be completely closed + +
      +
      +
      Tennis
      +
      + One ball, two players. Lots of fun. +
      +
      +
      +
      Soccer
      +
      + One ball, 22 players. Lots of fun. +
      +
      +
      +
      Baseball
      +
      + Well, one ball, some guys running around, some guys hitting others with a stick.
      + Sounds like fun, doesn't it? +
      +
      + Well, apart from the running part. +
      +
      +
      + +
      + +
      + + + Activate via selector, eg. ':first' or 'a:first': +
      + +
      Log of the 2nd accordion
      +
      + + \ No newline at end of file diff --git a/ui/tests/widgets/accordion.js b/ui/tests/widgets/accordion.js new file mode 100644 index 000000000..792c104d4 --- /dev/null +++ b/ui/tests/widgets/accordion.js @@ -0,0 +1,78 @@ +module("accordion"); + +jQuery.ui.accordion.defaults.animated = false; + +function state(accordion) { + var args = $.makeArray(arguments).slice(1); + $.each(args, function(i, n) { + equals(n, accordion.find("div").eq(i).is(":visible")); + }); +} + +test("basics", function() { + state($('#list1').accordion(), 1, 0, 0); +}); + +test("autoheight", function() { + $('#navigation').accordion({ header: '.head', autoheight: false }); + equals( 90, $('#navigation ul:first').height() ); + equals( 126, $('#navigation ul:eq(1)').height() ); + equals( 54, $('#navigation ul:last').height() ); + $('#navigation').accordion("destroy").accordion({ header: '.head',autoheight: true }); + equals( 126, $('#navigation ul:first').height() ); + equals( 126, $('#navigation ul:eq(1)').height() ); + equals( 126, $('#navigation ul:last').height() ); +}); + +test("activate, numeric", function() { + var ac = $('#list1').accordion({ active: 1 }); + state(ac, 0, 1, 0); + ac.accordion("activate", 2); + state(ac, 0, 0, 1); + ac.accordion("activate", 0); + state(ac, 1, 0, 0); + ac.accordion("activate", 1); + state(ac, 0, 1, 0); + ac.accordion("activate", 2); + state(ac, 0, 0, 1); + ac.accordion("activate", -1); + state(ac, 0, 0, 1); +}); + +test("activate, boolean and numeric, alwaysOpen:false", function() { + var ac = $('#list1').accordion({alwaysOpen: false}).accordion("activate", 2); + state(ac, 0, 0, 1); + ok("x", "----") + ac.accordion("activate", 0); + state(ac, 1, 0, 0); + ok("x", "----") + ac.accordion("activate", -1); + state(ac, 0, 0, 0); +}); + +test("activate, boolean, alwaysOpen:true", function() { + var ac = $('#list1').accordion().accordion("activate", 2); + state(ac, 0, 0, 1); + ac.accordion("activate", -1); + state(ac, 0, 0, 1); +}); + +test("activate, string expression", function() { + var ac = $('#list1').accordion({ active: ":last" }); + state(ac, 0, 0, 1); + ac.accordion("activate", ":first"); + state(ac, 1, 0, 0); + ac.accordion("activate", ":eq(1)"); + state(ac, 0, 1, 0); + ac.accordion("activate", ":last"); + state(ac, 0, 0, 1); +}); + +test("activate, jQuery or DOM element", function() { + var ac = $('#list1').accordion({ active: $("#list1 a:last") }); + state(ac, 0, 0, 1); + ac.accordion("activate", $("#list1 a:first")); + state(ac, 1, 0, 0); + ac.accordion("activate", $("#list1 a")[1]); + state(ac, 0, 1, 0); +}); \ No newline at end of file diff --git a/ui/tests/widgets/all.html b/ui/tests/widgets/all.html new file mode 100644 index 000000000..dc70d650c --- /dev/null +++ b/ui/tests/widgets/all.html @@ -0,0 +1,188 @@ + + + + jQuery UI All Tests + + + + + + + + + + + + + + + + + + + + + +

      jQuery UI All Tests

      + +

      + +

      Run individual testsuites or doubleclick a test below

      + + +
        + +
        + +
        +
        +
        +
        + +
        + Standard, container is a div, header is h3 and content p + +
        + There is one obvious advantage: +
        +

        + You've seen it coming!
        + Buy now and get nothing for free!
        + Well, at least no free beer. Perhaps a bear, if you can afford it. +

        +
        + Now that you've got... +
        +

        + your bear, you have to admit it!
        + No, we aren't selling bears. +

        +

        + We could talk about renting one. +

        +
        + Rent one bear, ... +
        +

        + get two for three beer. +

        +

        + And now, for something completely different. +

        +
        +
        + +
        + +
        + Navigation - Unordered List with anchors and nested lists. +

        The first item is cloned to allow the user to select it. The + active element is choosen based on location.hash: Open Drums and click + the first item ('Drums'), then reload the page.

        + + + +
        + +
        + With options, container is a definition list, header dt, content dd + +
        +
        Red
        +
        + Fancy stuff about red thingies. +
        +
        Green
        +
        + Green! Green! Green! +
        +
        Blue
        +
        + Cool kids are blue. +
        +
        + +
        + +
        + Divitus structure, div container, div header (class title), div + content, no active on startup and can be completely closed + +
        +
        +
        Tennis
        +
        + One ball, two players. Lots of fun. +
        +
        +
        +
        Soccer
        +
        + One ball, 22 players. Lots of fun. +
        +
        +
        +
        Baseball
        +
        + Well, one ball, some guys running around, some guys hitting others with a stick.
        + Sounds like fun, doesn't it? +
        +
        + Well, apart from the running part. +
        +
        +
        + +
        + +
        + + + Activate via selector, eg. ':first' or 'a:first': +
        + +
        Log of the 2nd accordion
        +
        + + \ No newline at end of file diff --git a/ui/tests/widgets/slider.html b/ui/tests/widgets/slider.html new file mode 100644 index 000000000..858bd4929 --- /dev/null +++ b/ui/tests/widgets/slider.html @@ -0,0 +1,38 @@ + + + + + +Slider Test Page + + + + + + + + + + + + + + + + + +

        jQuery Test Suite

        + +

        + +
        +
        +
        +
        +
        +
        + +
          + + + diff --git a/ui/tests/widgets/slider.js b/ui/tests/widgets/slider.js new file mode 100644 index 000000000..035fa496f --- /dev/null +++ b/ui/tests/widgets/slider.js @@ -0,0 +1,100 @@ +$.fn.triggerKeydown = function(keyCode) { + return this.trigger("keydown", [$.event.fix({event:"keydown", keyCode: keyCode, target: this[0]})]); +} + +function assertChange(stepping, start, result, action) { + return function() { + expect(1); + var slider = $("#slider3").slider({ + stepping: stepping, + startValue: start, + min: 0, + max: 1000, + change: function(e, ui) { + equals(ui.value, result, "changed to " + ui.value); + } + }); + action.apply(slider); + } +} + +module("slider: single handle") + +test("change one step via keydown", assertChange(1, undefined, 1, function() { + this.find("a").triggerKeydown("39"); +})) +test("change - 10 steps via keydown", assertChange(10, 20, 10, function() { + this.find("a").triggerKeydown("37"); +})) +test("change +10 steps via keydown", assertChange(10, 20, 30, function() { + this.find("a").triggerKeydown("39"); +})) + +test("moveTo, absolute value", assertChange(1, 1, 10, function() { + this.slider("moveTo", 10); +})) + +test("moveTo, absolute value as string", assertChange(1, 1, 10, function() { + this.slider("moveTo", "10"); +})) + +test("moveTo, absolute value, below min", assertChange(1, 1, 0, function() { + this.slider("moveTo", -10); +})) + +test("moveTo, relative positive value", assertChange(1, 1, 11, function() { + this.slider("moveTo", "+=10"); +})) + +test("moveTo, relative positive value, above max", assertChange(1, 10, 1000, function() { + this.slider("moveTo", "+=2000"); +})) + +test("moveTo, relative negative value", assertChange(1, 20, 10, function() { + this.slider("moveTo", "-=10"); +})) + +test("options update min/max", function() { + expect(2); + var slider = $("#slider3").slider({ + stepping: 1, + startValue: 1 + }); + slider.slider("moveTo", "-=10"); + equals(slider.slider("value"), 0); + slider.data("min.slider", -10); + slider.slider("moveTo", "-=20"); + equals(slider.slider("value"), -10); +}) + +module("slider: setup and teardown"); + +test("destroy and recreate", function() { + expect(3) + var slider = $("#slider3").slider(); + slider.slider("moveTo", "+=20"); + equals(slider.slider("value"), 20); + slider.slider("destroy"); + + slider.slider("moveTo", "+=30"); + ok(true, "nothing happens after slider is destroyed"); + + slider.slider().slider("moveTo", "30"); + + equals(Math.round(slider.slider("value")), 30); +}) + +test("handle creation", function() { + var slider = $("#slider1"); + equals(slider.children().size(), 0); + slider.slider({ + handles: [ + { start: 0 }, + { start: 10 } + ] + }); + equals(slider.children().size(), 2); + var instance = $.data(slider[0], "slider") + equals(instance.handle.length, 2); + ok(instance.handle.jquery, "handle must be a jquery object") +}) \ No newline at end of file diff --git a/ui/themes/flora/flora.accordion.css b/ui/themes/flora/flora.accordion.css new file mode 100644 index 000000000..7037c05ea --- /dev/null +++ b/ui/themes/flora/flora.accordion.css @@ -0,0 +1,39 @@ +.ui-accordion { margin: 0; padding: 0; list-style-type: none; } +.ui-accordion li { margin: 0; margin-bottom: 2px; padding: 0; } +.ui-accordion li .ui-accordion-header { + display: block; + padding-left: 5px; + margin-right: 3px; + height: 28px; + background-image: url(i/accordion-middle.png); + color: #000; + text-decoration: none; + line-height: 28px; + position: relative; + left: 3px; +} +.ui-accordion li .ui-accordion-right { + display: block; + background-image: url(i/accordion-right.png); + position: absolute; + top: 0px; + right: -3px; + height: 28px; + width: 3px; +} +.ui-accordion li .ui-accordion-left { + display: block; + background-image: url(i/accordion-left.png); + background-repeat: no-repeat; + position: absolute; + height: 28px; + width: 3px; +} + +.ui-accordion li:hover .ui-accordion-left { background-image: url(i/accordion-left-over.png); } +.ui-accordion li:hover .ui-accordion-header { background-image: url(i/accordion-middle-over.png); } +.ui-accordion li:hover .ui-accordion-right { background-image: url(i/accordion-right-over.png); } + +.ui-accordion li.selected .ui-accordion-left { background-image: url(i/accordion-left-act.png); } +.ui-accordion li.selected .ui-accordion-header { background-image: url(i/accordion-middle-act.png); } +.ui-accordion li.selected .ui-accordion-right { background-image: url(i/accordion-right-act.png); } diff --git a/ui/themes/flora/flora.all.css b/ui/themes/flora/flora.all.css new file mode 100644 index 000000000..2f8d7fbbc --- /dev/null +++ b/ui/themes/flora/flora.all.css @@ -0,0 +1,7 @@ +@import "flora.css"; +@import "flora.accordion.css"; +@import "flora.datepicker.css"; +@import "flora.dialog.css"; +@import "flora.resizable.css"; +@import "flora.slider.css"; +@import "flora.tabs.css"; diff --git a/ui/themes/flora/flora.css b/ui/themes/flora/flora.css new file mode 100644 index 000000000..761217d93 --- /dev/null +++ b/ui/themes/flora/flora.css @@ -0,0 +1,2 @@ +.ui-wrapper { border: 1px solid #50A029; } +.ui-wrapper input, .ui-wrapper textarea { border: 0; } \ No newline at end of file diff --git a/ui/themes/flora/flora.datepicker.css b/ui/themes/flora/flora.datepicker.css new file mode 100644 index 000000000..34ea65067 --- /dev/null +++ b/ui/themes/flora/flora.datepicker.css @@ -0,0 +1,179 @@ +/* Main Flora Style Sheet for jQuery UI Datepicker */ +#datepicker_div, .datepicker_inline { + font-family: Arial,Helvetica,sans-serif; + font-size: 14px; + padding: 0; + margin: 0; + background: #DDD; + width: 185px; +} +#datepicker_div { + display: none; + border: 1px solid #FF9900; + z-index: 10; +} +.datepicker_inline { + float: left; + display: block; + border: 0; +} +.datepicker_dialog { + padding: 5px !important; + border: 4px ridge #DDD !important; +} +button.datepicker_trigger { + width: 25px; +} +img.datepicker_trigger { + margin: 2px; + vertical-align: middle; +} +.datepicker_prompt { + float: left; + padding: 2px; + background: #DDD; + color: #000; +} +*html .datepicker_prompt { + width: 185px; +} +.datepicker_control, .datepicker_links, .datepicker_header, .datepicker { + clear: both; + float: left; + width: 100%; + color: #FFF; +} +.datepicker_control { + background: #FF9900; + padding: 2px 0px; +} +.datepicker_links { + background: #E0F4D7; + padding: 2px 0px; +} +.datepicker_control, .datepicker_links { + font-weight: bold; + font-size: 80%; + letter-spacing: 1px; +} +.datepicker_links label { + padding: 2px 5px; + color: #888; +} +.datepicker_clear, .datepicker_prev { + float: left; + width: 34%; +} +.datepicker_current { + float: left; + width: 30%; + text-align: center; +} +.datepicker_close, .datepicker_next { + float: right; + width: 34%; + text-align: right; +} +.datepicker_header { + padding: 1px 0 3px; + background: #83C948; + text-align: center; + font-weight: bold; + height: 1.3em; +} +.datepicker_header select { + background: #83C948; + color: #000; + border: 0px; + font-weight: bold; +} +.datepicker { + background: #CCC; + text-align: center; + font-size: 100%; +} +.datepicker a { + display: block; + width: 100%; +} +.datepicker .datepicker_titleRow { + background: #B1DB87; + color: #000; +} +.datepicker .datepicker_daysRow { + background: #FFF; + color: #666; +} +.datepicker_weekCol { + background: #B1DB87; + color: #000; +} +.datepicker .datepicker_daysCell { + color: #000; + border: 1px solid #DDD; +} +#datepicker .datepicker_daysCell a { + display: block; +} +.datepicker .datepicker_weekEndCell { + background: #E0F4D7; +} +.datepicker .datepicker_daysCellOver { + background: #FFF; + border: 1px solid #777; +} +.datepicker .datepicker_unselectable { + color: #888; +} +.datepicker_today { + background: #B1DB87 !important; +} +.datepicker_currentDay { + background: #83C948 !important; +} +#datepicker_div a, .datepicker_inline a { + cursor: pointer; + margin: 0; + padding: 0; + background: none; + color: #000; +} +.datepicker_inline .datepicker_links a { + padding: 0 5px !important; +} +.datepicker_control a, .datepicker_links a { + padding: 2px 5px !important; + color: #000 !important; +} +.datepicker_titleRow a { + color: #000 !important; +} +.datepicker_control a:hover { + background: #FDD !important; + color: #333 !important; +} +.datepicker_links a:hover, .datepicker_titleRow a:hover { + background: #FFF !important; + color: #333 !important; +} +.datepicker_multi .datepicker { + border: 1px solid #83C948; +} +.datepicker_oneMonth { + float: left; + width: 185px; +} +.datepicker_newRow { + clear: left; +} +.datepicker_cover { + display: none; + display/**/: block; + position: absolute; + z-index: -1; + filter: mask(); + top: -4px; + left: -4px; + width: 193px; + height: 200px; +} diff --git a/ui/themes/flora/flora.dialog.css b/ui/themes/flora/flora.dialog.css new file mode 100644 index 000000000..efef1c4ba --- /dev/null +++ b/ui/themes/flora/flora.dialog.css @@ -0,0 +1,95 @@ +/* This file skins dialog */ + +.flora .ui-dialog, +.flora.ui-dialog { + background-color: #e6f7d4; +} + +.flora .ui-dialog .ui-dialog-titlebar, +.flora.ui-dialog .ui-dialog-titlebar { + border-bottom: 1px solid #d8d2aa; + background: #ff9900 url(i/dialog-title.gif) repeat-x; + padding: 0px; + height: 28px; + _height: 29px; +} + +.flora .ui-dialog.ui-draggable .ui-dialog-titlebar, +.flora.ui-dialog.ui-draggable .ui-dialog-titlebar { + cursor: move; +} + +.flora .ui-dialog .ui-dialog-titlebar-close, +.flora.ui-dialog .ui-dialog-titlebar-close { + width: 16px; + height: 16px; + background: url(i/dialog-titlebar-close.png) no-repeat; + position:absolute; + top: 6px; + right: 7px; + cursor: default; +} + +.flora .ui-dialog .ui-dialog-titlebar-close span, +.flora.ui-dialog .ui-dialog-titlebar-close span { + display: none; +} + +.flora .ui-dialog .ui-dialog-titlebar-close-hover, +.flora.ui-dialog .ui-dialog-titlebar-close-hover { + background: url(i/dialog-titlebar-close-hover.png) no-repeat; +} + +.flora .ui-dialog .ui-dialog-title, +.flora.ui-dialog .ui-dialog-title { + margin-left: 5px; + color: white; + font-weight: bold; + position: relative; + top: 7px; + left: 4px; +} + +.flora .ui-dialog .ui-dialog-content, +.flora.ui-dialog .ui-dialog-content { + margin: 1.2em; +} + +.flora .ui-dialog .ui-dialog-buttonpane, +.flora.ui-dialog .ui-dialog-buttonpane { + position: absolute; + bottom: 8px; + right: 12px; + width: 100%; + text-align: right; +} + +.flora .ui-dialog .ui-dialog-buttonpane button, +.flora.ui-dialog .ui-dialog-buttonpane button { + margin: 6px; +} + +/* Dialog handle styles */ +.flora .ui-dialog .ui-resizable-n, +.flora.ui-dialog .ui-resizable-n { cursor: n-resize; height: 6px; width: 100%; top: 0px; left: 0px; background: transparent url(i/dialog-n.gif) repeat scroll center top; } + +.flora .ui-dialog .ui-resizable-s, +.flora.ui-dialog .ui-resizable-s { cursor: s-resize; height: 8px; width: 100%; bottom: 0px; left: 0px; background: transparent url(i/dialog-s.gif) repeat scroll center top; } + +.flora .ui-dialog .ui-resizable-e, +.flora.ui-dialog .ui-resizable-e { cursor: e-resize; width: 7px; right: 0px; top: 0px; height: 100%; background: transparent url(i/dialog-e.gif) repeat scroll right center; } + +.flora .ui-dialog .ui-resizable-w, +.flora.ui-dialog .ui-resizable-w { cursor: w-resize; width: 7px; left: 0px; top: 0px; height: 100%; background: transparent url(i/dialog-w.gif) repeat scroll right center; } + +.flora .ui-dialog .ui-resizable-se, +.flora.ui-dialog .ui-resizable-se { cursor: se-resize; width: 9px; height: 9px; right: 0px; bottom: 0px; background: transparent url(i/dialog-se.gif); } + +.flora .ui-dialog .ui-resizable-sw, +.flora.ui-dialog .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; background: transparent url(i/dialog-sw.gif); } + +.flora .ui-dialog .ui-resizable-nw, +.flora.ui-dialog .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 29px; left: 0px; top: 0px; background: transparent url(i/dialog-nw.gif); } + +.flora .ui-dialog .ui-resizable-ne, +.flora.ui-dialog .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 29px; right: 0px; top: 0px; background: transparent url(i/dialog-ne.gif); } diff --git a/ui/themes/flora/flora.resizable.css b/ui/themes/flora/flora.resizable.css new file mode 100644 index 000000000..5e30c0c2c --- /dev/null +++ b/ui/themes/flora/flora.resizable.css @@ -0,0 +1,20 @@ +/* This file skins resizables */ + +.ui-resizable { position: relative; } + +/* Global handle styles */ +.ui-resizable-handle { position: absolute; display: none; font-size: 0.1px; } +.ui-resizable .ui-resizable-handle { display: block; } +body .ui-resizable-disabled .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */ +body .ui-resizable-autohide .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */ + +.ui-resizable-n { cursor: n-resize; height: 6px; width: 100%; top: 0px; left: 0px; background: transparent url(i/resizable-n.gif) repeat scroll center top; } +.ui-resizable-s { cursor: s-resize; height: 6px; width: 100%; bottom: 0px; left: 0px; background: transparent url(i/resizable-s.gif) repeat scroll center top; } + +.ui-resizable-e { cursor: e-resize; width: 6px; right: 0px; top: 0px; height: 100%; background: transparent url(i/resizable-e.gif) repeat scroll right center; } +.ui-resizable-w { cursor: w-resize; width: 6px; left: 0px; top: 0px; height: 100%; background: transparent url(i/resizable-w.gif) repeat scroll right center; } + +.ui-resizable-se { cursor: se-resize; width: 9px; height: 9px; right: 0px; bottom: 0px; background: transparent url(i/resizable-se.gif); } +.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; background: transparent url(i/resizable-sw.gif); } +.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: 0px; top: 0px; background: transparent url(i/resizable-nw.gif); } +.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: 0px; top: 0px; background: transparent url(i/resizable-ne.gif); } \ No newline at end of file diff --git a/ui/themes/flora/flora.slider.css b/ui/themes/flora/flora.slider.css new file mode 100644 index 000000000..94827b3c4 --- /dev/null +++ b/ui/themes/flora/flora.slider.css @@ -0,0 +1,11 @@ +/* This file skins sliders */ + +.ui-slider { width: 200px; height: 23px; position: relative; background-repeat: no-repeat; background-position: center center; } +.ui-slider-handle { position: absolute; z-index: 1; height: 23px; width: 12px; top: 0px; left: 0px; background-image: url(i/slider-handle.gif); } +.ui-slider-handle-active { border: 1px dotted black; } +.ui-slider-disabled .ui-slider-handle { opacity: 0.5; filter: alpha(opacity=50); } +.ui-slider-range { position: absolute; background: #50A029; opacity: 0.3; filter: alpha(opacity=30); width: 100%; height: 100%; } + +/* Default slider backgrounds */ +.ui-slider, .ui-slider-1 { background-image: url(i/slider-bg-1.png); } +.ui-slider-2 { background-image: url(i/slider-bg-2.png); } \ No newline at end of file diff --git a/ui/themes/flora/flora.tabs.css b/ui/themes/flora/flora.tabs.css new file mode 100644 index 000000000..c79a17e63 --- /dev/null +++ b/ui/themes/flora/flora.tabs.css @@ -0,0 +1,105 @@ +@import "flora.css"; + +/* Caution! Ensure accessibility in print and other media types... */ +@media projection, screen { /* Use class for showing/hiding tab content, so that visibility can be better controlled in different media types... */ + .ui-tabs-hide { + display: none; + } +} + +/* Hide useless elements in print layouts... */ +@media print { + .ui-tabs-nav { + display: none; + } +} + +/* Skin */ +.ui-tabs-nav, .ui-tabs-panel { + font-family: "Trebuchet MS", Trebuchet, Verdana, Helvetica, Arial, sans-serif; + font-size: 12px; +} +.ui-tabs-nav { + list-style: none; + margin: 0; + padding: 0 0 0 3px; +} +.ui-tabs-nav:after { /* clearing without presentational markup, IE gets extra treatment */ + display: block; + clear: both; + content: " "; +} +.ui-tabs-nav li { + float: left; + margin: 0 0 0 2px; + font-weight: bold; +} +.ui-tabs-nav a, .ui-tabs-nav a span { + float: left; /* fixes dir=ltr problem and other quirks IE */ + padding: 0 12px; + background: url(i/tabs.png) no-repeat; +} +.ui-tabs-nav a { + margin: 5px 0 0; /* position: relative makes opacity fail for disabled tab in IE */ + padding-left: 0; + background-position: 100% 0; + text-decoration: none; + white-space: nowrap; /* @ IE 6 */ + outline: 0; /* @ Firefox, prevent dotted border after click */ +} +.ui-tabs-nav a:link, .ui-tabs-nav a:visited { + color: #fff; +} +.ui-tabs-nav .ui-tabs-selected a { + position: relative; + top: 1px; + z-index: 2; + margin-top: 0; + background-position: 100% -23px; +} +.ui-tabs-nav a span { + padding-top: 1px; + padding-right: 0; + height: 20px; + background-position: 0 0; + line-height: 20px; +} +.ui-tabs-nav .ui-tabs-selected a span { + padding-top: 0; + height: 27px; + background-position: 0 -23px; + line-height: 27px; +} +.ui-tabs-nav .ui-tabs-selected a:link, .ui-tabs-nav .ui-tabs-selected a:visited, +.ui-tabs-nav .ui-tabs-disabled a:link, .ui-tabs-nav .ui-tabs-disabled a:visited { /* @ Opera, use pseudo classes otherwise it confuses cursor... */ + cursor: text; +} +.ui-tabs-nav a:hover, .ui-tabs-nav a:focus, .ui-tabs-nav a:active, +.ui-tabs-nav .ui-tabs-unselect a:hover, .ui-tabs-nav .ui-tabs-unselect a:focus, .ui-tabs-nav .ui-tabs-unselect a:active { /* @ Opera, we need to be explicit again here now... */ + cursor: pointer; +} +.ui-tabs-disabled { + opacity: .4; + filter: alpha(opacity=40); +} +.ui-tabs-nav .ui-tabs-disabled a:link, .ui-tabs-nav .ui-tabs-disabled a:visited { + color: #000; +} +.ui-tabs-panel { + border: 1px solid #519e2d; + padding: 10px; + background: #fff; /* declare background color for container to avoid distorted fonts in IE while fading */ +} +/*.ui-tabs-loading em { + padding: 0 0 0 20px; + background: url(loading.gif) no-repeat 0 50%; +}*/ + +/* Additional IE specific bug fixes... */ +* html .ui-tabs-nav { /* auto clear @ IE 6 & IE 7 Quirks Mode */ + display: inline-block; +} +*:first-child+html .ui-tabs-nav { /* auto clear @ IE 7 Standards Mode - do not group selectors, otherwise IE 6 will ignore complete rule (because of the unknown + combinator)... */ + display: inline-block; +} + diff --git a/ui/themes/flora/i/accordion-left-act.png b/ui/themes/flora/i/accordion-left-act.png new file mode 100644 index 000000000..bf6ee995b Binary files /dev/null and b/ui/themes/flora/i/accordion-left-act.png differ diff --git a/ui/themes/flora/i/accordion-left-over.png b/ui/themes/flora/i/accordion-left-over.png new file mode 100644 index 000000000..66378e0e6 Binary files /dev/null and b/ui/themes/flora/i/accordion-left-over.png differ diff --git a/ui/themes/flora/i/accordion-left.png b/ui/themes/flora/i/accordion-left.png new file mode 100644 index 000000000..13344fc9f Binary files /dev/null and b/ui/themes/flora/i/accordion-left.png differ diff --git a/ui/themes/flora/i/accordion-middle-act.png b/ui/themes/flora/i/accordion-middle-act.png new file mode 100644 index 000000000..cecf4f150 Binary files /dev/null and b/ui/themes/flora/i/accordion-middle-act.png differ diff --git a/ui/themes/flora/i/accordion-middle-over.png b/ui/themes/flora/i/accordion-middle-over.png new file mode 100644 index 000000000..251ad11f9 Binary files /dev/null and b/ui/themes/flora/i/accordion-middle-over.png differ diff --git a/ui/themes/flora/i/accordion-middle.png b/ui/themes/flora/i/accordion-middle.png new file mode 100644 index 000000000..5238fd414 Binary files /dev/null and b/ui/themes/flora/i/accordion-middle.png differ diff --git a/ui/themes/flora/i/accordion-right-act.png b/ui/themes/flora/i/accordion-right-act.png new file mode 100644 index 000000000..1fa479280 Binary files /dev/null and b/ui/themes/flora/i/accordion-right-act.png differ diff --git a/ui/themes/flora/i/accordion-right-over.png b/ui/themes/flora/i/accordion-right-over.png new file mode 100644 index 000000000..d676dad80 Binary files /dev/null and b/ui/themes/flora/i/accordion-right-over.png differ diff --git a/ui/themes/flora/i/accordion-right.png b/ui/themes/flora/i/accordion-right.png new file mode 100644 index 000000000..543991a2b Binary files /dev/null and b/ui/themes/flora/i/accordion-right.png differ diff --git a/ui/themes/flora/i/dialog-e.gif b/ui/themes/flora/i/dialog-e.gif new file mode 100644 index 000000000..3b8b52189 Binary files /dev/null and b/ui/themes/flora/i/dialog-e.gif differ diff --git a/ui/themes/flora/i/dialog-n.gif b/ui/themes/flora/i/dialog-n.gif new file mode 100644 index 000000000..70887b89b Binary files /dev/null and b/ui/themes/flora/i/dialog-n.gif differ diff --git a/ui/themes/flora/i/dialog-ne.gif b/ui/themes/flora/i/dialog-ne.gif new file mode 100644 index 000000000..ab9c38e57 Binary files /dev/null and b/ui/themes/flora/i/dialog-ne.gif differ diff --git a/ui/themes/flora/i/dialog-nw.gif b/ui/themes/flora/i/dialog-nw.gif new file mode 100644 index 000000000..e93407333 Binary files /dev/null and b/ui/themes/flora/i/dialog-nw.gif differ diff --git a/ui/themes/flora/i/dialog-s.gif b/ui/themes/flora/i/dialog-s.gif new file mode 100644 index 000000000..d5f6b99b0 Binary files /dev/null and b/ui/themes/flora/i/dialog-s.gif differ diff --git a/ui/themes/flora/i/dialog-se.gif b/ui/themes/flora/i/dialog-se.gif new file mode 100644 index 000000000..186a8640a Binary files /dev/null and b/ui/themes/flora/i/dialog-se.gif differ diff --git a/ui/themes/flora/i/dialog-sw.gif b/ui/themes/flora/i/dialog-sw.gif new file mode 100644 index 000000000..025dfda84 Binary files /dev/null and b/ui/themes/flora/i/dialog-sw.gif differ diff --git a/ui/themes/flora/i/dialog-title.gif b/ui/themes/flora/i/dialog-title.gif new file mode 100644 index 000000000..156c59b99 Binary files /dev/null and b/ui/themes/flora/i/dialog-title.gif differ diff --git a/ui/themes/flora/i/dialog-titlebar-close-hover.png b/ui/themes/flora/i/dialog-titlebar-close-hover.png new file mode 100644 index 000000000..67c1303e9 Binary files /dev/null and b/ui/themes/flora/i/dialog-titlebar-close-hover.png differ diff --git a/ui/themes/flora/i/dialog-titlebar-close.png b/ui/themes/flora/i/dialog-titlebar-close.png new file mode 100644 index 000000000..cec974c89 Binary files /dev/null and b/ui/themes/flora/i/dialog-titlebar-close.png differ diff --git a/ui/themes/flora/i/dialog-w.gif b/ui/themes/flora/i/dialog-w.gif new file mode 100644 index 000000000..931ff4abe Binary files /dev/null and b/ui/themes/flora/i/dialog-w.gif differ diff --git a/ui/themes/flora/i/resizable-e.gif b/ui/themes/flora/i/resizable-e.gif new file mode 100644 index 000000000..7acf24836 Binary files /dev/null and b/ui/themes/flora/i/resizable-e.gif differ diff --git a/ui/themes/flora/i/resizable-n.gif b/ui/themes/flora/i/resizable-n.gif new file mode 100644 index 000000000..59110f677 Binary files /dev/null and b/ui/themes/flora/i/resizable-n.gif differ diff --git a/ui/themes/flora/i/resizable-ne.gif b/ui/themes/flora/i/resizable-ne.gif new file mode 100644 index 000000000..515a3f88d Binary files /dev/null and b/ui/themes/flora/i/resizable-ne.gif differ diff --git a/ui/themes/flora/i/resizable-nw.gif b/ui/themes/flora/i/resizable-nw.gif new file mode 100644 index 000000000..665f31890 Binary files /dev/null and b/ui/themes/flora/i/resizable-nw.gif differ diff --git a/ui/themes/flora/i/resizable-s.gif b/ui/themes/flora/i/resizable-s.gif new file mode 100644 index 000000000..da2fb3512 Binary files /dev/null and b/ui/themes/flora/i/resizable-s.gif differ diff --git a/ui/themes/flora/i/resizable-se.gif b/ui/themes/flora/i/resizable-se.gif new file mode 100644 index 000000000..6c258ef2a Binary files /dev/null and b/ui/themes/flora/i/resizable-se.gif differ diff --git a/ui/themes/flora/i/resizable-sw.gif b/ui/themes/flora/i/resizable-sw.gif new file mode 100644 index 000000000..2fd8de4dc Binary files /dev/null and b/ui/themes/flora/i/resizable-sw.gif differ diff --git a/ui/themes/flora/i/resizable-w.gif b/ui/themes/flora/i/resizable-w.gif new file mode 100644 index 000000000..34b875b95 Binary files /dev/null and b/ui/themes/flora/i/resizable-w.gif differ diff --git a/ui/themes/flora/i/slider-bg-1.png b/ui/themes/flora/i/slider-bg-1.png new file mode 100644 index 000000000..b7d806ed6 Binary files /dev/null and b/ui/themes/flora/i/slider-bg-1.png differ diff --git a/ui/themes/flora/i/slider-bg-2.png b/ui/themes/flora/i/slider-bg-2.png new file mode 100644 index 000000000..8b24cf091 Binary files /dev/null and b/ui/themes/flora/i/slider-bg-2.png differ diff --git a/ui/themes/flora/i/slider-handle.gif b/ui/themes/flora/i/slider-handle.gif new file mode 100644 index 000000000..9b89f2664 Binary files /dev/null and b/ui/themes/flora/i/slider-handle.gif differ diff --git a/ui/themes/flora/i/tabs.png b/ui/themes/flora/i/tabs.png new file mode 100644 index 000000000..8018e41c8 Binary files /dev/null and b/ui/themes/flora/i/tabs.png differ -- cgit v1.2.3