1� 2� 3/***************************************************************************************� 4 * jQuery.themepunch.ShowBiz Pro.js - jQuery Plugin for ShowBiz Pro Teaser Rotator� 5 * @version: 1.4 (22.11.2013)� 6 * @requires jQuery v1.7 or later� 7 * @author ThemePunch� 8****************************************************************************************/� 9(function(e,t){function n(){var e=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"];var t=false;for(i in e){if(navigator.userAgent.split(e[i]).length>1)t=true}return t}function r(n){n.find(".show_on_hover, .hovercover").each(function(){var n=e(this).closest("li");TweenLite.to(e(this),.2,{opacity:0,overwrite:"all",ease:Power3.easeInOut});n.hover(function(){e(this).find(".show_on_hover, .hovercover").each(function(){var n=1;if(e(this).data("maxopacity")!=t)n=e(this).data("maxopacity");TweenLite.to(e(this),.2,{opacity:n,overwrite:"all",ease:Power3.easeInOut})})},function(){e(this).find(".show_on_hover, .hovercover").each(function(){TweenLite.to(e(this),.2,{opacity:0,ease:Power3.easeInOut})})})})}function s(t,n){t.find(".excerpt").each(function(){var t=e(this);t.closest("li").hover(function(){t.slideDown(300)},function(){t.stop(true);t.slideUp(300)})});t.find(".reveal_opener").each(function(){var r=e(this);r.click(function(){if(r.parent().hasClass("reveal_container"))var i=r.parent();else var i=r.parent().find(".reveal_container");if(i.hasClass("revactive")){i.removeClass("revactive");r.removeClass("revactive");i.closest("li").removeClass("revactive");TweenLite.fromTo(i.find(".reveal_wrapper"),.3,{visibility:"visible",top:"0%",height:"100%",opacity:1},{opacity:0,top:"0%",height:"0%",ease:Power3.easeInOut});i.find(".sb-vimeo-markup, .sb-yt-markup").html("");if(i.hasClass("tofullwidth")){c(200,t,n);setTimeout(function(){i.appendTo(i.data("comefrom"))},350)}}else{if(i.hasClass("tofullwidth")){i.data("comefrom",i.parent());i.data("indexli",i.closest("li").index());i.appendTo(i.closest(".showbiz"));r.addClass("revactive")}setTimeout(function(){if(t.data("coo")=="on")i.closest("ul").find(".reveal_opener").each(function(t){if(e(this).hasClass("revactive"))e(this).click()});i.addClass("revactive");r.addClass("revactive");i.closest("li").addClass("revactive");TweenLite.fromTo(i.find(".reveal_wrapper"),.3,{visibility:"visible",height:"0%",top:"0%",opacity:0}
9,{visibility:"visible",top:"0%",height:"100%",opacity:1,ease:Power3.easeInOut});i.find(".sb-vimeo-markup, .sb-yt-markup").each(function(n){var r=e(this);if(r.hasClass("sb-vimeo-markup"))var i=t.data("vimeomarkup");else var i=t.data("ytmarkup");var s=i.split("%%videoid%%")[0];var o=i.split("%%videoid%%")[1];var i=s+r.data("videoid")+o;r.append(i);try{r.fitVids()}catch(u){}});setTimeout(function(){o(t,n)},500)},100)}})})}function o(e,n){var r=e.find(".tofullwidth.revactive .heightadjuster");var i=n.find("ul").first();var s=parseInt(r.parent().css("paddingTop"),0)+parseInt(r.parent().css("paddingBottom"),0);var o=0;if(e.data("hboffset")!=t)o=e.data("hboffset");var u=o+s+r.outerHeight(true);TweenLite.to(i,.3,{height:u+"px",ease:Power3.easeInOut});TweenLite.to(i.parent(),.3,{height:u+"px",ease:Power3.easeInOut});var a=e.find(".showbiz-navigation").outerHeight(true);TweenLite.to(e.closest(".forcefullwidth_wrapper_tp_banner"),.3,{height:u+a+"px",ease:Power3.easeInOut})}function u(t,n){var r=t.data("carousel");var i=t.data("speedy");if(t.find(".tofullwidth.revactive .heightadjuster").length>0){var s=t.find(".tofullwidth.revactive").data("indexli");var o=s;if(o<=0)o=t.find("ul:first-child li").length;t.find(".tofullwidth.revactive").addClass("sb-removemesoon");setTimeout(function(){t.find(".tofullwidth.revactive.sb-removemesoon .reveal_opener").click();t.find(".sb-removemesoon").each(function(){e(this).removeClass("sb-removemesoon")})},350);t.find("ul:first-child li:nth-child("+o+")").find(".reveal_opener").click()}else{var u=n.data("teaser");var a=u.find("ul").first();if(t.data("das")=="on"){l(t,-1)}else{var f=t.data("currentoffset");var h=1;var p=t.width();if(t.data("allentry")=="on"){if(p>980){h=t.data("vea")[0]}if(p<981&&p>768){h=t.data("vea")[1]}if(p<769&&p>420){h=t.data("vea")[2]}if(p<421){h=t.data("vea")[3]}}f=f-h;t.data("currentoffset",f);c(i,t,u)}}}function a(t,n){var r=t.data("carousel");var i=t.data("speedy");if(t.find(".tofullwidth.revactive .heightadjuster").length>0){var s=t.find(".tofullwidth.revactive").data("indexli");var o=s+2;if(o>t.find("ul:first-child li").length)o=1;t.find(".tofullwidth.revactive").addClass("sb-removemesoon");setTimeout(function(){t.find(".tofullwidth.revactive.sb-removemesoon .reveal_opener").click();t.find(".sb-removemesoon").each(function(){e(this).removeClass("sb-removemesoon")})},350);t.find("ul:first-child li:nth-child("+o+")").find(".reveal_opener").click()}else{var u=e(n.data("teaser"));var a=u.find("ul").first();var f=a.find(">li").length;if(t.data("das")=="on"){l(t,1)}else{var h=t.data("currentoffset");var p=1;var d=t.width();if(t.data("allentry")=="on"){if(d>980){p=t.data("vea")[0]}if(d<981&&d>768){p=t.data("vea")[1]}if(d<769&&d>420){p=t.data("vea")[2]}if(d<421){p=t.data("vea")[3]}}h=h+p;t.data("currentoffset",h);c(i,t,u)}}}function f(n,r){var i=n.data("carousel");n.find(".rating-star").each(function(){var n=e(this);if(n.data("rates")!=t){var r=n.data("rates");n.append('<div class="sb-rateholder"></div>');for(var i=1;i<6;i++){var s=100;if(r==0){s=0}else{if(r>=i)s=100;else{s=(r-Math.floor(r))*100;if(i-r>1)s=0}}n.find(".sb-rateholder").append('<div class="sb-rateholder-single"><div style="width:'+s+'%;overflow:hidden"><i class="sb-icon-star"></i></div><i class="sb-icon-star-empty"></i></div>')}n.find(".sb-rateholder").append('<div class="sb-clear"></div>')}});var s=e(r.data("left"));var o=e(r.data("right"));var f=n.width();s.data("teaser",r);o.data("teaser",r);r.data("offset",0);c(0,n,r);n.find("img").each(function(){e(this).parent().waitForImages(function(){c(200,n,r)})});o.click(function(){a(n,o);return false});s.click(function(){u(n,s);return false});if(n.data("das")!="on")n.swipe({data:n,swipeRight:function(){s.click()},swipeLeft:function(){o.click()},excludedElements:".reveal_opener, a, .linkicon, .notalone, .lupeicon, .hovercover, .showbiz-navigation, .sb-navigation-left, .sb-navigation-right",allowPageScroll:"auto"});var h;e(window).resize(function(){clearTimeout(h);n.addClass("hovered");h=setTimeout(function(){if(n.data("forceFullWidth")==true){var t=n.closest(".forcefullwidth_wrapper_tp_banner").offset().left;n.css({left:0-t+"px",width:e(window).width()})}c(300,n,r);if(n.data("das")=="on"){setTimeout(function(){l(n,0)},300)}n.removeClass("hovered")},150)});for(var p=0;p<3;p++){e(window).data("teaserreset",setTimeout(function(){c(200,n,r)},p*500))}}function l(t,n){var r=t;var i=t.width();var s=r.find("ul").first();var o=s.find(">li").length;var u=4;if(i>980)u=t.data("vea")[0];if(i<981&&i>768)u=t.data("vea")[1];if(i<769&&i>420)u=t.data("vea")[2];if(i<421)u=t.data("vea")[3];var a=o-u;var f=s.find(">li:first-child").outerWidth(true);var l=r.find(".overflowholder");var c=l.scrollLeft();var h=Math.round(c/f);var p=e(l.parent().data("right"));var d=e(l.parent().data("left"));var v=(h+n)*f;if(v>=a*f){v=a*f;try{p.addClass("notclickable")}catch(m){}}else{try{p.removeClass("notclickable")}catch(m){}}if(v<=0){v=0;try{d.addClass("notclickable")}catch(m){}}else{try{d.removeClass("notclickable")}catch(m){}}l.animate({scrollLeft:v+"px"},{duration:300,queue:false,complete:function(){l.removeClass("inmove")}})}function c(n,r,i){var s=r.data("carousel");var u=i.find("ul");var a=r.data("currentoffset");var f=r.width();var l=parseInt(i.css("paddingLeft"),0)+parseInt(i.css("paddingRight"),0);f=f-l;var u=i.find("ul:first");maxitem=u.find(">li").length;var c=e(i.data("right"));if(r.data("das")!="on")c.removeClass("notclickable");var p=e(i.data("left"));if(r.data("das")!="on")p.removeClass("notclickable");var d=r.data("vea")[0];var v=r.data("mediaMaxHeight");if(f>980){d=r.data("vea")[0];try{if(v[0]!=0)r.find(".mediaholder_innerwrap").each(function(){e(this).css({maxHeight:v[0]+"px"})})}catch(m){}}if(f<981&&f>768){d=r.data("vea")[1];try{if(v[1]!=0)r.find(".mediaholder_innerwrap").each(function(){e(this).css({maxHeight:v[1]+"px"})})}catch(m){}}if(f<769&&f>420){d=r.data("vea")[2];try{if(v[2]!=0)r.find(".mediaholder_innerwrap").each(function(){e(this).css({maxHeight:v[2]+"px"})})}catch(m){}}if(f<421){d=r.data("vea")[3];try{if(v[3]!=0)r.find(".mediaholder_innerwrap").each(function(){e(this).css({maxHeight:v[3]+"px"})})}catch(m){}}var g=u.find(">li:first-child").outerWidth(true)-u.find(">li:first-child").width();var y=0;if(r.data("eoffset")!=t)y=r.data("eoffset")*(d-1);var b=0;if(r.data("croffset")!=t)b=r.data("croffset");
9step=(f-(d-1)*g)/d;step=Math.round(step-y);var w=false;u.find(">li").each(function(){if(e(this).width()!=step)w=true;e(this).width(step)});u.css({width:"40000px"});var E=0;if(w)E=450;var S=r.data("ease");setTimeout(function(){step=u.find("li:first").outerWidth(true);var e=step*a;if(e<0)e=0;var t=0;var i=maxitem*step-f;var o=e+g;if(s!=1){if(i<=o&&a>1){if(r.data("rewindfromend")=="on"){if(i<o){e=0;r.data("currentoffset",0)}}else{r.data("currentoffset",maxitem-d);e=step*(maxitem-d);c.addClass("notclickable")}}if(a<=0){if(r.data("rewindfromend")=="on"){if(a<0){r.data("currentoffset",maxitem-d);e=step*(maxitem-d)}}else{e=0;r.data("currentoffset",0);p.addClass("notclickable")}}if(h(8))TweenLite.to(u,n/1e3,{left:0-e+"px",transformPerspective:300,ease:S});else TweenLite.to(u,n/1e3,{x:0-e+"px",transformPerspective:300,ease:S})}else{if(i<=o){a=a-2;r.data("currentoffset",a+1);e=step*a;u.find(">li").first().appendTo(u);if(h(8))TweenLite.set(u,{left:0-e+"px",transformPerspective:300,ease:S});else TweenLite.set(u,{x:0-e+"px",transformPerspective:300,ease:S});a=a+1;e=step*a}if(a<0){a=1;r.data("currentoffset",0);e=step*a;u.find(">li").last().prependTo(u);if(h(8))TweenLite.set(u,{left:0-e+"px",transformPerspective:300,ease:S});else TweenLite.set(u,{x:0-e+"px",transformPerspective:300,ease:S});a=0;e=step*a}if(h(8))TweenLite.to(u,n/1e3,{left:0-e+"px",transformPerspective:300,ease:S});else TweenLite.to(u,n/1e3,{x:0-e+"px",transformPerspective:300,ease:S})}},E);var x=0;if(r.data("hboffset")!=t)x=r.data("hboffset");setTimeout(function(){var t=0;u.find("li").each(function(){if(e(this).outerHeight(true)>t)t=e(this).outerHeight(true)});setTimeout(function(){if(step>100){var e=u.find(">li:last-child");var t=u.find(">li:nth(2)");var n=(e.index()+1)*e.outerWidth(true)+g;u.css({width:n+"px"})}},200);if(r.find(".tofullwidth.revactive .heightadjuster").length>0){o(r,i)}else{TweenLite.to(u,.3,{height:t+x+"px",ease:Power3.easeInOut});TweenLite.to(u.parent(),.3,{height:t+x+"px",ease:Power3.easeInOut});var n=r.find(".showbiz-navigation").outerHeight(true);TweenLite.to(r.closest(".forcefullwidth_wrapper_tp_banner"),.3,{height:t+x+n+"px",ease:Power3.easeInOut})}},n+210)}function h(t,n){var r=e('<div style="display:none;"/>').appendTo(e("body"));r.html("<!--[if "+(n||"")+" IE "+(t||"")+"]><a> </a><![endif]-->");var i=r.find("a").length;r.remove();return i}e.fn.extend({showbizpro:function(i){e.fn.showbizpro.defaults={entrySizeOffset:0,containerOffsetRight:0,heightOffsetBottom:0,carousel:"off",visibleElementsArray:[4,3,2,1],mediaMaxHeight:[0,0,0,0],ytMarkup:"<iframe src='http://www.youtube.com/embed/%%videoid%%?hd=1&wmode=opaque&autohide=1&showinfo=0&autoplay=1'></iframe>",vimeoMarkup:"<iframe src='http://player.vimeo.com/video/%%videoid%%?title=0&byline=0&portrait=0;api=1&autoplay=1'></iframe>",closeOtherOverlays:"off",allEntryAtOnce:"off",dragAndScroll:"off",autoPlay:"off",delay:3e3,speed:300,rewindFromEnd:"off",easing:"Power3.easeOut",forceFullWidth:false,scrollOrientation:"left"};i=e.extend({},e.fn.showbizpro.defaults,i);return this.each(function(){function T(){o.data("timer",setInterval(function(){if(o.data("scrollOrientation")=="right"){var t=e(o.find(".showbiz").data("left"));if(!o.hasClass("hovered"))u(o,t)}else{var t=e(o.find(".showbiz").data("right"));if(!o.hasClass("hovered"))a(o,t)}},i.delay))}function N(){clearInterval(o.data("timer"))}var o=e(this);if(i.forceFullWidth==true){var c=o.offset().left;var h=o.css("marginBottom");var p=o.css("marginTop");if(h==t)h=0;if(p==t)p=0;o.wrap('<div style="position:relative;width:100%;height:auto;margin-top:'+p+";margin-bottom:"+h+'" class="forcefullwidth_wrapper_tp_banner"></div>');o.closest(".forcefullwidth_wrapper_tp_banner").append('<div class="tp-fullwidth-forcer" style="width:100%;height:'+o.height()+'px"></div>');o.css({maxWidth:"none",left:0-c+"px",position:"absolute",width:e(window).width()})}o.data("eoffset",i.entrySizeOffset);o.data("croffset",i.containerOffsetRight);o.data("hboffset",i.heightOffsetBottom);o.data("ease",i.easing);if(i.carousel=="on")o.data("carousel",1);else o.data("carousel",0);o.data("ytmarkup",i.ytMarkup);o.data("vimeomarkup",i.vimeoMarkup);o.data("vea",i.visibleElementsArray);
9o.data("coo",i.closeOtherOverlays);o.data("allentry",i.allEntryAtOnce);o.data("mediaMaxHeight",i.mediaMaxHeight);o.data("das",i.dragAndScroll);o.data("rewindfromend",i.rewindFromEnd);o.data("forceFullWidth",i.forceFullWidth);o.data("scrollOrientation",i.scrollOrientation);o.data("currentoffset",0);i.speed=parseInt(i.speed,0);i.delay=parseInt(i.delay,0);o.data("speedy",i.speed);o.data("ie",!e.support.opacity);o.data("ie9",document.documentMode==9);var d=e.fn.jquery.split("."),v=parseFloat(d[0]),m=parseFloat(d[1]),g=parseFloat(d[2]||"0");if(v>1)o.data("ie",false);if(i.carousel=="on"){if(o.find("ul").first().find(">li").length<17){o.find("ul").first().find(">li").each(function(t){e(this).clone(true).appendTo(o.find("ul").first())})}if(o.find("ul").first().find(">li").length<17){o.find("ul").first().find(">li").each(function(t){e(this).clone(true).appendTo(o.find("ul").first())})}}var y=o.find(".showbiz");y.attr("id","sbiz"+Math.round(Math.random()*1e4));var b;if(i.dragAndScroll=="on"){y.find(".overflowholder").overscroll({driftTimeout:0,direction:"horizontal",wheelDirection:"horizontal",captureWheel:false}).on("overscroll:dragstart",function(){o.find(".overflowholder").stop(true)}).on("overscroll:driftend",function(){o.find(".overflowholder").data("drifting",0);l(o,0)}).on("overscroll:driftstart",function(){clearTimeout(b);o.find(".overflowholder").data("drifting",1)}).on("overscroll:dragend",function(){if(!n()){clearTimeout(b);b=setTimeout(function(){if(o.find(".overflowholder").data("drifting")!=1)l(o,0)},50)}})}var w=Math.round(Math.random()*1e5);if(y.data("left")==t)y.data("left","sb_left_"+w);if(y.data("right")==t)y.data("right","sb_right_"+w);if(y.data("play")==t)y.data("play","sb_play_"+w);var E=e(y.data("left"));var S=e(y.data("right"));var x=e(y.data("play"));if(E==t||E.length==0)e("body").append('<a style="display:none" id="'+y.data("left")+'" class="sb-navigation-left"><i class="sb-icon-left-open"></i></a>');if(S==t||S.length==0)e("body").append('<a style="display:none" id="'+y.data("right")+'" class="sb-navigation-right"><i class="sb-icon-right-open"></i></a>');if(x==t||x.length==0)e("body").append('<a style="display:none" id="'+y.data("play")+'" class="sb-navigation-play"><i class="sb-icon-play sb-playbutton"></i><i class="sb-icon-pause sb-pausebutton"></i></a>');f(o,y);if(i.autoPlay!="on"){e(o.find(".showbiz").data("play")).remove()}else{T();var x=e(o.find(".showbiz").data("play"));x.find(".sb-playbutton").addClass("sb-hidden");o.hover(function(){o.addClass("hovered")},function(){o.removeClass("hovered")});x.click(function(){if(x.hasClass("paused")){T();x.removeClass("paused");x.find(".sb-pausebutton").removeClass("sb-hidden");x.find(".sb-playbutton").addClass("sb-hidden")}else{N();x.addClass("paused");x.find(".sb-pausebutton").addClass("sb-hidden");x.find(".sb-playbutton").removeClass("sb-hidden")}})}s(o,y);try{o.find(".mediaholder_innerwrap").each(function(){var t=e(this);if(t.find("iframe").length>0)e(this).fitVids()})}catch(C){}r(o);if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)){e(".reveal_opener, .sb-navigation-left, .sb-navigation-right").
9click(function(){})}})},showbizredraw:function(t){return this.each(function(){var t=e(this);var n=t.find(".showbiz");c(200,t,n)})}});})(jQuery);(function(e,t,n,r,i,s,o,u,a){"use strict";jQuery(document).ready(function(){function n(e,t){t.trigger("overscroll:"+e)}function f(){return(new Date).getTime()}function l(e,t,n){t.x=e.pageX;t.y=e.pageY;t.time=f();t.index=n;return t}function c(e,t,n,r){var i,s;if(e&&e.added){if(e.horizontal){i=n*(1+t.container.width/t.container.scrollWidth);s=r+t.thumbs.horizontal.top;e.horizontal.css("margin",s+"px 0 0 "+i+"px")}if(e.vertical){i=n+t.thumbs.vertical.left;s=r*(1+t.container.height/t.container.scrollHeight);e.vertical.css("margin",s+"px 0 0 "+i+"px")}}}function h(e,t,n){if(e&&e.added&&!t.persistThumbs){if(n){if(e.vertical){e.vertical.stop(true,true).fadeTo("fast",P.thumbOpacity)}if(e.horizontal){e.horizontal.stop(true,true).fadeTo("fast",P.thumbOpacity)}}else{if(e.vertical){e.vertical.fadeTo("fast",0)}if(e.horizontal){e.horizontal.fadeTo("fast",0)}}}}function p(e){var t,n="events";var r=u._data?u._data(e[0],n):e.data(n);if(r&&r.click){t=r.click.slice();e.off("click").one("click",function(){u.each(t,function(t,n){e.click(n)});return false})}}function d(e){var t=e.data,n=t.thumbs,r=t.options,i=e.type==="mouseenter";h(n,r,i)}function v(e){var t=e.data;if(!t.flags.dragged){c(t.thumbs,t.sizing,this.scrollLeft,this.scrollTop)}}function m(e){e.preventDefault();var t=e.data,n=t.options,r=t.sizing,o=t.thumbs,u=t.wheel,a=t.flags,f=e.originalEvent,l=0,p=0,d=0;a.drifting=false;if(f.detail){l=-f.detail;if(f.detailX){p=-f.detailX}if(f.detailY){d=-f.detailY}}else if(f.wheelDelta){l=f.wheelDelta/P.wheelTicks;if(f.wheelDeltaX){p=f.wheelDeltaX/P.wheelTicks}if(f.wheelDeltaY){d=f.wheelDeltaY/P.wheelTicks}}l*=n.wheelDelta;p*=n.wheelDelta;d*=n.wheelDelta;if(!u){t.target.data(M).dragging=a.dragging=true;t.wheel=u={timeout:null};h(o,n,true)}if(n.wheelDirection==="vertical"){this.scrollTop-=l}else if(n.wheelDirection==="horizontal"){this.scrollLeft-=l}else{this.scrollLeft-=p;this.scrollTop-=d||l}if(u.timeout){s(u.timeout)}c(o,r,this.scrollLeft,this.scrollTop);u.timeout=i(function(){t.target.data(M).dragging=a.dragging=false;h(o,n,t.wheel=null)},P.thumbTimeout)}function g(e){e.preventDefault();var t=e.data,n=e.originalEvent.touches,r=t.options,i=t.sizing,s=t.thumbs,o=t.position,u=t.flags,a=t.target.get(0);if(n&&n.length){e=n[0]}if(!u.dragged){h(s,r,true)}u.dragged=true;if(r.direction!=="vertical"){a.scrollLeft-=e.pageX-o.x}if(t.options.direction!=="horizontal"){a.scrollTop-=e.pageY-o.y}l(e,t.position);if(--t.capture.index<=0){t.target.data(M).dragging=u.dragging=true;l(e,t.capture,P.captureThreshold)}c(s,i,a.scrollLeft,a.scrollTop)}function y(e,t,r){var i=t.data,s,o,u,a,l=i.capture,h=i.options,p=i.sizing,d=i.thumbs,v=f()-l.time,m=e.scrollLeft,g=e.scrollTop,y=P.driftDecay;if(v>P.driftTimeout){r(i);return}s=h.scrollDelta*(t.pageX-l.x);o=h.scrollDelta*(t.pageY-l.y);if(h.direction!=="vertical"){m-=s}if(h.direction!=="horizontal"){g-=o}u=s/P.driftSequences;a=o/P.driftSequences;n("driftstart",i.target);i.drifting=true;_.animate(function b(){if(i.drifting){var t=1,s=-1;i.drifting=false;if(a>t&&e.scrollTop>g||a<s&&e.scrollTop<g){i.drifting=true;e.scrollTop-=a;a/=y}if(u>t&&e.scrollLeft>m||u<s&&e.scrollLeft<m){i.drifting=true;e.scrollLeft-=u;u/=y}c(d,p,e.scrollLeft,e.scrollTop);_.animate(b)}else{n("driftend",i.target);r(i)}})}function b(e){var t=e.data,r=e.originalEvent.touches,i=t.target,s=t.start=u(e.target),o=t.flags;o.drifting=false;if(s.size()&&!s.is(t.options.cancelOn)){if(!r){e.preventDefault()}if(!_.overflowScrolling){i.css("cursor",_.cursor.grabbing);i.data(M).dragging=o.dragging=o.dragged=false;if(t.options.dragHold){u(document).on(D.drag,t,g)}else{i.on(D.drag,t,g)}}t.position=l(e,{});t.capture=l(e,{},P.captureThreshold);n("dragstart",i)}}function w(e){var t=e.data,r=t.target,i=t.options,s=t.flags,o=t.thumbs,a=function(){if(o&&!i.hoverThumbs){h(o,i,false)}};if(i.dragHold){u(document).unbind(D.drag,g)}else{r.unbind(D.drag,g)}if(t.position){n("dragend",r);if(s.dragging&&!_.overflowScrolling){y(r.get(0),e,a)}else{a()}}if(s.dragging&&!_.overflowScrolling&&t.start&&t.start.is(e.target)){p(t.start)}r.data(M).dragging=t.start=t.capture=t.position=s.dragged=s.dragging=false;r.css("cursor",_.cursor.grab)}function E(e){e=u.extend({},H,e);if(e.direction!=="multi"&&e.direction!==e.wheelDirection){e.wheelDirection=e.direction}e.scrollDelta=r.abs(parseFloat(e.scrollDelta));e.wheelDelta=r.abs(parseFloat(e.wheelDelta));e.scrollLeft=e.scrollLeft===a?null:r.abs(parseFloat(e.scrollLeft));e.scrollTop=e.scrollTop===a?null:r.abs(parseFloat(e.scrollTop));return e}function S(e){var t=u(e),n=t.width(),r=t.height(),i=n>=e.scrollWidth?n:e.scrollWidth,s=r>=e.scrollHeight?r:e.scrollHeight,o=i>n||s>r;return{valid:o,container:{width:n,height:r,scrollWidth:i,scrollHeight:s},thumbs:{horizontal:{width:n*n/i,height:P.thumbThickness,corner:P.thumbThickness/2,left:0,top:r-P.thumbThickness},vertical:{width:P.thumbThickness,height:r*r/s,corner:P.thumbThickness/2,left:n-P.thumbThickness,top:0}}}}function x(e,t){var n=u(e),r,i=n.data(M)||{},s=n.attr("style"),o=t?function(){i=n.data(M);r=i.thumbs;if(s){n.attr("style",s)}else{n.removeAttr("style")}if(r){if(r.horizontal){r.horizontal.remove()}if(r.vertical){r.vertical.remove()}}n.removeData(M).off(D.wheel,m).off(D.start,b).off(D.end,w).off(D.ignored,C)}:u.noop;return u.isFunction(i.remover)?i.remover:o}function T(e,t){return{position:"absolute",opacity:t.persistThumbs?P.thumbOpacity:0,"background-color":"black",width:e.width+"px",height:e.height+"px","border-radius":e.corner+"px",margin:e.top+"px 0 0 "+e.left+"px","z-index":t.zIndex}}function N(e,t,n){var r="<div/>",i={},s=false;if(t.container.scrollWidth>0&&n.direction!=="vertical"){s=T(t.thumbs.horizontal,n);i.horizontal=u(r).css(s).prependTo(e)}if(t.container.scrollHeight>0&&n.direction!=="horizontal"){s=T(t.thumbs.vertical,n);i.vertical=u(r).css(s).prependTo(e)}i.added=!!s;return i}function C(e){e.preventDefault()}
9function k(e,t){t=E(t);var n=S(e),r,i={options:t,sizing:n,flags:{dragging:false},remover:x(e,true)};if(n.valid||t.ignoreSizing){i.target=e=u(e).css({position:"relative",cursor:_.cursor.grab}).on(D.start,i,b).on(D.end,i,w).on(D.ignored,i,C);if(t.dragHold){u(document).on(D.end,i,w)}else{i.target.on(D.end,i,w)}if(t.scrollLeft!==null){e.scrollLeft(t.scrollLeft)}if(t.scrollTop!==null){e.scrollTop(t.scrollTop)}if(_.overflowScrolling){e.css(_.overflowScrolling,"touch")}else{e.on(D.scroll,i,v)}if(t.captureWheel){e.on(D.wheel,i,m)}if(t.showThumbs){if(_.overflowScrolling){e.css("overflow","scroll")}else{e.css("overflow","hidden");i.thumbs=r=N(e,n,t);if(r.added){c(r,n,e.scrollLeft(),e.scrollTop());if(t.hoverThumbs){e.on(D.hover,i,d)}}}}else{e.css("overflow","hidden")}e.data(M,i)}}function L(e){x(e)()}function A(e){return this.removeOverscroll().each(function(){k(this,e)})}function O(){return this.each(function(){L(this)})}var M="overscroll";if(t.body===null){t.documentElement.appendChild(t.createElement("body"))}if(!e.getComputedStyle){e.getComputedStyle=function(e,t){this.el=e;this.getPropertyValue=function(t){var n=/(\-([a-z]){1})/g;if(t=="float")t="styleFloat";if(n.test(t)){t=t.replace(n,function(){return arguments[2].toUpperCase()})}return e.currentStyle[t]?e.currentStyle[t]:null};return this}}var _={animate:function(){var t=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(e){i(e,1e3/60)};return function(n){t.call(e,n)}}(),overflowScrolling:function(){var n="";var r=t.createElement("div");var i=["webkit","moz","o","ms"];t.body.appendChild(r);u.each(i,function(e,t){r.style[t+"OverflowScrolling"]="touch"});r.style.overflowScrolling="touch";var s=e.getComputedStyle(r);if(!!s.overflowScrolling){n="overflow-scrolling"}else{u.each(i,function(e,t){if(!!s[t+"OverflowScrolling"]){n="-"+t+"-overflow-scrolling"}return!n})}r.parentNode.removeChild(r);return n}(),cursor:function(){var n=t.createElement("div");var r=["webkit","moz"];var i="https://mail.google.com/mail/images/2/";var s={grab:"url("+i+"openhand.cur), move",grabbing:"url("+i+"closedhand.cur), move"};t.body.appendChild(n);u.each(r,function(t,r){var i,o="-"+r+"-grab";n.style.cursor=o;var u=e.getComputedStyle(n);i=u.cursor===o;if(i){s={grab:"-"+r+"-grab",grabbing:"-"+r+"-grabbing"}}return!i});n.parentNode.removeChild(n);return s}()};var D={drag:"mousemove touchmove",end:"mouseup mouseleave click touchend touchcancel",hover:"mouseenter mouseleave",ignored:"select dragstart drag",scroll:"scroll",start:"mousedown touchstart",wheel:"mousewheel DOMMouseScroll"};var P={captureThreshold:3,driftDecay:1.1,driftSequences:22,driftTimeout:100,scrollDelta:15,thumbOpacity:.7,thumbThickness:6,thumbTimeout:400,wheelDelta:20,wheelTicks:120};var H={cancelOn:"select,input,textarea",direction:"multi",dragHold:false,hoverThumbs:false,scrollDelta:P.scrollDelta,showThumbs:true,persistThumbs:false,captureWheel:true,wheelDelta:P.wheelDelta,wheelDirection:"multi",zIndex:999,ignoreSizing:false};A.settings=P;u.extend(o,{overscroll:A,removeOverscroll:O})})})(window,document,navigator,Math,setTimeout,clearTimeout,jQuery.fn,jQuery);(function(e,t){e.fn.fitVids=function(t){var n={customSelector:null};var r=document.createElement("div"),i=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];r.className="fit-vids-style";r.innerHTML="Â<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style>";i.parentNode.insertBefore(r,i);if(t){e.extend(n,t)}return this.each(function(){var t=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.kickstarter.com']","object","embed"];if(n.customSelector){t.push(n.customSelector)}var r=e(this).find(t.join(","));r.each(function(){var t=e(this);if(this.tagName.toLowerCase()=="embed"&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length){return}var n=this.tagName.toLowerCase()=="object"?t.attr("height"):t.height(),r=n/t.width();if(!t.attr("id")){var i="fitvid"+Math.floor(Math.random()*999999);t.attr("id",i)}t.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",r*100+"%");t.removeAttr("height").removeAttr("width")})})}})(jQuery)
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.