diff options
Diffstat (limited to '')
-rw-r--r-- | template-common/lib/plugins/jquery.dimensions.js | 119 | ||||
-rw-r--r-- | template-common/lib/plugins/jquery.dimensions.packed.js | 1 |
2 files changed, 0 insertions, 120 deletions
diff --git a/template-common/lib/plugins/jquery.dimensions.js b/template-common/lib/plugins/jquery.dimensions.js deleted file mode 100644 index 0b2649402..000000000 --- a/template-common/lib/plugins/jquery.dimensions.js +++ /dev/null @@ -1,119 +0,0 @@ -/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net) - * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) - * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. - * - * $LastChangedDate: 2008-09-25T15:10:39.280308Z $ - * $Rev: 6427 $ - * - * Version: 1.2 - * - * Requires: jQuery 1.2+ - */ - -(function($){ - -$.dimensions = { - version: '1.2' -}; - -// Create innerHeight, innerWidth, outerHeight and outerWidth methods -$.each( [ 'Height', 'Width' ], function(i, name){ - - // innerHeight and innerWidth - $.fn[ 'inner' + name ] = function() { - if (!this[0]) return; - - var torl = name == 'Height' ? 'Top' : 'Left', // top or left - borr = name == 'Height' ? 'Bottom' : 'Right'; // bottom or right - - return this.is(':visible') ? this[0]['client' + name] : num( this, name.toLowerCase() ) + num(this, 'padding' + torl) + num(this, 'padding' + borr); - }; - - // outerHeight and outerWidth - $.fn[ 'outer' + name ] = function(options) { - if (!this[0]) return; - - var torl = name == 'Height' ? 'Top' : 'Left', // top or left - borr = name == 'Height' ? 'Bottom' : 'Right'; // bottom or right - - options = $.extend({ margin: false }, options || {}); - - var val = this.is(':visible') ? - this[0]['offset' + name] : - num( this, name.toLowerCase() ) - + num(this, 'border' + torl + 'Width') + num(this, 'border' + borr + 'Width') - + num(this, 'padding' + torl) + num(this, 'padding' + borr); - - return val + (options.margin ? (num(this, 'margin' + torl) + num(this, 'margin' + borr)) : 0); - }; -}); - -// Create scrollLeft and scrollTop methods -$.each( ['Left', 'Top'], function(i, name) { - $.fn[ 'scroll' + name ] = function(val) { - if (!this[0]) return; - - return val != undefined ? - - // Set the scroll offset - this.each(function() { - this == window || this == document ? - window.scrollTo( - name == 'Left' ? val : $(window)[ 'scrollLeft' ](), - name == 'Top' ? val : $(window)[ 'scrollTop' ]() - ) : - this[ 'scroll' + name ] = val; - }) : - - // Return the scroll offset - this[0] == window || this[0] == document ? - self[ (name == 'Left' ? 'pageXOffset' : 'pageYOffset') ] || - $.boxModel && document.documentElement[ 'scroll' + name ] || - document.body[ 'scroll' + name ] : - this[0][ 'scroll' + name ]; - }; -}); - -$.fn.extend({ - position: function() { - var left = 0, top = 0, elem = this[0], offset, parentOffset, offsetParent, results; - - if (elem) { - // Get *real* offsetParent - offsetParent = this.offsetParent(); - - // Get correct offsets - offset = this.offset(); - parentOffset = offsetParent.offset(); - - // Subtract element margins - offset.top -= num(elem, 'marginTop'); - offset.left -= num(elem, 'marginLeft'); - - // Add offsetParent borders - parentOffset.top += num(offsetParent, 'borderTopWidth'); - parentOffset.left += num(offsetParent, 'borderLeftWidth'); - - // Subtract the two offsets - results = { - top: offset.top - parentOffset.top, - left: offset.left - parentOffset.left - }; - } - - return results; - }, - - offsetParent: function() { - var offsetParent = this[0].offsetParent; - while ( offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && $.css(offsetParent, 'position') == 'static') ) - offsetParent = offsetParent.offsetParent; - return $(offsetParent); - } -}); - -function num(el, prop) { - return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0; -}; - -})(jQuery);
\ No newline at end of file diff --git a/template-common/lib/plugins/jquery.dimensions.packed.js b/template-common/lib/plugins/jquery.dimensions.packed.js deleted file mode 100644 index 79cb5a099..000000000 --- a/template-common/lib/plugins/jquery.dimensions.packed.js +++ /dev/null @@ -1 +0,0 @@ -eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(5($){$.19={P:\'1.2\'};$.u([\'j\',\'w\'],5(i,d){$.q[\'O\'+d]=5(){p(!3[0])6;g a=d==\'j\'?\'s\':\'m\',e=d==\'j\'?\'D\':\'C\';6 3.B(\':y\')?3[0][\'L\'+d]:4(3,d.x())+4(3,\'n\'+a)+4(3,\'n\'+e)};$.q[\'I\'+d]=5(b){p(!3[0])6;g c=d==\'j\'?\'s\':\'m\',e=d==\'j\'?\'D\':\'C\';b=$.F({t:Z},b||{});g a=3.B(\':y\')?3[0][\'8\'+d]:4(3,d.x())+4(3,\'E\'+c+\'w\')+4(3,\'E\'+e+\'w\')+4(3,\'n\'+c)+4(3,\'n\'+e);6 a+(b.t?(4(3,\'t\'+c)+4(3,\'t\'+e)):0)}});$.u([\'m\',\'s\'],5(i,b){$.q[\'l\'+b]=5(a){p(!3[0])6;6 a!=W?3.u(5(){3==h||3==r?h.V(b==\'m\'?a:$(h)[\'U\'](),b==\'s\'?a:$(h)[\'T\']()):3[\'l\'+b]=a}):3[0]==h||3[0]==r?S[(b==\'m\'?\'R\':\'Q\')]||$.N&&r.M[\'l\'+b]||r.A[\'l\'+b]:3[0][\'l\'+b]}});$.q.F({z:5(){g a=0,f=0,o=3[0],8,9,7,v;p(o){7=3.7();8=3.8();9=7.8();8.f-=4(o,\'K\');8.k-=4(o,\'J\');9.f+=4(7,\'H\');9.k+=4(7,\'Y\');v={f:8.f-9.f,k:8.k-9.k}}6 v},7:5(){g a=3[0].7;G(a&&(!/^A|10$/i.16(a.15)&&$.14(a,\'z\')==\'13\'))a=a.7;6 $(a)}});5 4(a,b){6 12($.11(a.17?a[0]:a,b,18))||0}})(X);',62,72,'|||this|num|function|return|offsetParent|offset|parentOffset|||||borr|top|var|window||Height|left|scroll|Left|padding|elem|if|fn|document|Top|margin|each|results|Width|toLowerCase|visible|position|body|is|Right|Bottom|border|extend|while|borderTopWidth|outer|marginLeft|marginTop|client|documentElement|boxModel|inner|version|pageYOffset|pageXOffset|self|scrollTop|scrollLeft|scrollTo|undefined|jQuery|borderLeftWidth|false|html|curCSS|parseInt|static|css|tagName|test|jquery|true|dimensions'.split('|'),0,{}))
\ No newline at end of file |