trAvis - MANAGER
Edit File: jquery.jInvertScroll.min.js
/* jInvertScroll 0.8.3 custom*/(function(a){'use strict';a.jInvertScroll=function(b,c){function d(){a.each(b,function(b,c){a(c).each(function(){l.push(a(this));var b=a(this).width();m<b&&(m=b)})}),"auto"==h.width&&(h.width=m),"auto"==h.height&&(h.height=m),a("body").css("height",h.height+"px")}function e(){i=a(document).height(),j=a(window).height(),k=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function f(){var b=a(this).scrollTop();e();var c=i-j,d=0;0!=c&&(d=(b/c).toFixed(4));var f=i-h.footer_height-j,g=0;0!=f&&(g=(b/f).toFixed(4)),"function"==typeof h.onScroll&&h.onScroll.call(this,d,g),a.each(l,function(a,b){var d=b.width()-k;if(0>d&&(d=0),1>=g){var e=-1*Math.floor(d*g);b.css("left",e),b.css("top",0)}else{var i=100*(g-1)*h.footer_height/(100*(c/f-1));b.css("left",-1*Math.floor(d)),b.css("top",-i)}})}function g(){a(window).on("scroll resize",f),a([document,window]).on("ready resize",e)}var h=a.extend({width:"auto",height:"auto",onScroll:function(){},footer_height:0},c);if(!("Object"==typeof b&&0<b.length)){var i,j,k,l=[],m=0;return d(),g(),{reinitialize:function(){d(),g()},destroy:function(){a("body").attr("style",""),a(window).off("scroll resize",f),a([document,window]).off("ready resize",e)}}}}})(jQuery);