芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/Ultimate_VC_Addons/assets/min-js/sticky-section2.min.js
!function(a){a(document).ready(function(){function b(){elements=a("div.ult-sticky-anchor"),elements.each(function(){var b=a(this),e=c.scrollTop(),f=b.offset().top,g=c.height(),h=b.find(".ult-sticky"),i=b.parent().width(),j=h.height(),k=0,l=h.data("gutter"),m=h.data("sticky_gutter_class"),n=h.data("sticky_gutter_id"),o=h.data("stick_behaviour"),p=h.data("lr_position"),q=h.data("lr_value"),r=h.data("sticky_customwidth"),s=h.data("sticky_width"),t=h.data("sticky_position"),u=-1;if(m){var v=m.split(" ");jQuery.each(v,function(b,c){k=parseInt(k)+a(c).outerHeight()})}else m="hello";if(n){var w=n.split(" ");jQuery.each(w,function(b,c){k=parseInt(k)+a(c).outerHeight()})}else n="hello2";l||(l=k),"top"==t?e=parseInt(e)+parseInt(l):(e=parseInt(e)+parseInt(g)-parseInt(j)-parseInt(l),f=parseInt(f)),"fullwidth"==s?i="100%":"customwidth"==s&&(i=r);var x={},y="width";x[t]=l,x[y]=i,"stick_permanent"==o&&(x[p]=q);var z={};if(z[t]="",z[y]="","stick_with_scroll"==o||b.hasClass("ult-permanent-flag")||(b.addClass("ult-permanent-flag"),h.addClass("ult-stick").css(x)),"stick_permanent"!=o&&e>f?(u=0,b.hasClass("ult-flag")&&0!=d||(b.addClass("ult-flag"),"fullwidth"==s?(h.addClass("ult-stick-full-width").css(x),b.find(".ult-space").css("height",j),u=1):(h.addClass("ult-stick").css(x),b.find(".ult-space").css("height",j),u=1))):"stick_permanent"!=o&&b.hasClass("ult-flag")&&(b.removeClass("ult-flag"),"fullwidth"==s?(h.removeClass("ult-stick-full-width").css(z),b.find(".ult-space").css("height","")):(h.removeClass("ult-stick").css(z),b.find(".ult-space").css("height",""))),"bottom"==t&&1!=u&&!b.hasClass("ult-permanent-flag")){var A=-1,B="";e>f?(A=0,B=e-f):B=0,j=e>f?h.height():b.find(".ult-space").height(),0>=j-B?j=0:j-=B,b.find(".ult-space").css("height",j)}}),d=-1}var c=a(window),d=-1;c.resize(function(){d=0,b()}),c.bind("scroll",function(){b()}),b()})}(jQuery);