(function(n,t){n.fn.inViewport=function(i){var r,u;if(i==="inViewPortIsRegistered")return r=!1,this.each(function(){n(this).attr("data-inViewPort")!=null&&(r=!0)}),r;if(i==="destroy"){this.each(function(){var i=".inViewPort"+n(this).attr("data-inViewPort");n(this).removeAttr("data-inViewPort");n(t).off(i)});return}u=(new Date).getTime();this.each(function(r,f){function e(){var t=n(this).height(),r=f.getBoundingClientRect(),u=r.top,e=r.bottom;return i.call(f,Math.max(0,u>0?t-u:e