-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathcombined.min.js
More file actions
executable file
·7 lines (7 loc) · 3.26 KB
/
combined.min.js
File metadata and controls
executable file
·7 lines (7 loc) · 3.26 KB
1
2
3
4
5
6
7
(function(e,m,h,c){e.fn.sonar=function(a,b){"boolean"===typeof a&&(b=a,a=c);return e.sonar(this[0],a,b)};var b=h.body,d=e(m),n=function(a,d,n){if(a){b||(b=h.body);var e=a,p=0,l=b.offsetHeight,k=m.innerHeight||h.documentElement.clientHeight||b.clientHeight||0,f=h.documentElement.scrollTop||m.pageYOffset||b.scrollTop||0,g=a.offsetHeight||0;if(!a.sonarElemTop||a.sonarBodyHeight!==l){if(e.offsetParent){do p+=e.offsetTop;while(e=e.offsetParent)}a.sonarElemTop=p;a.sonarBodyHeight=l}d=d===c?0:d;return!(a.sonarElemTop+
(n?0:g)<f-d)&&!(a.sonarElemTop+(n?g:0)>f+k+d)}},k={},q=0,f,r=function(){f&&clearTimeout(f);f=setTimeout(function(){var a,b,d,c,f,l,g;for(d in k)for(b=k[d],l=0,g=b.length;l<g;l++)c=b[l],a=c.elem,f=n(a,c.px,c.full),("scrollout"===d?!f:f)?c.tr||(a["_"+d]?(e(a).triggerHandler(d),c.tr=1):(b.splice(l,1),l--,g--)):c.tr=0},0)},g=function(a,b){var c=b.px,f=b.full,g=b.evt,l=n(a,c,f),h=0;a["_"+g]=1;if("scrollout"===g?!l:l)setTimeout(function(){e(a).triggerHandler("scrollout"===g?"scrollout":"scrollin")},0),
h=1;k[g].push({elem:a,px:c,full:f,tr:h});q||(d.bind("scroll",r),q=1)};e.sonar=n;k.scrollin=[];e.event.special.scrollin={add:function(a){a=a.data||{};this.scrollin||g(this,{px:a.distance,full:a.full,evt:"scrollin"})},remove:function(a){this._scrollin=0}};k.scrollout=[];e.event.special.scrollout={add:function(a){a=a.data||{};this.scrollout||g(this,{px:a.distance,full:a.full,evt:"scrollout"})},remove:function(a){this._scrollout=0}}})(jQuery,window,document);var BJLL=BJLL||{};
(function(e){function m(){var c=200;"undefined"!=typeof BJLL.threshold&&(c=parseInt(BJLL.threshold));e(".lazy-hidden").not(".data-lazy-ready").one("scrollin.bj_lazy_load",{distance:c},function(){var b=e(this),d=b.attr("data-lazy-type");if("image"==d){d=b.attr("data-lazy-src");if("yes"==BJLL.load_responsive||"yes"==BJLL.load_hidpi){var c=document.createElement("a");c.href=b.attr("data-lazy-src");c.hostname.length&&c.hostname!=window.location.hostname||(d=parseInt(b.css("width")),1<window.devicePixelRatio&&
"yes"==BJLL.load_hidpi&&(d=Math.ceil(window.devicePixelRatio*d)),c=b.attr("data-lazy-src"),"undefined"!=typeof BJLL.site_url&&"undefined"!=typeof BJLL.network_site_url&&(c=c.replace(BJLL.site_url,BJLL.network_site_url)),d=BJLL.thumb_base+encodeURIComponent(c)+"&w="+d)}b.hide().attr("src",d).removeClass("lazy-hidden").fadeIn()}else"iframe"==d?b.replaceWith(h(b.attr("data-lazy-src"))):"twitter"==d&&(b.replaceWith(h(b.attr("data-lazy-src"))),"undefined"!==typeof twttr&&twttr.widgets.load())}).addClass("data-lazy-ready")}
function h(c){var b,d,e,k,h,f=0,m=0;k="";var g=[];if(!c)return c;c+="";do b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(f++)),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(f++)),k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(f++)),h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(f++)),e=b<<18|d<<12|k<<6|h,b=e>>16&255,d=e>>8&255,e&=255,64==
k?g[m++]=String.fromCharCode(b):64==h?g[m++]=String.fromCharCode(b,d):g[m++]=String.fromCharCode(b,d,e);while(f<c.length);return k=g.join("")}e(document).on("ready",m);if("yes"==BJLL.infinite_scroll)e(window).on("scroll",m);e(window).on("resize",function(){e(document).trigger("scroll")})})(jQuery);