diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-06-05 13:28:57 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-06-05 13:28:57 +1200 |
commit | a31c183a0fb19e68a3536f7fab55adbbaa1ce61c (patch) | |
tree | fedcfe946ba54e5ae8658a11f1131ef4ba4da988 /pathod/static/jquery.localscroll-min.js | |
parent | 375d7c9741c1debbc55bf21c864c514d307691ef (diff) | |
download | mitmproxy-a31c183a0fb19e68a3536f7fab55adbbaa1ce61c.tar.gz mitmproxy-a31c183a0fb19e68a3536f7fab55adbbaa1ce61c.tar.bz2 mitmproxy-a31c183a0fb19e68a3536f7fab55adbbaa1ce61c.zip |
Ditch pathod static assets
Diffstat (limited to 'pathod/static/jquery.localscroll-min.js')
-rw-r--r-- | pathod/static/jquery.localscroll-min.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/pathod/static/jquery.localscroll-min.js b/pathod/static/jquery.localscroll-min.js deleted file mode 100644 index fa583a45..00000000 --- a/pathod/static/jquery.localscroll-min.js +++ /dev/null @@ -1,9 +0,0 @@ -/** - * jQuery.LocalScroll - Animated scrolling navigation, using anchors. - * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com - * Dual licensed under MIT and GPL. - * Date: 3/11/2009 - * @author Ariel Flesler - * @version 1.2.7 - **/ -;(function($){var l=location.href.replace(/#.*/,'');var g=$.localScroll=function(a){$('body').localScroll(a)};g.defaults={duration:1e3,axis:'y',event:'click',stop:true,target:window,reset:true};g.hash=function(a){if(location.hash){a=$.extend({},g.defaults,a);a.hash=false;if(a.reset){var e=a.duration;delete a.duration;$(a.target).scrollTo(0,a);a.duration=e}i(0,location,a)}};$.fn.localScroll=function(b){b=$.extend({},g.defaults,b);return b.lazy?this.bind(b.event,function(a){var e=$([a.target,a.target.parentNode]).filter(d)[0];if(e)i(a,e,b)}):this.find('a,area').filter(d).bind(b.event,function(a){i(a,this,b)}).end().end();function d(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,'')==l&&(!b.filter||$(this).is(b.filter))}};function i(a,e,b){var d=e.hash.slice(1),f=document.getElementById(d)||document.getElementsByName(d)[0];if(!f)return;if(a)a.preventDefault();var h=$(b.target);if(b.lock&&h.is(':animated')||b.onBefore&&b.onBefore.call(b,a,f,h)===false)return;if(b.stop)h.stop(true);if(b.hash){var j=f.id==d?'id':'name',k=$('<a> </a>').attr(j,d).css({position:'absolute',top:$(window).scrollTop(),left:$(window).scrollLeft()});f[j]='';$('body').prepend(k);location=e.hash;k.remove();f[j]=d}h.scrollTo(f,b).trigger('notify.serialScroll',[f])}})(jQuery);
\ No newline at end of file |