/*
 * jQuery-pin 1.0.0
 * http://github.com/fordlee404/jquery-pin
 */
!function(a){"use strict";return a.fn.pin=function(b){var c,d,e,f,g;return b=b||{pinClass:"jq-pinned"},d=this,e=a(window),c=null,f=!1,function(){var a,e;return e=d.outerWidth(),a=d.outerHeight(),d.wrap('<div style="display:block;"></div>'),c=d.parent(),b.top=d.offset().top}(),g=function(){var a,g,h;if(g=e.scrollTop(),(g===b.top||g>b.top)&&!f)h=d.outerWidth(),a=d.outerHeight(),c.css("max-width",h),c.css("height",a),d.addClass(b.pinClass),f=!0;else{if(!(g===b.top||g<b.top)||!f)return!1;d.removeClass(b.pinClass),f=!1}},e.bind("scroll",g),this}}(jQuery);
/*
 * jQuery-pin 
 * http://github.com/fordlee404/jquery-pin
 */
!function(a){"use strict";return a.fn.pin=function(b){var c,d,e,f,g,h;return g={},g.pinClass=(null!=b?b.pinClass:void 0)||"jq-pinned",g.bottomClass=(null!=b?b.bottomClass:void 0)||"jq-pinned--bottom",g.container=(null!=b?b.container:void 0)||a("body"),d=this,e=a(window),c=null,f=!1,function(){return d.wrap('<div style="display:block;"></div>'),c=d.parent(),g.top=d.offset().top,g.bottom=g.container.offset().top+g.container.outerHeight()-d.height()}(),h=function(){var a,b,h;if(b=e.scrollTop(),(b===g.top||b>g.top)&&b<g.bottom&&!f)h=d.outerWidth(),a=d.outerHeight(),c.css("max-width",h),c.css("height",a),d.addClass(g.pinClass),d.hasClass(g.bottomClass)&&d.removeClass(g.bottomClass),f=!0;else if((b===g.top||b<g.top)&&f)d.hasClass(g.pinClass)&&d.removeClass(g.pinClass),d.hasClass(g.bottomClass)&&d.removeClass(g.bottomClass),f=!1;else{if(!(b===g.bottom||b>g.bottom)||!f)return!1;d.addClass(g.bottomClass),d.hasClass(g.pinClass)&&d.removeClass(g.pinClass),f=!1}},e.bind("scroll",h),this}}(jQuery);
update min js