Skip to content
Browse files

Deleted

  • Loading branch information...
1 parent 9b6d806 commit a133b8d561c2935b4c51d8dea2e6eeb7ff1e0781 @dori committed Feb 19, 2011
Showing with 0 additions and 7,967 deletions.
  1. +0 −509 chap16/jquery/effects.core.js
  2. +0 −48 chap16/jquery/effects.highlight.js
  3. BIN chap16/jquery/images/asc.gif
  4. BIN chap16/jquery/images/bg.gif
  5. BIN chap16/jquery/images/desc.gif
  6. +0 −3,549 chap16/jquery/jquery.js
  7. +0 −852 chap16/jquery/jquery.tablesorter.js
  8. +0 −555 chap16/jquery/theme/contrast.css
  9. +0 −39 chap16/jquery/theme/flora/flora.accordion.css
  10. BIN chap16/jquery/theme/flora/i/accordion-left-act.png
  11. BIN chap16/jquery/theme/flora/i/accordion-left-over.png
  12. BIN chap16/jquery/theme/flora/i/accordion-left.png
  13. BIN chap16/jquery/theme/flora/i/accordion-middle-act.png
  14. BIN chap16/jquery/theme/flora/i/accordion-middle-over.png
  15. BIN chap16/jquery/theme/flora/i/accordion-middle.png
  16. BIN chap16/jquery/theme/flora/i/accordion-right-act.png
  17. BIN chap16/jquery/theme/flora/i/accordion-right-over.png
  18. BIN chap16/jquery/theme/flora/i/accordion-right.png
  19. BIN chap16/jquery/theme/flora/i/dialog-e.gif
  20. BIN chap16/jquery/theme/flora/i/dialog-n.gif
  21. BIN chap16/jquery/theme/flora/i/dialog-ne.gif
  22. BIN chap16/jquery/theme/flora/i/dialog-nw.gif
  23. BIN chap16/jquery/theme/flora/i/dialog-s.gif
  24. BIN chap16/jquery/theme/flora/i/dialog-se.gif
  25. BIN chap16/jquery/theme/flora/i/dialog-sw.gif
  26. BIN chap16/jquery/theme/flora/i/dialog-title.gif
  27. BIN chap16/jquery/theme/flora/i/dialog-titlebar-close-hover.png
  28. BIN chap16/jquery/theme/flora/i/dialog-titlebar-close.png
  29. BIN chap16/jquery/theme/flora/i/dialog-w.gif
  30. BIN chap16/jquery/theme/flora/i/resizable-e.gif
  31. BIN chap16/jquery/theme/flora/i/resizable-n.gif
  32. BIN chap16/jquery/theme/flora/i/resizable-ne.gif
  33. BIN chap16/jquery/theme/flora/i/resizable-nw.gif
  34. BIN chap16/jquery/theme/flora/i/resizable-s.gif
  35. BIN chap16/jquery/theme/flora/i/resizable-se.gif
  36. BIN chap16/jquery/theme/flora/i/resizable-sw.gif
  37. BIN chap16/jquery/theme/flora/i/resizable-w.gif
  38. BIN chap16/jquery/theme/flora/i/slider-bg-1.png
  39. BIN chap16/jquery/theme/flora/i/slider-bg-2.png
  40. BIN chap16/jquery/theme/flora/i/slider-handle.gif
  41. BIN chap16/jquery/theme/flora/i/tabs.png
  42. BIN chap16/jquery/theme/images/222222_11x11_icon_resize_se.gif
  43. BIN chap16/jquery/theme/images/333333_40x100_textures_02_glass_25.png
  44. BIN chap16/jquery/theme/images/444444_40x100_textures_02_glass_25.png
  45. BIN chap16/jquery/theme/images/a21111_40x100_textures_02_glass_35.png
  46. BIN chap16/jquery/theme/images/eeeeee_11x11_icon_arrows_leftright.gif
  47. BIN chap16/jquery/theme/images/eeeeee_11x11_icon_arrows_updown.gif
  48. BIN chap16/jquery/theme/images/eeeeee_11x11_icon_close.gif
  49. BIN chap16/jquery/theme/images/eeeeee_11x11_icon_doc.gif
  50. BIN chap16/jquery/theme/images/eeeeee_11x11_icon_folder_closed.gif
  51. BIN chap16/jquery/theme/images/eeeeee_11x11_icon_folder_open.gif
  52. BIN chap16/jquery/theme/images/eeeeee_11x11_icon_minus.gif
  53. BIN chap16/jquery/theme/images/eeeeee_11x11_icon_plus.gif
  54. BIN chap16/jquery/theme/images/eeeeee_7x7_arrow_down.gif
  55. BIN chap16/jquery/theme/images/eeeeee_7x7_arrow_left.gif
  56. BIN chap16/jquery/theme/images/eeeeee_7x7_arrow_right.gif
  57. BIN chap16/jquery/theme/images/eeeeee_7x7_arrow_up.gif
  58. BIN chap16/jquery/theme/images/ffd40f_11x11_icon_arrows_leftright.gif
  59. BIN chap16/jquery/theme/images/ffd40f_11x11_icon_arrows_updown.gif
  60. BIN chap16/jquery/theme/images/ffd40f_11x11_icon_close.gif
  61. BIN chap16/jquery/theme/images/ffd40f_11x11_icon_doc.gif
  62. BIN chap16/jquery/theme/images/ffd40f_11x11_icon_folder_closed.gif
  63. BIN chap16/jquery/theme/images/ffd40f_11x11_icon_folder_open.gif
  64. BIN chap16/jquery/theme/images/ffd40f_11x11_icon_minus.gif
  65. BIN chap16/jquery/theme/images/ffd40f_11x11_icon_plus.gif
  66. BIN chap16/jquery/theme/images/ffd40f_7x7_arrow_down.gif
  67. BIN chap16/jquery/theme/images/ffd40f_7x7_arrow_left.gif
  68. BIN chap16/jquery/theme/images/ffd40f_7x7_arrow_right.gif
  69. BIN chap16/jquery/theme/images/ffd40f_7x7_arrow_up.gif
  70. BIN chap16/jquery/theme/images/ffffff_11x11_icon_arrows_leftright.gif
  71. BIN chap16/jquery/theme/images/ffffff_11x11_icon_arrows_updown.gif
  72. BIN chap16/jquery/theme/images/ffffff_11x11_icon_close.gif
  73. BIN chap16/jquery/theme/images/ffffff_11x11_icon_doc.gif
  74. BIN chap16/jquery/theme/images/ffffff_11x11_icon_folder_closed.gif
  75. BIN chap16/jquery/theme/images/ffffff_11x11_icon_folder_open.gif
  76. BIN chap16/jquery/theme/images/ffffff_11x11_icon_minus.gif
  77. BIN chap16/jquery/theme/images/ffffff_11x11_icon_plus.gif
  78. BIN chap16/jquery/theme/images/ffffff_7x7_arrow_down.gif
  79. BIN chap16/jquery/theme/images/ffffff_7x7_arrow_left.gif
  80. BIN chap16/jquery/theme/images/ffffff_7x7_arrow_right.gif
  81. BIN chap16/jquery/theme/images/ffffff_7x7_arrow_up.gif
  82. +0 −295 chap16/jquery/ui.accordion.js
  83. +0 −291 chap16/jquery/ui.core.js
  84. +0 −497 chap16/jquery/ui.dialog.js
  85. +0 −562 chap16/jquery/ui.draggable.js
  86. +0 −770 chap16/jquery/ui.resizable.js
View
509 chap16/jquery/effects.core.js
@@ -1,509 +0,0 @@
-/*
- * jQuery UI Effects 1.5.2
- *
- * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/
- */
-;(function($) {
-
-$.effects = $.effects || {}; //Add the 'effects' scope
-
-$.extend($.effects, {
- save: function(el, set) {
- for(var i=0;i<set.length;i++) {
- if(set[i] !== null) $.data(el[0], "ec.storage."+set[i], el[0].style[set[i]]);
- }
- },
- restore: function(el, set) {
- for(var i=0;i<set.length;i++) {
- if(set[i] !== null) el.css(set[i], $.data(el[0], "ec.storage."+set[i]));
- }
- },
- setMode: function(el, mode) {
- if (mode == 'toggle') mode = el.is(':hidden') ? 'show' : 'hide'; // Set for toggle
- return mode;
- },
- getBaseline: function(origin, original) { // Translates a [top,left] array into a baseline value
- // this should be a little more flexible in the future to handle a string & hash
- var y, x;
- switch (origin[0]) {
- case 'top': y = 0; break;
- case 'middle': y = 0.5; break;
- case 'bottom': y = 1; break;
- default: y = origin[0] / original.height;
- };
- switch (origin[1]) {
- case 'left': x = 0; break;
- case 'center': x = 0.5; break;
- case 'right': x = 1; break;
- default: x = origin[1] / original.width;
- };
- return {x: x, y: y};
- },
- createWrapper: function(el) {
- if (el.parent().attr('id') == 'fxWrapper')
- return el;
- var props = {width: el.outerWidth({margin:true}), height: el.outerHeight({margin:true}), 'float': el.css('float')};
- el.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');
- var wrapper = el.parent();
- if (el.css('position') == 'static'){
- wrapper.css({position: 'relative'});
- el.css({position: 'relative'});
- } else {
- var top = el.css('top'); if(isNaN(parseInt(top))) top = 'auto';
- var left = el.css('left'); if(isNaN(parseInt(left))) left = 'auto';
- wrapper.css({ position: el.css('position'), top: top, left: left, zIndex: el.css('z-index') }).show();
- el.css({position: 'relative', top:0, left:0});
- }
- wrapper.css(props);
- return wrapper;
- },
- removeWrapper: function(el) {
- if (el.parent().attr('id') == 'fxWrapper')
- return el.parent().replaceWith(el);
- return el;
- },
- setTransition: function(el, list, factor, val) {
- val = val || {};
- $.each(list,function(i, x){
- unit = el.cssUnit(x);
- if (unit[0] > 0) val[x] = unit[0] * factor + unit[1];
- });
- return val;
- },
- animateClass: function(value, duration, easing, callback) {
-
- var cb = (typeof easing == "function" ? easing : (callback ? callback : null));
- var ea = (typeof easing == "object" ? easing : null);
-
- return this.each(function() {
-
- var offset = {}; var that = $(this); var oldStyleAttr = that.attr("style") || '';
- if(typeof oldStyleAttr == 'object') oldStyleAttr = oldStyleAttr["cssText"]; /* Stupidly in IE, style is a object.. */
- if(value.toggle) { that.hasClass(value.toggle) ? value.remove = value.toggle : value.add = value.toggle; }
-
- //Let's get a style offset
- var oldStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle));
- if(value.add) that.addClass(value.add); if(value.remove) that.removeClass(value.remove);
- var newStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle));
- if(value.add) that.removeClass(value.add); if(value.remove) that.addClass(value.remove);
-
- // The main function to form the object for animation
- for(var n in newStyle) {
- if( typeof newStyle[n] != "function" && newStyle[n] /* No functions and null properties */
- && n.indexOf("Moz") == -1 && n.indexOf("length") == -1 /* No mozilla spezific render properties. */
- && newStyle[n] != oldStyle[n] /* Only values that have changed are used for the animation */
- && (n.match(/color/i) || (!n.match(/color/i) && !isNaN(parseInt(newStyle[n],10)))) /* Only things that can be parsed to integers or colors */
- && (oldStyle.position != "static" || (oldStyle.position == "static" && !n.match(/left|top|bottom|right/))) /* No need for positions when dealing with static positions */
- ) offset[n] = newStyle[n];
- }
-
- that.animate(offset, duration, ea, function() { // Animate the newly constructed offset object
- // Change style attribute back to original. For stupid IE, we need to clear the damn object.
- if(typeof $(this).attr("style") == 'object') { $(this).attr("style")["cssText"] = ""; $(this).attr("style")["cssText"] = oldStyleAttr; } else $(this).attr("style", oldStyleAttr);
- if(value.add) $(this).addClass(value.add); if(value.remove) $(this).removeClass(value.remove);
- if(cb) cb.apply(this, arguments);
- });
-
- });
- }
-});
-
-//Extend the methods of jQuery
-$.fn.extend({
- //Save old methods
- _show: $.fn.show,
- _hide: $.fn.hide,
- __toggle: $.fn.toggle,
- _addClass: $.fn.addClass,
- _removeClass: $.fn.removeClass,
- _toggleClass: $.fn.toggleClass,
- // New ec methods
- effect: function(fx,o,speed,callback) {
- return $.effects[fx] ? $.effects[fx].call(this, {method: fx, options: o || {}, duration: speed, callback: callback }) : null;
- },
- show: function() {
- if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])))
- return this._show.apply(this, arguments);
- else {
- var o = arguments[1] || {}; o['mode'] = 'show';
- return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
- }
- },
- hide: function() {
- if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])))
- return this._hide.apply(this, arguments);
- else {
- var o = arguments[1] || {}; o['mode'] = 'hide';
- return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
- }
- },
- toggle: function(){
- if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])) || (arguments[0].constructor == Function))
- return this.__toggle.apply(this, arguments);
- else {
- var o = arguments[1] || {}; o['mode'] = 'toggle';
- return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
- }
- },
- addClass: function(classNames,speed,easing,callback) {
- return speed ? $.effects.animateClass.apply(this, [{ add: classNames },speed,easing,callback]) : this._addClass(classNames);
- },
- removeClass: function(classNames,speed,easing,callback) {
- return speed ? $.effects.animateClass.apply(this, [{ remove: classNames },speed,easing,callback]) : this._removeClass(classNames);
- },
- toggleClass: function(classNames,speed,easing,callback) {
- return speed ? $.effects.animateClass.apply(this, [{ toggle: classNames },speed,easing,callback]) : this._toggleClass(classNames);
- },
- morph: function(remove,add,speed,easing,callback) {
- return $.effects.animateClass.apply(this, [{ add: add, remove: remove },speed,easing,callback]);
- },
- switchClass: function() {
- return this.morph.apply(this, arguments);
- },
- // helper functions
- cssUnit: function(key) {
- var style = this.css(key), val = [];
- $.each( ['em','px','%','pt'], function(i, unit){
- if(style.indexOf(unit) > 0)
- val = [parseFloat(style), unit];
- });
- return val;
- }
-});
-
-/*
- * jQuery Color Animations
- * Copyright 2007 John Resig
- * Released under the MIT and GPL licenses.
- */
-
-// We override the animation for all of these color styles
-jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
- jQuery.fx.step[attr] = function(fx){
- if ( fx.state == 0 ) {
- fx.start = getColor( fx.elem, attr );
- fx.end = getRGB( fx.end );
- }
-
- fx.elem.style[attr] = "rgb(" + [
- Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
- Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
- Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
- ].join(",") + ")";
- }
-});
-
-// Color Conversion functions from highlightFade
-// By Blair Mitchelmore
-// http://jquery.offput.ca/highlightFade/
-
-// Parse strings looking for color tuples [255,255,255]
-function getRGB(color) {
- var result;
-
- // Check if we're already dealing with an array of colors
- if ( color && color.constructor == Array && color.length == 3 )
- return color;
-
- // Look for rgb(num,num,num)
- if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
- return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];
-
- // Look for rgb(num%,num%,num%)
- if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
- return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];
-
- // Look for #a0b1c2
- if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
- return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];
-
- // Look for #fff
- if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
- return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];
-
- // Look for rgba(0, 0, 0, 0) == transparent in Safari 3
- if (result = /rgba\(0, 0, 0, 0\)/.exec(color))
- return colors['transparent']
-
- // Otherwise, we're most likely dealing with a named color
- return colors[jQuery.trim(color).toLowerCase()];
-}
-
-function getColor(elem, attr) {
- var color;
-
- do {
- color = jQuery.curCSS(elem, attr);
-
- // Keep going until we find an element that has color, or we hit the body
- if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") )
- break;
-
- attr = "backgroundColor";
- } while ( elem = elem.parentNode );
-
- return getRGB(color);
-};
-
-// Some named colors to work with
-// From Interface by Stefan Petre
-// http://interface.eyecon.ro/
-
-var colors = {
- aqua:[0,255,255],
- azure:[240,255,255],
- beige:[245,245,220],
- black:[0,0,0],
- blue:[0,0,255],
- brown:[165,42,42],
- cyan:[0,255,255],
- darkblue:[0,0,139],
- darkcyan:[0,139,139],
- darkgrey:[169,169,169],
- darkgreen:[0,100,0],
- darkkhaki:[189,183,107],
- darkmagenta:[139,0,139],
- darkolivegreen:[85,107,47],
- darkorange:[255,140,0],
- darkorchid:[153,50,204],
- darkred:[139,0,0],
- darksalmon:[233,150,122],
- darkviolet:[148,0,211],
- fuchsia:[255,0,255],
- gold:[255,215,0],
- green:[0,128,0],
- indigo:[75,0,130],
- khaki:[240,230,140],
- lightblue:[173,216,230],
- lightcyan:[224,255,255],
- lightgreen:[144,238,144],
- lightgrey:[211,211,211],
- lightpink:[255,182,193],
- lightyellow:[255,255,224],
- lime:[0,255,0],
- magenta:[255,0,255],
- maroon:[128,0,0],
- navy:[0,0,128],
- olive:[128,128,0],
- orange:[255,165,0],
- pink:[255,192,203],
- purple:[128,0,128],
- violet:[128,0,128],
- red:[255,0,0],
- silver:[192,192,192],
- white:[255,255,255],
- yellow:[255,255,0],
- transparent: [255,255,255]
-};
-
-/*
- * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
- *
- * Uses the built in easing capabilities added In jQuery 1.1
- * to offer multiple easing options
- *
- * TERMS OF USE - jQuery Easing
- *
- * Open source under the BSD License.
- *
- * Copyright © 2008 George McGinley Smith
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this list of
- * conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice, this list
- * of conditions and the following disclaimer in the documentation and/or other materials
- * provided with the distribution.
- *
- * Neither the name of the author nor the names of contributors may be used to endorse
- * or promote products derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
- * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
- * OF THE POSSIBILITY OF SUCH DAMAGE.
- *
-*/
-
-// t: current time, b: begInnIng value, c: change In value, d: duration
-jQuery.easing['jswing'] = jQuery.easing['swing'];
-
-jQuery.extend( jQuery.easing,
-{
- def: 'easeOutQuad',
- swing: function (x, t, b, c, d) {
- //alert(jQuery.easing.default);
- return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
- },
- easeInQuad: function (x, t, b, c, d) {
- return c*(t/=d)*t + b;
- },
- easeOutQuad: function (x, t, b, c, d) {
- return -c *(t/=d)*(t-2) + b;
- },
- easeInOutQuad: function (x, t, b, c, d) {
- if ((t/=d/2) < 1) return c/2*t*t + b;
- return -c/2 * ((--t)*(t-2) - 1) + b;
- },
- easeInCubic: function (x, t, b, c, d) {
- return c*(t/=d)*t*t + b;
- },
- easeOutCubic: function (x, t, b, c, d) {
- return c*((t=t/d-1)*t*t + 1) + b;
- },
- easeInOutCubic: function (x, t, b, c, d) {
- if ((t/=d/2) < 1) return c/2*t*t*t + b;
- return c/2*((t-=2)*t*t + 2) + b;
- },
- easeInQuart: function (x, t, b, c, d) {
- return c*(t/=d)*t*t*t + b;
- },
- easeOutQuart: function (x, t, b, c, d) {
- return -c * ((t=t/d-1)*t*t*t - 1) + b;
- },
- easeInOutQuart: function (x, t, b, c, d) {
- if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
- return -c/2 * ((t-=2)*t*t*t - 2) + b;
- },
- easeInQuint: function (x, t, b, c, d) {
- return c*(t/=d)*t*t*t*t + b;
- },
- easeOutQuint: function (x, t, b, c, d) {
- return c*((t=t/d-1)*t*t*t*t + 1) + b;
- },
- easeInOutQuint: function (x, t, b, c, d) {
- if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
- return c/2*((t-=2)*t*t*t*t + 2) + b;
- },
- easeInSine: function (x, t, b, c, d) {
- return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
- },
- easeOutSine: function (x, t, b, c, d) {
- return c * Math.sin(t/d * (Math.PI/2)) + b;
- },
- easeInOutSine: function (x, t, b, c, d) {
- return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
- },
- easeInExpo: function (x, t, b, c, d) {
- return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
- },
- easeOutExpo: function (x, t, b, c, d) {
- return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
- },
- easeInOutExpo: function (x, t, b, c, d) {
- if (t==0) return b;
- if (t==d) return b+c;
- if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
- return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
- },
- easeInCirc: function (x, t, b, c, d) {
- return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
- },
- easeOutCirc: function (x, t, b, c, d) {
- return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
- },
- easeInOutCirc: function (x, t, b, c, d) {
- if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
- return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
- },
- easeInElastic: function (x, t, b, c, d) {
- var s=1.70158;var p=0;var a=c;
- if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
- if (a < Math.abs(c)) { a=c; var s=p/4; }
- else var s = p/(2*Math.PI) * Math.asin (c/a);
- return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
- },
- easeOutElastic: function (x, t, b, c, d) {
- var s=1.70158;var p=0;var a=c;
- if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
- if (a < Math.abs(c)) { a=c; var s=p/4; }
- else var s = p/(2*Math.PI) * Math.asin (c/a);
- return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
- },
- easeInOutElastic: function (x, t, b, c, d) {
- var s=1.70158;var p=0;var a=c;
- if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
- if (a < Math.abs(c)) { a=c; var s=p/4; }
- else var s = p/(2*Math.PI) * Math.asin (c/a);
- if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
- return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
- },
- easeInBack: function (x, t, b, c, d, s) {
- if (s == undefined) s = 1.70158;
- return c*(t/=d)*t*((s+1)*t - s) + b;
- },
- easeOutBack: function (x, t, b, c, d, s) {
- if (s == undefined) s = 1.70158;
- return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
- },
- easeInOutBack: function (x, t, b, c, d, s) {
- if (s == undefined) s = 1.70158;
- if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
- return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
- },
- easeInBounce: function (x, t, b, c, d) {
- return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
- },
- easeOutBounce: function (x, t, b, c, d) {
- if ((t/=d) < (1/2.75)) {
- return c*(7.5625*t*t) + b;
- } else if (t < (2/2.75)) {
- return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
- } else if (t < (2.5/2.75)) {
- return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
- } else {
- return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
- }
- },
- easeInOutBounce: function (x, t, b, c, d) {
- if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
- return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
- }
-});
-
-/*
- *
- * TERMS OF USE - EASING EQUATIONS
- *
- * Open source under the BSD License.
- *
- * Copyright © 2001 Robert Penner
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this list of
- * conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice, this list
- * of conditions and the following disclaimer in the documentation and/or other materials
- * provided with the distribution.
- *
- * Neither the name of the author nor the names of contributors may be used to endorse
- * or promote products derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
- * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
- * OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-})(jQuery);
View
48 chap16/jquery/effects.highlight.js
@@ -1,48 +0,0 @@
-/*
- * jQuery UI Effects Highlight
- *
- * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/Highlight
- *
- * Depends:
- * effects.core.js
- */
-;(function($) {
-
-$.effects.highlight = function(o) {
-
- return this.queue(function() {
-
- // Create element
- var el = $(this), props = ['backgroundImage','backgroundColor','opacity'];
-
- // Set options
- var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
- var color = o.options.color || "#ffff99"; // Default highlight color
- var oldColor = el.css("backgroundColor");
-
- // Adjust
- $.effects.save(el, props); el.show(); // Save & Show
- el.css({backgroundImage: 'none', backgroundColor: color}); // Shift
-
- // Animation
- var animation = {backgroundColor: oldColor };
- if (mode == "hide") animation['opacity'] = 0;
-
- // Animate
- el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
- if(mode == "hide") el.hide();
- $.effects.restore(el, props);
- if (mode == "show" && jQuery.browser.msie) this.style.removeAttribute('filter');
- if(o.callback) o.callback.apply(this, arguments);
- el.dequeue();
- }});
-
- });
-
-};
-
-})(jQuery);
View
BIN chap16/jquery/images/asc.gif
Deleted file not rendered
View
BIN chap16/jquery/images/bg.gif
Deleted file not rendered
View
BIN chap16/jquery/images/desc.gif
Deleted file not rendered
View
3,549 chap16/jquery/jquery.js
0 additions, 3,549 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
852 chap16/jquery/jquery.tablesorter.js
@@ -1,852 +0,0 @@
-/*
- *
- * TableSorter 2.0 - Client-side table sorting with ease!
- * Version 2.0.3
- * @requires jQuery v1.2.3
- *
- * Copyright (c) 2007 Christian Bach
- * Examples and docs at: http://tablesorter.com
- * Dual licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- *
- */
-/**
- *
- * @description Create a sortable table with multi-column sorting capabilitys
- *
- * @example $('table').tablesorter();
- * @desc Create a simple tablesorter interface.
- *
- * @example $('table').tablesorter({ sortList:[[0,0],[1,0]] });
- * @desc Create a tablesorter interface and sort on the first and secound column in ascending order.
- *
- * @example $('table').tablesorter({ headers: { 0: { sorter: false}, 1: {sorter: false} } });
- * @desc Create a tablesorter interface and disableing the first and secound column headers.
- *
- * @example $('table').tablesorter({ 0: {sorter:"integer"}, 1: {sorter:"currency"} });
- * @desc Create a tablesorter interface and set a column parser for the first and secound column.
- *
- *
- * @param Object settings An object literal containing key/value pairs to provide optional settings.
- *
- * @option String cssHeader (optional) A string of the class name to be appended to sortable tr elements in the thead of the table.
- * Default value: "header"
- *
- * @option String cssAsc (optional) A string of the class name to be appended to sortable tr elements in the thead on a ascending sort.
- * Default value: "headerSortUp"
- *
- * @option String cssDesc (optional) A string of the class name to be appended to sortable tr elements in the thead on a descending sort.
- * Default value: "headerSortDown"
- *
- * @option String sortInitialOrder (optional) A string of the inital sorting order can be asc or desc.
- * Default value: "asc"
- *
- * @option String sortMultisortKey (optional) A string of the multi-column sort key.
- * Default value: "shiftKey"
- *
- * @option String textExtraction (optional) A string of the text-extraction method to use.
- * For complex html structures inside td cell set this option to "complex",
- * on large tables the complex option can be slow.
- * Default value: "simple"
- *
- * @option Object headers (optional) An array containing the forces sorting rules.
- * This option let's you specify a default sorting rule.
- * Default value: null
- *
- * @option Array sortList (optional) An array containing the forces sorting rules.
- * This option let's you specify a default sorting rule.
- * Default value: null
- *
- * @option Array sortForce (optional) An array containing forced sorting rules.
- * This option let's you specify a default sorting rule, which is prepended to user-selected rules.
- * Default value: null
- *
- * @option Array sortAppend (optional) An array containing forced sorting rules.
- * This option let's you specify a default sorting rule, which is appended to user-selected rules.
- * Default value: null
- *
- * @option Boolean widthFixed (optional) Boolean flag indicating if tablesorter should apply fixed widths to the table columns.
- * This is usefull when using the pager companion plugin.
- * This options requires the dimension jquery plugin.
- * Default value: false
- *
- * @option Boolean cancelSelection (optional) Boolean flag indicating if tablesorter should cancel selection of the table headers text.
- * Default value: true
- *
- * @option Boolean debug (optional) Boolean flag indicating if tablesorter should display debuging information usefull for development.
- *
- * @type jQuery
- *
- * @name tablesorter
- *
- * @cat Plugins/Tablesorter
- *
- * @author Christian Bach/christian.bach@polyester.se
- */
-
-(function($) {
- $.extend({
- tablesorter: new function() {
-
- var parsers = [], widgets = [];
-
- this.defaults = {
- cssHeader: "header",
- cssAsc: "headerSortUp",
- cssDesc: "headerSortDown",
- sortInitialOrder: "asc",
- sortMultiSortKey: "shiftKey",
- sortForce: null,
- sortAppend: null,
- textExtraction: "simple",
- parsers: {},
- widgets: [],
- widgetZebra: {css: ["even","odd"]},
- headers: {},
- widthFixed: false,
- cancelSelection: true,
- sortList: [],
- headerList: [],
- dateFormat: "us",
- decimal: '.',
- debug: false
- };
-
- /* debuging utils */
- function benchmark(s,d) {
- log(s + "," + (new Date().getTime() - d.getTime()) + "ms");
- }
-
- this.benchmark = benchmark;
-
- function log(s) {
- if (typeof console != "undefined" && typeof console.debug != "undefined") {
- console.log(s);
- } else {
- alert(s);
- }
- }
-
- /* parsers utils */
- function buildParserCache(table,$headers) {
-
- if(table.config.debug) { var parsersDebug = ""; }
-
- var rows = table.tBodies[0].rows;
-
- if(table.tBodies[0].rows[0]) {
-
- var list = [], cells = rows[0].cells, l = cells.length;
-
- for (var i=0;i < l; i++) {
- var p = false;
-
- if($.metadata && ($($headers[i]).metadata() && $($headers[i]).metadata().sorter) ) {
-
- p = getParserById($($headers[i]).metadata().sorter);
-
- } else if((table.config.headers[i] && table.config.headers[i].sorter)) {
-
- p = getParserById(table.config.headers[i].sorter);
- }
- if(!p) {
- p = detectParserForColumn(table,cells[i]);
- }
-
- if(table.config.debug) { parsersDebug += "column:" + i + " parser:" +p.id + "\n"; }
-
- list.push(p);
- }
- }
-
- if(table.config.debug) { log(parsersDebug); }
-
- return list;
- };
-
- function detectParserForColumn(table,node) {
- var l = parsers.length;
- for(var i=1; i < l; i++) {
- if(parsers[i].is($.trim(getElementText(table.config,node)),table,node)) {
- return parsers[i];
- }
- }
- // 0 is always the generic parser (text)
- return parsers[0];
- }
-
- function getParserById(name) {
- var l = parsers.length;
- for(var i=0; i < l; i++) {
- if(parsers[i].id.toLowerCase() == name.toLowerCase()) {
- return parsers[i];
- }
- }
- return false;
- }
-
- /* utils */
- function buildCache(table) {
-
- if(table.config.debug) { var cacheTime = new Date(); }
-
-
- var totalRows = (table.tBodies[0] && table.tBodies[0].rows.length) || 0,
- totalCells = (table.tBodies[0].rows[0] && table.tBodies[0].rows[0].cells.length) || 0,
- parsers = table.config.parsers,
- cache = {row: [], normalized: []};
-
- for (var i=0;i < totalRows; ++i) {
-
- /** Add the table data to main data array */
- var c = table.tBodies[0].rows[i], cols = [];
-
- cache.row.push($(c));
-
- for(var j=0; j < totalCells; ++j) {
- cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]));
- }
-
- cols.push(i); // add position for rowCache
- cache.normalized.push(cols);
- cols = null;
- };
-
- if(table.config.debug) { benchmark("Building cache for " + totalRows + " rows:", cacheTime); }
-
- return cache;
- };
-
- function getElementText(config,node) {
-
- if(!node) return "";
-
- var t = "";
-
- if(config.textExtraction == "simple") {
- if(node.childNodes[0] && node.childNodes[0].hasChildNodes()) {
- t = node.childNodes[0].innerHTML;
- } else {
- t = node.innerHTML;
- }
- } else {
- if(typeof(config.textExtraction) == "function") {
- t = config.textExtraction(node);
- } else {
- t = $(node).text();
- }
- }
- return t;
- }
-
- function appendToTable(table,cache) {
-
- if(table.config.debug) {var appendTime = new Date()}
-
- var c = cache,
- r = c.row,
- n= c.normalized,
- totalRows = n.length,
- checkCell = (n[0].length-1),
- tableBody = $(table.tBodies[0]),
- rows = [];
-
- for (var i=0;i < totalRows; i++) {
- rows.push(r[n[i][checkCell]]);
- if(!table.config.appender) {
-
- var o = r[n[i][checkCell]];
- var l = o.length;
- for(var j=0; j < l; j++) {
-
- tableBody[0].appendChild(o[j]);
-
- }
-
- //tableBody.append(r[n[i][checkCell]]);
- }
- }
-
- if(table.config.appender) {
-
- table.config.appender(table,rows);
- }
-
- rows = null;
-
- if(table.config.debug) { benchmark("Rebuilt table:", appendTime); }
-
- //apply table widgets
- applyWidget(table);
-
- // trigger sortend
- setTimeout(function() {
- $(table).trigger("sortEnd");
- },0);
-
- };
-
- function buildHeaders(table) {
-
- if(table.config.debug) { var time = new Date(); }
-
- var meta = ($.metadata) ? true : false, tableHeadersRows = [];
-
- for(var i = 0; i < table.tHead.rows.length; i++) { tableHeadersRows[i]=0; };
-
- $tableHeaders = $("thead th",table);
-
- $tableHeaders.each(function(index) {
-
- this.count = 0;
- this.column = index;
- this.order = formatSortingOrder(table.config.sortInitialOrder);
-
- if(checkHeaderMetadata(this) || checkHeaderOptions(table,index)) this.sortDisabled = true;
-
- if(!this.sortDisabled) {
- $(this).addClass(table.config.cssHeader);
- }
-
- // add cell to headerList
- table.config.headerList[index]= this;
- });
-
- if(table.config.debug) { benchmark("Built headers:", time); log($tableHeaders); }
-
- return $tableHeaders;
-
- };
-
- function checkCellColSpan(table, rows, row) {
- var arr = [], r = table.tHead.rows, c = r[row].cells;
-
- for(var i=0; i < c.length; i++) {
- var cell = c[i];
-
- if ( cell.colSpan > 1) {
- arr = arr.concat(checkCellColSpan(table, headerArr,row++));
- } else {
- if(table.tHead.length == 1 || (cell.rowSpan > 1 || !r[row+1])) {
- arr.push(cell);
- }
- //headerArr[row] = (i+row);
- }
- }
- return arr;
- };
-
- function checkHeaderMetadata(cell) {
- if(($.metadata) && ($(cell).metadata().sorter === false)) { return true; };
- return false;
- }
-
- function checkHeaderOptions(table,i) {
- if((table.config.headers[i]) && (table.config.headers[i].sorter === false)) { return true; };
- return false;
- }
-
- function applyWidget(table) {
- var c = table.config.widgets;
- var l = c.length;
- for(var i=0; i < l; i++) {
-
- getWidgetById(c[i]).format(table);
- }
-
- }
-
- function getWidgetById(name) {
- var l = widgets.length;
- for(var i=0; i < l; i++) {
- if(widgets[i].id.toLowerCase() == name.toLowerCase() ) {
- return widgets[i];
- }
- }
- };
-
- function formatSortingOrder(v) {
-
- if(typeof(v) != "Number") {
- i = (v.toLowerCase() == "desc") ? 1 : 0;
- } else {
- i = (v == (0 || 1)) ? v : 0;
- }
- return i;
- }
-
- function isValueInArray(v, a) {
- var l = a.length;
- for(var i=0; i < l; i++) {
- if(a[i][0] == v) {
- return true;
- }
- }
- return false;
- }
-
- function setHeadersCss(table,$headers, list, css) {
- // remove all header information
- $headers.removeClass(css[0]).removeClass(css[1]);
-
- var h = [];
- $headers.each(function(offset) {
- if(!this.sortDisabled) {
- h[this.column] = $(this);
- }
- });
-
- var l = list.length;
- for(var i=0; i < l; i++) {
- h[list[i][0]].addClass(css[list[i][1]]);
- }
- }
-
- function fixColumnWidth(table,$headers) {
- var c = table.config;
- if(c.widthFixed) {
- var colgroup = $('<colgroup>');
- $("tr:first td",table.tBodies[0]).each(function() {
- colgroup.append($('<col>').css('width',$(this).width()));
- });
- $(table).prepend(colgroup);
- };
- }
-
- function updateHeaderSortCount(table,sortList) {
- var c = table.config, l = sortList.length;
- for(var i=0; i < l; i++) {
- var s = sortList[i], o = c.headerList[s[0]];
- o.count = s[1];
- o.count++;
- }
- }
-
- /* sorting methods */
- function multisort(table,sortList,cache) {
-
- if(table.config.debug) { var sortTime = new Date(); }
-
- var dynamicExp = "var sortWrapper = function(a,b) {", l = sortList.length;
-
- for(var i=0; i < l; i++) {
-
- var c = sortList[i][0];
- var order = sortList[i][1];
- var s = (getCachedSortType(table.config.parsers,c) == "text") ? ((order == 0) ? "sortText" : "sortTextDesc") : ((order == 0) ? "sortNumeric" : "sortNumericDesc");
-
- var e = "e" + i;
-
- dynamicExp += "var " + e + " = " + s + "(a[" + c + "],b[" + c + "]); ";
- dynamicExp += "if(" + e + ") { return " + e + "; } ";
- dynamicExp += "else { ";
- }
-
- // if value is the same keep orignal order
- var orgOrderCol = cache.normalized[0].length - 1;
- dynamicExp += "return a[" + orgOrderCol + "]-b[" + orgOrderCol + "];";
-
- for(var i=0; i < l; i++) {
- dynamicExp += "}; ";
- }
-
- dynamicExp += "return 0; ";
- dynamicExp += "}; ";
-
- eval(dynamicExp);
-
- cache.normalized.sort(sortWrapper);
-
- if(table.config.debug) { benchmark("Sorting on " + sortList.toString() + " and dir " + order+ " time:", sortTime); }
-
- return cache;
- };
-
- function sortText(a,b) {
- return ((a < b) ? -1 : ((a > b) ? 1 : 0));
- };
-
- function sortTextDesc(a,b) {
- return ((b < a) ? -1 : ((b > a) ? 1 : 0));
- };
-
- function sortNumeric(a,b) {
- return a-b;
- };
-
- function sortNumericDesc(a,b) {
- return b-a;
- };
-
- function getCachedSortType(parsers,i) {
- return parsers[i].type;
- };
-
- /* public methods */
- this.construct = function(settings) {
-
- return this.each(function() {
-
- if(!this.tHead || !this.tBodies) return;
-
- var $this, $document,$headers, cache, config, shiftDown = 0, sortOrder;
-
- this.config = {};
-
- config = $.extend(this.config, $.tablesorter.defaults, settings);
-
- // store common expression for speed
- $this = $(this);
-
- // build headers
- $headers = buildHeaders(this);
-
- // try to auto detect column type, and store in tables config
- this.config.parsers = buildParserCache(this,$headers);
-
-
- // build the cache for the tbody cells
- cache = buildCache(this);
-
- // get the css class names, could be done else where.
- var sortCSS = [config.cssDesc,config.cssAsc];
-
- // fixate columns if the users supplies the fixedWidth option
- fixColumnWidth(this);
-
- // apply event handling to headers
- // this is to big, perhaps break it out?
- $headers.click(function(e) {
-
- $this.trigger("sortStart");
-
- var totalRows = ($this[0].tBodies[0] && $this[0].tBodies[0].rows.length) || 0;
-
- if(!this.sortDisabled && totalRows > 0) {
-
-
- // store exp, for speed
- var $cell = $(this);
-
- // get current column index
- var i = this.column;
-
- // get current column sort order
- this.order = this.count++ % 2;
-
- // user only whants to sort on one column
- if(!e[config.sortMultiSortKey]) {
-
- // flush the sort list
- config.sortList = [];
-
- if(config.sortForce != null) {
- var a = config.sortForce;
- for(var j=0; j < a.length; j++) {
- if(a[j][0] != i) {
- config.sortList.push(a[j]);
- }
- }
- }
-
- // add column to sort list
- config.sortList.push([i,this.order]);
-
- // multi column sorting
- } else {
- // the user has clicked on an all ready sortet column.
- if(isValueInArray(i,config.sortList)) {
-
- // revers the sorting direction for all tables.
- for(var j=0; j < config.sortList.length; j++) {
- var s = config.sortList[j], o = config.headerList[s[0]];
- if(s[0] == i) {
- o.count = s[1];
- o.count++;
- s[1] = o.count % 2;
- }
- }
- } else {
- // add column to sort list array
- config.sortList.push([i,this.order]);
- }
- };
- setTimeout(function() {
- //set css for headers
- setHeadersCss($this[0],$headers,config.sortList,sortCSS);
- appendToTable($this[0],multisort($this[0],config.sortList,cache));
- },1);
- // stop normal event by returning false
- return false;
- }
- // cancel selection
- }).mousedown(function() {
- if(config.cancelSelection) {
- this.onselectstart = function() {return false};
- return false;
- }
- });
-
- // apply easy methods that trigger binded events
- $this.bind("update",function() {
-
- // rebuild parsers.
- this.config.parsers = buildParserCache(this,$headers);
-
- // rebuild the cache map
- cache = buildCache(this);
-
- }).bind("sorton",function(e,list) {
-
- $(this).trigger("sortStart");
-
- config.sortList = list;
-
- // update and store the sortlist
- var sortList = config.sortList;
-
- // update header count index
- updateHeaderSortCount(this,sortList);
-
- //set css for headers
- setHeadersCss(this,$headers,sortList,sortCSS);
-
-
- // sort the table and append it to the dom
- appendToTable(this,multisort(this,sortList,cache));
-
- }).bind("appendCache",function() {
-
- appendToTable(this,cache);
-
- }).bind("applyWidgetId",function(e,id) {
-
- getWidgetById(id).format(this);
-
- }).bind("applyWidgets",function() {
- // apply widgets
- applyWidget(this);
- });
-
- if($.metadata && ($(this).metadata() && $(this).metadata().sortlist)) {
- config.sortList = $(this).metadata().sortlist;
- }
- // if user has supplied a sort list to constructor.
- if(config.sortList.length > 0) {
- $this.trigger("sorton",[config.sortList]);
- }
-
- // apply widgets
- applyWidget(this);
- });
- };
-
- this.addParser = function(parser) {
- var l = parsers.length, a = true;
- for(var i=0; i < l; i++) {
- if(parsers[i].id.toLowerCase() == parser.id.toLowerCase()) {
- a = false;
- }
- }
- if(a) { parsers.push(parser); };
- };
-
- this.addWidget = function(widget) {
- widgets.push(widget);
- };
-
- this.formatFloat = function(s) {
- var i = parseFloat(s);
- return (isNaN(i)) ? 0 : i;
- };
- this.formatInt = function(s) {
- var i = parseInt(s);
- return (isNaN(i)) ? 0 : i;
- };
-
- this.isDigit = function(s,config) {
- var DECIMAL = '\\' + config.decimal;
- var exp = '/(^[+]?0(' + DECIMAL +'0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)' + DECIMAL +'(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*' + DECIMAL +'0+$)/';
- return RegExp(exp).test($.trim(s));
- };
-
- this.clearTableBody = function(table) {
- if($.browser.msie) {
- function empty() {
- while ( this.firstChild ) this.removeChild( this.firstChild );
- }
- empty.apply(table.tBodies[0]);
- } else {
- table.tBodies[0].innerHTML = "";
- }
- };
- }
- });
-
- // extend plugin scope
- $.fn.extend({
- tablesorter: $.tablesorter.construct
- });
-
- var ts = $.tablesorter;
-
- // add default parsers
- ts.addParser({
- id: "text",
- is: function(s) {
- return true;
- },
- format: function(s) {
- return $.trim(s.toLowerCase());
- },
- type: "text"
- });
-
- ts.addParser({
- id: "digit",
- is: function(s,table) {
- var c = table.config;
- return $.tablesorter.isDigit(s,c);
- },
- format: function(s) {
- return $.tablesorter.formatFloat(s);
- },
- type: "numeric"
- });
-
- ts.addParser({
- id: "currency",
- is: function(s) {
- return /^[£$€?.]/.test(s);
- },
- format: function(s) {
- return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),""));
- },
- type: "numeric"
- });
-
- ts.addParser({
- id: "ipAddress",
- is: function(s) {
- return /^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s);
- },
- format: function(s) {
- var a = s.split("."), r = "", l = a.length;
- for(var i = 0; i < l; i++) {
- var item = a[i];
- if(item.length == 2) {
- r += "0" + item;
- } else {
- r += item;
- }
- }
- return $.tablesorter.formatFloat(r);
- },
- type: "numeric"
- });
-
- ts.addParser({
- id: "url",
- is: function(s) {
- return /^(https?|ftp|file):\/\/$/.test(s);
- },
- format: function(s) {
- return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),''));
- },
- type: "text"
- });
-
- ts.addParser({
- id: "isoDate",
- is: function(s) {
- return /^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s);
- },
- format: function(s) {
- return $.tablesorter.formatFloat((s != "") ? new Date(s.replace(new RegExp(/-/g),"/")).getTime() : "0");
- },
- type: "numeric"
- });
-
- ts.addParser({
- id: "percent",
- is: function(s) {
- return /\%$/.test($.trim(s));
- },
- format: function(s) {
- return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""));
- },
- type: "numeric"
- });
-
- ts.addParser({
- id: "usLongDate",
- is: function(s) {
- return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/));
- },
- format: function(s) {
- return $.tablesorter.formatFloat(new Date(s).getTime());
- },
- type: "numeric"
- });
-
- ts.addParser({
- id: "shortDate",
- is: function(s) {
- return /\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s);
- },
- format: function(s,table) {
- var c = table.config;
- s = s.replace(/\-/g,"/");
- if(c.dateFormat == "us") {
- // reformat the string in ISO format
- s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$1/$2");
- } else if(c.dateFormat == "uk") {
- //reformat the string in ISO format
- s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$2/$1");
- } else if(c.dateFormat == "dd/mm/yy" || c.dateFormat == "dd-mm-yy") {
- s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/, "$1/$2/$3");
- }
- return $.tablesorter.formatFloat(new Date(s).getTime());
- },
- type: "numeric"
- });
-
- ts.addParser({
- id: "time",
- is: function(s) {
- return /^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s);
- },
- format: function(s) {
- return $.tablesorter.formatFloat(new Date("2000/01/01 " + s).getTime());
- },
- type: "numeric"
- });
-
-
- ts.addParser({
- id: "metadata",
- is: function(s) {
- return false;
- },
- format: function(s,table,cell) {
- var c = table.config, p = (!c.parserMetadataName) ? 'sortValue' : c.parserMetadataName;
- return $(cell).metadata()[p];
- },
- type: "numeric"
- });
-
- // add default widgets
- ts.addWidget({
- id: "zebra",
- format: function(table) {
- if(table.config.debug) { var time = new Date(); }
- $("tr:visible",table.tBodies[0])
- .filter(':even')
- .removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0])
- .end().filter(':odd')
- .removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);
- if(table.config.debug) { $.tablesorter.benchmark("Applying Zebra widget", time); }
- }
- });
-})(jQuery);
View
555 chap16/jquery/theme/contrast.css
@@ -1,555 +0,0 @@
-/*
- * jQuery UI screen structure and presentation
- * This CSS file was generated by ThemeRoller, a Filament Group Project for jQuery UI
- * Author: Scott Jehl, scott@filamentgroup.com, http://www.filamentgroup.com
- * Visit themeroller.com
-*/
-
-
-
-
-/*UI accordion*/
-.ui-accordion {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- font-family: Trebuchet MS, Arial, sans-serif;
- border-bottom: 1px solid #777777;
-}
-.ui-accordion-group {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- border: 1px solid #777777;
- border-bottom: none;
-}
-.ui-accordion-header {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- cursor: pointer;
- background: #444444 url(images/444444_40x100_textures_02_glass_25.png) 0 50% repeat-x;
-}
-.ui-accordion-header a {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- display: block;
- font-size: 1.1em;
- font-weight: bold;
- text-decoration: none;
- padding: .5em .5em .5em 1.7em;
- color: #eeeeee;
- background: url(images/eeeeee_7x7_arrow_right.gif) .5em 50% no-repeat;
-}
-.ui-accordion-header a:hover {
- background: url(images/ffd40f_7x7_arrow_right.gif) .5em 50% no-repeat;
- color: #ffffff;
-}
-.ui-accordion-header:hover {
- background: #333333 url(images/333333_40x100_textures_02_glass_25.png) 0 50% repeat-x;
- color: #ffffff;
-}
-.selected .ui-accordion-header, .selected .ui-accordion-header:hover {
- background: #a21111 url(images/a21111_40x100_textures_02_glass_35.png) 0 50% repeat-x;
-}
-.selected .ui-accordion-header a, .selected .ui-accordion-header a:hover {
- color: #ffffff;
- background: url(images/ffffff_7x7_arrow_down.gif) .5em 50% no-repeat;
-}
-.ui-accordion-content {
- padding: 1.5em 1.7em;
- background: #ffffff;
- color: #222222;
- font-size: 1.1em;
-}
-
-
-
-
-
-/*UI tabs*/
-.ui-tabs-nav {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- font-family: Trebuchet MS, Arial, sans-serif;
- float: left;
- position: relative;
- z-index: 1;
- border-right: 1px solid #777777;
- bottom: -1px;
-}
-.ui-tabs-nav-item {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- float: left;
- border: 1px solid #777777;
- border-right: none;
-}
-.ui-tabs-nav-item a {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- float: left;
- font-size: 1.1em;
- font-weight: bold;
- text-decoration: none;
- padding: .5em 1.7em;
- color: #eeeeee;
- background: #444444 url(images/444444_40x100_textures_02_glass_25.png) 0 50% repeat-x;
-}
-.ui-tabs-nav-item a:hover {
- background: #333333 url(images/333333_40x100_textures_02_glass_25.png) 0 50% repeat-x;
- color: #ffffff;
-}
-.ui-tabs-selected {
- border-bottom-color: #a21111;
-}
-.ui-tabs-selected a, .ui-tabs-selected a:hover {
- background: #a21111 url(images/a21111_40x100_textures_02_glass_35.png) 0 50% repeat-x;
- color: #ffffff;
-}
-.ui-tabs-panel {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- font-family: Trebuchet MS, Arial, sans-serif;
- clear:left;
- border: 1px solid #777777;
- background: #ffffff;
- color: #222222;
- padding: 1.5em 1.7em;
-}
-.ui-tabs-hide {
- display: none;/* for accessible hiding: position: absolute; left: -99999999px*/;
-}
-
-
-
-
-
-/*slider*/
-.ui-slider {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- font-family: Trebuchet MS, Arial, sans-serif;
- background: #ffffff;
- border: 1px solid #777777;
- height: .8em;
- position: relative;
-}
-.ui-slider-handle {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- position: absolute;
- z-index: 2;
- top: -3px;
- width: 1.2em;
- height: 1.2em;
- background: #a21111 url(images/a21111_40x100_textures_02_glass_35.png) 0 50% repeat-x;
- border: 1px solid #841515;
-}
-.ui-slider-handle:hover {
- background: #333333 url(images/333333_40x100_textures_02_glass_25.png) 0 50% repeat-x;
- border: 1px solid #444444;
-}
-.ui-slider-handle-active, .ui-slider-handle-active:hover {
- background: #333333 url(images/333333_40x100_textures_02_glass_25.png) 0 50% repeat-x;
- border: 1px solid #841515;
-}
-.ui-slider-range {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- height: .8em;
- background: #333333 url(images/333333_40x100_textures_02_glass_25.png) 0 50% repeat-x;
- position: absolute;
- border: 1px solid #777777;
- border-left: 0;
- border-right: 0;
- top: -1px;
- z-index: 1;
-}
-
-
-
-
-
-
-/*dialog*/
-.ui-dialog {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- font-family: Trebuchet MS, Arial, sans-serif;
- background: #ffffff;
- color: #222222;
- border: 4px solid #777777;
- position: relative;
-}
-.ui-dialog-content {
- border: 1px solid #777777;
- background: #ffffff;
- color: #222222;
-}
-.ui-resizable-handle {
- position: absolute;
- font-size: 0.1px;
- z-index: 99999;
-}
-.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: 7px;
- width: 100%;
- top: -5px;
- left: 0px;
-}
-.ui-resizable-s {
- cursor: s-resize;
- height: 7px;
- width: 100%;
- bottom: -5px;
- left: 0px;
-}
-.ui-resizable-e {
- cursor: e-resize;
- width: 7px;
- right: -5px;
- top: 0px;
- height: 100%;
-}
-.ui-resizable-w {
- cursor: w-resize;
- width: 7px;
- left: -5px;
- top: 0px;
- height: 100%;
-}
-.ui-resizable-se {
- cursor: se-resize;
- width: 13px;
- height: 13px;
- right: 0px;
- bottom: 0px;
- background: url(images/222222_11x11_icon_resize_se.gif) no-repeat 0 0;
-}
-.ui-resizable-sw {
- cursor: sw-resize;
- width: 9px;
- height: 9px;
- left: 0px;
- bottom: 0px;
-}
-.ui-resizable-nw {
- cursor: nw-resize;
- width: 9px;
- height: 9px;
- left: 0px;
- top: 0px;
-}
-.ui-resizable-ne {
- cursor: ne-resize;
- width: 9px;
- height: 9px;
- right: 0px;
- top: 0px;
-}
-.ui-dialog-titlebar {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- padding: .5em 1.5em .5em 1em;
- color: #eeeeee;
- background: #444444 url(images/444444_40x100_textures_02_glass_25.png) 0 50% repeat-x;
- border-bottom: 1px solid #777777;
- font-size: 1.1em;
- font-weight: bold;
- position: relative;
-}
-.ui-dialog-title {
-
-}
-.ui-dialog-titlebar-close {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- background: url(images/eeeeee_11x11_icon_close.gif) 0 0 no-repeat;
- position: absolute;
- right: 8px;
- top: .7em;
- width: 11px;
- height: 11px;
- z-index: 100;
-}
-.ui-dialog-titlebar-close-hover, .ui-dialog-titlebar-close:hover {
- background: url(images/ffd40f_11x11_icon_close.gif) 0 0 no-repeat;
-}
-.ui-dialog-titlebar-close:active {
- background: url(images/ffffff_11x11_icon_close.gif) 0 0 no-repeat;
-}
-.ui-dialog-titlebar-close span {
- display: none;
-}
-.ui-dialog-content {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- background: #ffffff;
- color: #222222;
- padding: 1.5em 1.7em;
-}
-.ui-dialog-buttonpane {
- position: absolute;
- bottom: 0;
- width: 100%;
- text-align: left;
- border-top: 1px solid #777777;
- background: ;
-}
-.ui-dialog-buttonpane button {
- margin: .5em 0 .5em 8px;
- color: #eeeeee;
- background: #444444 url(images/444444_40x100_textures_02_glass_25.png) 0 50% repeat-x;
- font-size: 1.1em;
- border: 1px solid #777777;
- cursor: pointer;
- padding: .2em .6em .3em .6em;
- line-height: 1.4em;
-}
-.ui-dialog-buttonpane button:hover {
- color: #ffffff;
- background: #333333 url(images/333333_40x100_textures_02_glass_25.png) 0 50% repeat-x;
- border: 1px solid #444444;
-}
-.ui-dialog-buttonpane button:active {
- color: #ffffff;
- background: #a21111 url(images/a21111_40x100_textures_02_glass_35.png) 0 50% repeat-x;
- border: 1px solid #841515;
-}
-/* This file skins dialog */
-.ui-dialog.ui-draggable .ui-dialog-titlebar,
-.ui-dialog.ui-draggable .ui-dialog-titlebar {
- cursor: move;
-}
-
-
-
-
-
-
-
-/*datepicker*/
-/* Main Style Sheet for jQuery UI date picker */
-.ui-datepicker-div, .ui-datepicker-inline {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- font-family: Trebuchet MS, Arial, sans-serif;
- background: #ffffff;
- font-size: 1.1em;
- border: 4px solid #777777;
- width: 15.5em;
- padding: 2.5em .5em .5em .5em;
- position: relative;
-}
-.ui-datepicker-div {
- z-index: 9999; /*must have*/
- display: none;
- background: #ffffff;
-}
-.ui-datepicker-inline {
- float: left;
- display: block;
-}
-.ui-datepicker-control {
- display: none;
-}
-.ui-datepicker-current {
- display: none;
-}
-.ui-datepicker-next, .ui-datepicker-prev {
- position: absolute;
- left: .5em;
- top: .5em;
- background: #444444 url(images/444444_40x100_textures_02_glass_25.png) 0 50% repeat-x;
-}
-.ui-datepicker-next {
- left: 14.6em;
-}
-.ui-datepicker-next:hover, .ui-datepicker-prev:hover {
- background: #333333 url(images/333333_40x100_textures_02_glass_25.png) 0 50% repeat-x;
-}
-.ui-datepicker-next a, .ui-datepicker-prev a {
- text-indent: -999999px;
- width: 1.3em;
- height: 1.4em;
- display: block;
- font-size: 1em;
- background: url(images/eeeeee_7x7_arrow_left.gif) 50% 50% no-repeat;
- border: 1px solid #777777;
- cursor: pointer;
-}
-.ui-datepicker-next a {
- background: url(images/eeeeee_7x7_arrow_right.gif) 50% 50% no-repeat;
-}
-.ui-datepicker-prev a:hover {
- background: url(images/ffd40f_7x7_arrow_left.gif) 50% 50% no-repeat;
-}
-.ui-datepicker-next a:hover {
- background: url(images/ffd40f_7x7_arrow_right.gif) 50% 50% no-repeat;
-}
-.ui-datepicker-prev a:active {
- background: url(images/ffffff_7x7_arrow_left.gif) 50% 50% no-repeat;
-}
-.ui-datepicker-next a:active {
- background: url(images/ffffff_7x7_arrow_right.gif) 50% 50% no-repeat;
-}
-.ui-datepicker-header select {
- border: 1px solid #777777;
- color: #eeeeee;
- background: #444444;
- font-size: 1em;
- line-height: 1.4em;
- position: absolute;
- top: .5em;
- margin: 0 !important;
-
-}
-.ui-datepicker-header select.ui-datepicker-new-month {
-width: 7em;
-left: 2.2em;
-}
-.ui-datepicker-header select.ui-datepicker-new-year {
-width: 5em;
-left: 9.4em;
-}
-table.ui-datepicker {
- width: 15.5em;
- text-align: right;
-}
-table.ui-datepicker td a {
- padding: .1em .3em .1em 0;
- display: block;
- color: #eeeeee;
- background: #444444 url(images/444444_40x100_textures_02_glass_25.png) 0 50% repeat-x;
- cursor: pointer;
- border: 1px solid #ffffff;
-}
-table.ui-datepicker td a:hover {
- border: 1px solid #444444;
- color: #ffffff;
- background: #333333 url(images/333333_40x100_textures_02_glass_25.png) 0 50% repeat-x;
-}
-table.ui-datepicker td a:active {
- border: 1px solid #841515;
- color: #ffffff;
- background: #a21111 url(images/a21111_40x100_textures_02_glass_35.png) 0 50% repeat-x;
-}
-table.ui-datepicker .ui-datepicker-title-row td {
- padding: .3em 0;
- text-align: center;
- font-size: .9em;
- color: #222222;
- text-transform: uppercase;
- /*border-bottom: 1px solid #777777;*/
-}
-
-table.ui-datepicker .ui-datepicker-title-row td a {
- color: #222222;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-/*
-Generic ThemeRoller Classes
->> Make your jQuery Components ThemeRoller-Compatible!
-*/
-
-/*component global class*/
-.ui-component {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
- font-family: Trebuchet MS, Arial, sans-serif;
- font-size: 1.1em;
-}
-/*component content styles*/
-.ui-component-content {
- border: 1px solid #777777;
- background: #ffffff;
- color: #222222;
-}
-.ui-component-content a {
- color: #222222;
- text-decoration: underline;
-}
-/*component states*/
-.ui-default-state {
- border: 1px solid #777777;
- background: #444444 url(images/444444_40x100_textures_02_glass_25.png) 0 50% repeat-x;
- font-weight: bold;
- color: #eeeeee !important;
-}
-.ui-default-state a {
- color: #eeeeee;
-}
-.ui-default-state:hover, .ui-hover-state {
- border: 1px solid #444444;
- background: #333333 url(images/333333_40x100_textures_02_glass_25.png) 0 50% repeat-x;
- font-weight: bold;
- color: #ffffff !important;
-}
-.ui-hover-state a {
- color: #ffffff;
-}
-.ui-default-state:active, .ui-active-state {
- border: 1px solid #841515;
- background: #a21111 url(images/a21111_40x100_textures_02_glass_35.png) 0 50% repeat-x;
- font-weight: bold;
- color: #ffffff !important;
- outline: none;
-}
-.ui-active-state a {
- color: #ffffff;
- outline: none;
-}
-/*icons*/
-.ui-arrow-right-default {background: url(images/eeeeee_7x7_arrow_right.gif) no-repeat 50% 50%;}
-.ui-arrow-right-default:hover, .ui-arrow-right-hover {background: url(images/ffd40f_7x7_arrow_right.gif) no-repeat 50% 50%;}
-.ui-arrow-right-default:active, .ui-arrow-right-active {background: url(images/ffffff_7x7_arrow_right.gif) no-repeat 50% 50%;}
-.ui-arrow-left-default {background: url(images/eeeeee_7x7_arrow_left.gif) no-repeat 50% 50%;}
-.ui-arrow-left-default:hover, .ui-arrow-left-hover {background: url(images/ffd40f_7x7_arrow_left.gif) no-repeat 50% 50%;}
-.ui-arrow-left-default:active, .ui-arrow-left-active {background: url(images/ffffff_7x7_arrow_left.gif) no-repeat 50% 50%;}
-.ui-arrow-down-default {background: url(images/eeeeee_7x7_arrow_down.gif) no-repeat 50% 50%;}
-.ui-arrow-down-default:hover, .ui-arrow-down-hover {background: url(images/ffd40f_7x7_arrow_down.gif) no-repeat 50% 50%;}
-.ui-arrow-down-default:active, .ui-arrow-down-active {background: url(images/ffffff_7x7_arrow_down.gif) no-repeat 50% 50%;}
-.ui-arrow-up-default {background: url(images/eeeeee_7x7_arrow_up.gif) no-repeat 50% 50%;}
-.ui-arrow-up-default:hover, .ui-arrow-up-hover {background: url(images/ffd40f_7x7_arrow_up.gif) no-repeat 50% 50%;}
-.ui-arrow-up-default:active, .ui-arrow-up-active {background: url(images/ffffff_7x7_arrow_up.gif) no-repeat 50% 50%;}
-.ui-close-default {background: url(images/eeeeee_11x11_icon_close.gif) no-repeat 50% 50%;}
-.ui-close-default:hover, .ui-close-hover {background: url(images/ffd40f_11x11_icon_close.gif) no-repeat 50% 50%;}
-.ui-close-default:active, .ui-close-active {background: url(images/ffffff_11x11_icon_close.gif) no-repeat 50% 50%;}
-.ui-folder-closed-default {background: url(images/eeeeee_11x11_icon_folder_closed.gif) no-repeat 50% 50%;}
-.ui-folder-closed-default:hover, .ui-folder-closed-hover {background: url(images/ffd40f_11x11_icon_folder_closed.gif) no-repeat 50% 50%;}
-.ui-folder-closed-default:active, .ui-folder-closed-active {background: url(images/ffffff_11x11_icon_folder_closed.gif) no-repeat 50% 50%;}
-.ui-folder-open-default {background: url(images/eeeeee_11x11_icon_folder_open.gif) no-repeat 50% 50%;}
-.ui-folder-open-default:hover, .ui-folder-open-hover {background: url(images/ffd40f_11x11_icon_folder_open.gif) no-repeat 50% 50%;}
-.ui-folder-open-default:active, .ui-folder-open-active {background: url(images/ffffff_11x11_icon_folder_open.gif) no-repeat 50% 50%;}
-.ui-doc-default {background: url(images/eeeeee_11x11_icon_doc.gif) no-repeat 50% 50%;}
-.ui-doc-default:hover, .ui-doc-hover {background: url(images/ffd40f_11x11_icon_doc.gif) no-repeat 50% 50%;}
-.ui-doc-default:active, .ui-doc-active {background: url(images/ffffff_11x11_icon_doc.gif) no-repeat 50% 50%;}
-.ui-arrows-leftright-default {background: url(images/eeeeee_11x11_icon_arrows_leftright.gif) no-repeat 50% 50%;}
-.ui-arrows-leftright-default:hover, .ui-arrows-leftright-hover {background: url(images/ffd40f_11x11_icon_arrows_leftright.gif) no-repeat 50% 50%;}
-.ui-arrows-leftright-default:active, .ui-arrows-leftright-active {background: url(images/ffffff_11x11_icon_arrows_leftright.gif) no-repeat 50% 50%;}
-.ui-arrows-updown-default {background: url(images/eeeeee_11x11_icon_arrows_updown.gif) no-repeat 50% 50%;}
-.ui-arrows-updown-default:hover, .ui-arrows-updown-hover {background: url(images/ffd40f_11x11_icon_arrows_updown.gif) no-repeat 50% 50%;}
-.ui-arrows-updown-default:active, .ui-arrows-updown-active {background: url(images/ffffff_11x11_icon_arrows_updown.gif) no-repeat 50% 50%;}
-.ui-minus-default {background: url(images/eeeeee_11x11_icon_minus.gif) no-repeat 50% 50%;}
-.ui-minus-default:hover, .ui-minus-hover {background: url(images/ffd40f_11x11_icon_minus.gif) no-repeat 50% 50%;}
-.ui-minus-default:active, .ui-minus-active {background: url(images/ffffff_11x11_icon_minus.gif) no-repeat 50% 50%;}
-.ui-plus-default {background: url(images/eeeeee_11x11_icon_plus.gif) no-repeat 50% 50%;}
-.ui-plus-default:hover, .ui-plus-hover {background: url(images/ffd40f_11x11_icon_plus.gif) no-repeat 50% 50%;}
-.ui-plus-default:active, .ui-plus-active {background: url(images/ffffff_11x11_icon_plus.gif) no-repeat 50% 50%;}
-/*hidden elements*/
-.ui-hidden {
- display: none;/* for accessible hiding: position: absolute; left: -99999999px*/;
-}
-.ui-accessible-hidden {
- position: absolute; left: -99999999px;
-}
-/*reset styles*/
-.ui-reset {
- /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
-}
-/*clearfix class*/
-.ui-clearfix:after {
- content: ".";
- display: block;
- height: 0;
- clear: both;
- visibility: hidden;
-}
View
39 chap16/jquery/theme/flora/flora.accordion.css
@@ -1,39 +0,0 @@
-.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); }
View
BIN chap16/jquery/theme/flora/i/accordion-left-act.png
Deleted file not rendered
View
BIN chap16/jquery/theme/flora/i/accordion-left-over.png
Deleted file not rendered
View
BIN chap16/jquery/theme/flora/i/accordion-left.png
Deleted file not rendered
View
BIN chap16/jquery/theme/flora/i/accordion-middle-act.png
Deleted file not rendered
View
BIN chap16/jquery/theme/flora/i/accordion-middle-over.png
Deleted file not rendered