- commit
- 1f7ffff72c880ef09472db496e6a471726443e60
- parent
- cc3f0eeacaa5a50d3831c4540bc5e64a5196fb9b
- Author
- leaf corcoran <leafot@gmail.com>
- Date
- 2013-11-16 07:20
rebuild
Diffstat
| M | jquery.sticky-kit.js | 2 | +- |
| M | jquery.sticky-kit.min.js | 2 | +- |
2 files changed, 2 insertions, 2 deletions
diff --git a/jquery.sticky-kit.js b/jquery.sticky-kit.js
@@ -1,6 +1,6 @@ 1 1 // Generated by CoffeeScript 1.6.3 2 2 /**3 -1 @license Sticky-kit v1.0.1 | WTFPL | Leaf Corcoran 2013 | http://leafo.net-1 3 @license Sticky-kit v1.0.2 | WTFPL | Leaf Corcoran 2013 | http://leafo.net 4 4 */ 5 5 6 6
diff --git a/jquery.sticky-kit.min.js b/jquery.sticky-kit.min.js
@@ -1,5 +1,5 @@ 1 1 /*2 -1 Sticky-kit v1.0.1 | WTFPL | Leaf Corcoran 2013 | http://leafo.net-1 2 Sticky-kit v1.0.2 | WTFPL | Leaf Corcoran 2013 | http://leafo.net 3 3 */ 4 4 (function(){var b,q;b=this.jQuery;q=b(window);b.fn.stick_in_parent=function(e){var u,m,f,r,B,l,C;null==e&&(e={});r=e.sticky_class;u=e.inner_scrolling;f=e.parent;m=e.offset_top;null==m&&(m=0);null==f&&(f=void 0);null==u&&(u=!0);null==r&&(r="is_stuck");B=function(a,e,l,v,w,n,s){var t,z,h,x,c,d,A,y,g,k;d=a.parent();null!=f&&(d=d.closest(f));if(!d.length)throw"failed to find stick parent";h=!1;g=b("<div />");A=function(){var c,b;c=parseInt(d.css("border-top-width"),10);b=parseInt(d.css("padding-top"), 5 5 10);e=parseInt(d.css("padding-bottom"),10);l=d.offset().top+c+b;v=d.height();c=h?(h=!1,a.insertAfter(g).css({position:"",top:"",width:""}),g.detach(),!0):void 0;w=a.offset().top-parseInt(a.css("margin-top"),10)-m;console.log("setting top",w);n=a.outerHeight(!0);s=a.css("float");g.css({width:a.outerWidth(!0),height:n,display:a.css("display"),"vertical-align":a.css("vertical-align"),float:s});if(c)return k()};A();if(n!==v)return t=!1,x=void 0,c=m,k=function(){var b,k,p,f;p=q.scrollTop();null!=x&&(k=