summaryrefslogtreecommitdiff
path: root/website/static/js/jquery.scrolly.min.js
diff options
context:
space:
mode:
authorkomalsheth2862016-09-08 10:44:04 +0530
committerkomalsheth2862016-09-08 10:44:04 +0530
commit95bb4b3c871732f354132fc1571a00b0acbf68ac (patch)
tree3c21f0883cbecaffc1eee011bfdb352423b7af6d /website/static/js/jquery.scrolly.min.js
downloadSciPy2016-95bb4b3c871732f354132fc1571a00b0acbf68ac.tar.gz
SciPy2016-95bb4b3c871732f354132fc1571a00b0acbf68ac.tar.bz2
SciPy2016-95bb4b3c871732f354132fc1571a00b0acbf68ac.zip
First Commit
Diffstat (limited to 'website/static/js/jquery.scrolly.min.js')
-rw-r--r--website/static/js/jquery.scrolly.min.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/website/static/js/jquery.scrolly.min.js b/website/static/js/jquery.scrolly.min.js
new file mode 100644
index 0000000..947194e
--- /dev/null
+++ b/website/static/js/jquery.scrolly.min.js
@@ -0,0 +1,2 @@
+/* jquery.scrolly v1.0.0-dev | (c) @ajlkn | MIT licensed */
+(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); \ No newline at end of file