old-sites/c2016/assets/js/jquery.scrolly.min.js

24 lines
1.4 KiB
JavaScript
Raw Permalink Normal View History

2019-11-22 17:57:53 +00:00
/* jquery.scrolly v1.0.0-dev | (c) n33 | n33.co @n33co | MIT */
(function(e){function u(s,o){var u,a,f;if((u=e(s))[t]==0)return n;a=u[i]()[r];switch(o.anchor){case"middle":f=a-(e(window).height()-u.outerHeight())/2;break;default:case r:f=Math.max(a,0)}return typeof o[i]=="function"?f-=o[i]():f-=o[i],f}var t="length",n=null,r="top",i="offset",s="click.scrolly",o=e(window);e.fn.scrolly=function(i){var o,a,f,l,c=e(this);if(this[t]==0)return c;if(this[t]>1){for(o=0;o<this[t];o++)e(this[o]).scrolly(i);return c}l=n,f=c.attr("href");if(f.charAt(0)!="#"||f[t]<2)return c;a=jQuery.extend({anchor:r,easing:"swing",offset:0,parent:e("body,html"),pollOnce:!1,speed:1e3},i),a.pollOnce&&(l=u(f,a)),c.off(s).on(s,function(e){var t=l!==n?l:u(f,a);t!==n&&(e.preventDefault(),a.parent.stop().animate({scrollTop:t},a.speed,a.easing))})}})(jQuery);
/*
FILE ARCHIVED ON 20:43:33 Mar 21, 2016 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 17:35:23 Nov 22, 2019.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/*
playback timings (ms):
exclusion.robots: 0.267
PetaboxLoader3.datanode: 220.425 (4)
load_resource: 64.783
esindex: 0.016
RedisCDXSource: 1.661
LoadShardBlock: 614.448 (3)
exclusion.robots.policy: 0.251
PetaboxLoader3.resolve: 444.757 (2)
CDXLines.iter: 15.812 (3)
captures_list: 635.672
*/