/*
 * 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);
@@ -14,14 +14,9 @@
 pin 
-1.0.0
 %0A
+
  * h
@@ -125,24 +125,26 @@
 ,d,e,f,g
+,h
 ;return 
 b=b%7C%7C%7Bpi
@@ -139,128 +139,232 @@
 urn 
-b=b%7C%7C%7BpinClass:%22jq-pinned%22%7D,d=this,e=a(window),c=null,f=!1,function()%7Bvar a,e;return e=d.outerWidth(),a=d.outerHeight(),
+g=%7B%7D,g.pinClass=(null!=b?b.pinClass:void 0)%7C%7C%22jq-pinned%22,g.bottomClass=(null!=b?b.bottomClass:void 0)%7C%7C%22jq-pinned--bottom%22,g.container=(null!=b?b.container:void 0)%7C%7Ca(%22body%22),d=this,e=a(window),c=null,f=!1,function()%7Breturn 
 d.wr
@@ -417,17 +417,17 @@
 arent(),
-b
+g
 .top=d.o
@@ -441,13 +441,84 @@
 .top
+,g.bottom=g.container.offset().top+g.container.outerHeight()-d.height()
 %7D(),
-g
+h
 =fun
@@ -535,16 +535,16 @@
 r a,
-g
+b
 ,h;if(
-g
+b
 =e.s
@@ -559,29 +559,41 @@
 (),(
-g===b
+b===g
 .top%7C%7C
-g%3Eb
+b%3Eg
 .top)&&
+b%3Cg.bottom&&
 !f)h
@@ -672,29 +672,228 @@
 ,d.addClass(
-b.pin
+g.pinClass),d.hasClass(g.bottomClass)&&d.removeClass(g.bottomClass),f=!0;else if((b===g.top%7C%7Cb%3Cg.top)&&f)d.hasClass(g.pinClass)&&d.removeClass(g.pinClass),d.hasClass(g.bottomClass)&&d.removeClass(g.bottom
 Class),f=!0;
@@ -886,25 +886,25 @@
 omClass),f=!
-0
+1
 ;else%7Bif(!(g
@@ -906,26 +906,32 @@
 f(!(
-g===b.top%7C%7Cg%3Cb.top
+b===g.bottom%7C%7Cb%3Eg.bottom
 )%7C%7C!
@@ -943,16 +943,66 @@
 urn!1;d.
+addClass(g.bottomClass),d.hasClass(g.pinClass)&&d.
 removeCl
@@ -1005,17 +1005,17 @@
 veClass(
-b
+g
 .pinClas
@@ -1040,17 +1040,17 @@
 scroll%22,
-g
+h
 ),this%7D%7D

update min js