OLD | NEW |
1 /*! | 1 /*! |
2 * jQuery JavaScript Library v1.4.3 | 2 * jQuery JavaScript Library v1.4.3 |
3 * http://jquery.com/ | 3 * http://jquery.com/ |
4 * | 4 * |
5 * Copyright 2010, John Resig | 5 * Copyright 2010, John Resig |
6 * Dual licensed under the MIT or GPL Version 2 licenses. | 6 * Dual licensed under the MIT or GPL Version 2 licenses. |
7 * http://jquery.org/license | 7 * http://jquery.org/license |
8 * | 8 * |
9 * Includes Sizzle.js | 9 * Includes Sizzle.js |
10 * http://sizzlejs.com/ | 10 * http://sizzlejs.com/ |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||0),left:d.left+(f.pageXOffs
et||c.support.boxModel&&h.scrollLeft||b.scrollLeft)-(h.clientLeft||b.clientLeft|
|0)}}:function(a){var b=this[0];if(a)return this.each(function(s){c.offset.setOf
fset(this,a,s)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body
)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,e=b.ow
nerDocument,f,h=e.documentElement,k=e.body;f=(e=e.defaultView)?e.getComputedStyl
e(b,null):b.currentStyle; | 157 h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||0),left:d.left+(f.pageXOffs
et||c.support.boxModel&&h.scrollLeft||b.scrollLeft)-(h.clientLeft||b.clientLeft|
|0)}}:function(a){var b=this[0];if(a)return this.each(function(s){c.offset.setOf
fset(this,a,s)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body
)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,e=b.ow
nerDocument,f,h=e.documentElement,k=e.body;f=(e=e.defaultView)?e.getComputedStyl
e(b,null):b.currentStyle; |
158 for(var l=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==k&&b!==h;){if(c.offse
t.supportsFixedPosition&&f.position==="fixed")break;f=e?e.getComputedStyle(b,nul
l):b.currentStyle;l-=b.scrollTop;n-=b.scrollLeft;if(b===d){l+=b.offsetTop;n+=b.o
ffsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells
&&vb.test(b.nodeName))){l+=parseFloat(f.borderTopWidth)||0;n+=parseFloat(f.borde
rLeftWidth)||0}d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible
&&f.overflow!=="visible"){l+= | 158 for(var l=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==k&&b!==h;){if(c.offse
t.supportsFixedPosition&&f.position==="fixed")break;f=e?e.getComputedStyle(b,nul
l):b.currentStyle;l-=b.scrollTop;n-=b.scrollLeft;if(b===d){l+=b.offsetTop;n+=b.o
ffsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells
&&vb.test(b.nodeName))){l+=parseFloat(f.borderTopWidth)||0;n+=parseFloat(f.borde
rLeftWidth)||0}d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible
&&f.overflow!=="visible"){l+= |
159 parseFloat(f.borderTopWidth)||0;n+=parseFloat(f.borderLeftWidth)||0}f=f}if(f.pos
ition==="relative"||f.position==="static"){l+=k.offsetTop;n+=k.offsetLeft}if(c.o
ffset.supportsFixedPosition&&f.position==="fixed"){l+=Math.max(h.scrollTop,k.scr
ollTop);n+=Math.max(h.scrollLeft,k.scrollLeft)}return{top:l,left:n}};c.offset={i
nitialize:function(){var a=u.body,b=u.createElement("div"),d,e,f,h=parseFloat(c.
css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin
:0,border:0,width:"1px", | 159 parseFloat(f.borderTopWidth)||0;n+=parseFloat(f.borderLeftWidth)||0}f=f}if(f.pos
ition==="relative"||f.position==="static"){l+=k.offsetTop;n+=k.offsetLeft}if(c.o
ffset.supportsFixedPosition&&f.position==="fixed"){l+=Math.max(h.scrollTop,k.scr
ollTop);n+=Math.max(h.scrollLeft,k.scrollLeft)}return{top:l,left:n}};c.offset={i
nitialize:function(){var a=u.body,b=u.createElement("div"),d,e,f,h=parseFloat(c.
css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin
:0,border:0,width:"1px", |
160 height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;to
p:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div>
</div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px sol
id #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td
></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChil
d;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;th
is.doesAddBorderForTableAndCells= | 160 height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;to
p:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div>
</div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px sol
id #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td
></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChil
d;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;th
is.doesAddBorderForTableAndCells= |
161 f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPo
sition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.styl
e.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowN
otVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h
;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.off
setTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBo
dyOffset){b+=parseFloat(c.css(a, | 161 f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPo
sition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.styl
e.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowN
otVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h
;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.off
setTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBo
dyOffset){b+=parseFloat(c.css(a, |
162 "marginTop"))||0;d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},s
etOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.posit
ion="relative";var f=c(a),h=f.offset(),k=c.css(a,"top"),l=c.css(a,"left"),n=e===
"absolute"&&c.inArray("auto",[k,l])>-1;e={};var s={};if(n)s=f.position();k=n?s.t
op:parseInt(k,10)||0;l=n?s.left:parseInt(l,10)||0;if(c.isFunction(b))b=b.call(a,
d,h);if(b.top!=null)e.top=b.top-h.top+k;if(b.left!=null)e.left=b.left-h.left+l;"
using"in b?b.using.call(a, | 162 "marginTop"))||0;d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},s
etOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.posit
ion="relative";var f=c(a),h=f.offset(),k=c.css(a,"top"),l=c.css(a,"left"),n=e===
"absolute"&&c.inArray("auto",[k,l])>-1;e={};var s={};if(n)s=f.position();k=n?s.t
op:parseInt(k,10)||0;l=n?s.left:parseInt(l,10)||0;if(c.isFunction(b))b=b.call(a,
d,h);if(b.top!=null)e.top=b.top-h.top+k;if(b.left!=null)e.left=b.left-h.left+l;"
using"in b?b.using.call(a, |
163 e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=thi
s[0],b=this.offsetParent(),d=this.offset(),e=Fa.test(b[0].nodeName)?{top:0,left:
0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.cs
s(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+
=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left
-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offs
etParent||u.body;a&&!Fa.test(a.nodeName)&& | 163 e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=thi
s[0],b=this.offsetParent(),d=this.offset(),e=Fa.test(b[0].nodeName)?{top:0,left:
0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.cs
s(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+
=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left
-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offs
etParent||u.body;a&&!Fa.test(a.nodeName)&& |
164 c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","T
op"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)re
turn null;if(e!==A)return this.each(function(){if(h=ea(this))h.scrollTo(!a?e:c(h
).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=ea(f))?"page
XOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.doc
umentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a
,b){var d=b.toLowerCase(); | 164 c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","T
op"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)re
turn null;if(e!==A)return this.each(function(){if(h=ea(this))h.scrollTo(!a?e:c(h
).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=ea(f))?"page
XOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.doc
umentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a
,b){var d=b.toLowerCase(); |
165 c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding"))
:null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"
margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?
null:this;if(c.isFunction(e))return this.each(function(h){var k=c(this);k[d](e.c
all(this,h,k[d]()))});return c.isWindow(f)?f.document.compatMode==="CSS1Compat"&
&f.document.documentElement["client"+b]||f.document.body["client"+b]:f.nodeType=
==9?Math.max(f.documentElement["client"+ | 165 c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding"))
:null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"
margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?
null:this;if(c.isFunction(e))return this.each(function(h){var k=c(this);k[d](e.c
all(this,h,k[d]()))});return c.isWindow(f)?f.document.compatMode==="CSS1Compat"&
&f.document.documentElement["client"+b]||f.document.body["client"+b]:f.nodeType=
==9?Math.max(f.documentElement["client"+ |
166 b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documen
tElement["offset"+b]):e===A?parseFloat(c.css(f,d)):this.css(d,typeof e==="string
"?e:e+"px")}})})(window); | 166 b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documen
tElement["offset"+b]):e===A?parseFloat(c.css(f,d)):this.css(d,typeof e==="string
"?e:e+"px")}})})(window); |
OLD | NEW |