!function(t){t.fn.extend({toggleText:function(t,n){return this.text(this.text()===n?t:n)},inViewport:function(n){return this.each(function(e,i){function o(){var e=t(i).outerHeight(),o=t(window).height(),r=i.getBoundingClientRect(),u=r.top,h=r.bottom;return n.call(i,Math.max(0,u>0?Math.min(e,o-u):Math.min(h,o)))}o(),t(window).on("resize scroll",o)})}})}(jQuery);