1/* 2 * Carousel Logo Showcase v1.0 3 * 4 * Copyright 2013 LambertGroup 5 * 6 */ 7 8 9(function(c){function A(a,b,h,q,f,n,l,e,g,k,p,m,d,t,r,v,w,s){b.enableTouchScreen?(responsiveWidth=f.parent().parent().parent().width(),responsiveHeight=f.parent().parent().parent().height()):(responsiveWidth=f.parent().parent().width(),responsiveHeight=f.parent().parent().height());b.responsiveRelativeToBrowser&&(responsiveWidth=c(window).width(),responsiveHeight=c(window).height());b.width100Proc&&(b.width=responsiveWidth);b.height100Proc&&(b.height=responsiveHeight);if(b.origWidth!=responsiveWidth|| b.width100Proc)if(b.origWidth>responsiveWidth||b.width100Proc?b.width=responsiveWidth:b.width100Proc||(b.width=b.origWidth),b.height100Proc||(b.height=b.width/a.bannerRatio),b.width=parseInt(b.width,10),b.height=parseInt(b.height,10),b.enableTouchScreen&&b.responsive&&(b.width-=1),b.enableTouchScreen&&(l.parent().width(b.width+1),l.parent().height(b.height)),clearTimeout(a.timeoutID),z(a,b,h,l,r,m,e,w,v,d,t,p),0<b.autoPlay&&h>b.numberOfThumbsPerScreen&&(a.timeoutID=setTimeout(function(){u(0,m,e,w, b,h,v,a,p)},1E3*b.autoPlay)),b.showOnInitBottomNav)switch(g.css({bottom:parseInt(b.bottomNavMarginBottom/(b.origWidth/b.width))+"px",top:"auto"}),b.bottomNavPosition){case "left":g.css("left",e.width()+"px");break;case "middle":g.css("left",parseInt((l.width()-g.width())/2,10)+"px");break;case "right":g.css("left",b.width-w.width()-g.width()+"px");break;default:g.css("left",parseInt((l.width()-s)/2,10)+"px")}}function z(a,b,h,q,f,n,l,e,g,k,p,m){q.width(b.width);q.height(b.height);p.width(b.width); p.height(b.height);l.css({"margin-top":parseInt((b.height-l.height())/2,10)+"px",left:"0"});e.css({"margin-top":parseInt((b.height-e.height())/2,10)+"px",right:"0"});k.css("width",b.width-l.width()-e.width());k.height(b.height);b.origWidthThumbsHolderVisibleWrapper=b.origWidth-l.width()-e.width();newWidthThumbsHolderVisibleWrapper=k.width();b.enableTouchScreen&&b.responsive&&b.origWidthThumbsHolderVisibleWrapper!=newWidthThumbsHolderVisibleWrapper&&newWidthThumbsHolderVisibleWrapper++;f.css({width:parseInt((b.imageWidth+ 2*b.border)/(b.origWidthThumbsHolderVisibleWrapper/newWidthThumbsHolderVisibleWrapper),10)+"px",height:parseInt((b.imageHeight+2*b.border)/(b.origWidthThumbsHolderVisibleWrapper/newWidthThumbsHolderVisibleWrapper),10)+"px"});c(".paddingx",f).css({padding:parseInt(b.border/(b.origWidthThumbsHolderVisibleWrapper/newWidthThumbsHolderVisibleWrapper),10)+"px"});q=c(".thumbsHolder_ThumbOFF",q).find("img:first");q.css({width:f.width()-2*parseInt(b.border/(b.origWidthThumbsHolderVisibleWrapper/newWidthThumbsHolderVisibleWrapper), 10)+"px",height:parseInt(b.imageHeight/(b.origWidthThumbsHolderVisibleWrapper/newWidthThumbsHolderVisibleWrapper),10)+"px"});f.height(q.height()+2*parseInt(b.border/(b.origWidthThumbsHolderVisibleWrapper/newWidthThumbsHolderVisibleWrapper),10));a.thumbMarginLeft=Math.floor((b.width-l.width()-e.width()-f.width()*b.numberOfThumbsPerScreen)/(b.numberOfThumbsPerScreen-1));f.css({"margin-left":a.thumbMarginLeft+"px"});n.css("width",(f.width()+a.thumbMarginLeft)*h-a.thumbMarginLeft+"px");n.children().first().css("margin-left", "0px");b.numberOfThumbsPerScreen>=h&&k.css("left",parseInt((b.width-(f.width()+a.thumbMarginLeft)*h)/2,10)+parseInt(a.thumbMarginLeft/2,10)+"px");a.carouselStep=(f.width()+a.thumbMarginLeft)*b.numberOfThumbsPerScreen;n.css("left",-1*a.carouselStep*a.currentNavPage+"px")}function u(a,b,h,q,f,n,l,e,g){b.css("opacity","0.5");e.isCarouselScrolling=!0;c(g[e.currentNavPage]).removeClass("bottomNavButtonON");0!=a?e.currentNavPage+=a:e.currentNavPage==Math.ceil(n/f.numberOfThumbsPerScreen)-1?e.currentNavPage= 0:e.currentNavPage++;c(g[e.currentNavPage]).addClass("bottomNavButtonON");b.animate({opacity:1,left:-1*e.currentNavPage*e.carouselStep+"px"},500,"easeOutCubic",function(){B(e,b,h,q,f,n,l);e.isCarouselScrolling=!1;0<f.autoPlay&&n>f.numberOfThumbsPerScreen&&(clearTimeout(e.timeoutID),e.timeoutID=setTimeout(function(){u(0,b,h,q,f,n,l,e,g)},1E3*f.autoPlay))})}function B(a,b,c,q,f,n,l){currentCarouselLeft=b.css("left").substr(0,b.css("left").lastIndexOf("px"));0>currentCarouselLeft?c.hasClass("carouselLeftNavDisabled")&& c.removeClass("carouselLeftNavDisabled"):c.addClass("carouselLeftNavDisabled");Math.abs(currentCarouselLeft-a.carouselStep)<(b.children().first().width()+a.thumbMarginLeft)*n?q.hasClass("carouselRightNavDisabled")&&q.removeClass("carouselRightNavDisabled"):q.addClass("carouselRightNavDisabled")}function C(){var a=-1;"Microsoft Internet Explorer"==navigator.appName&&null!=/MSIE ([0-9]{1,}[.0-9]{0,})/.exec(navigator.userAgent)&&(a=parseFloat(RegExp.$1));return parseInt(a,10)}function D(a,b){a.showTooltip&& (c(".thumbsHolder_ThumbOFF",b).addClass("lbg_carousel_tooltip"),c(".lbg_carousel_tooltip").tooltip({content:function(){return c(this).attr("title")},position:{my:"center bottom-20",at:"center top",using:function(a,b){c(this).css(a);c("<div>").addClass("lbg_carousel_arrow").addClass(b.vertical).addClass(b.horizontal).appendTo(this)}}}))}c.fn.logo_carousel=function(a){a=c.extend({},c.fn.logo_carousel.defaults,a);return this.each(function(){var b=c(this);responsiveWidth=b.parent().width();responsiveHeight= b.parent().height();a.responsiveRelativeToBrowser&&(responsiveWidth=c(window).width(),responsiveHeight=c(window).height());a.origWidth=a.width;a.width100Proc&&(a.width=responsiveWidth);a.height=a.imageHeight+2*a.border;a.origHeight=a.height;a.height100Proc&&(a.height=responsiveHeight);var h=c("<div></div>").addClass("logo_carousel").addClass(a.skin),q=c('<div class="thumbsHolderWrapper"><div class="thumbsHolderVisibleWrapper"><div class="thumbsHolder"></div></div></div>');b.wrap(h);b.after(q);var f= b.parent(".logo_carousel"),q=c(".bannerControls",f),n=c(".thumbsHolderWrapper",f),l=c(".thumbsHolderVisibleWrapper",f),e=c(".thumbsHolder",f),g,k;g=c('<div class="carouselLeftNav"></div>');k=c('<div class="carouselRightNav"></div>');n.append(g);n.append(k);g.css({"margin-top":parseInt((a.height-g.height())/2,10)+"px"});k.css({"margin-top":parseInt((a.height-k.height())/2,10)+"px",right:"0"});g.css("display","none");k.css("display","none");a.showNavArrows?a.showOnInitNavArrows&&(g.css("display","block"), k.css("display","block")):(g.width(0),k.width(0),a.width=a.width,a.origWidth=a.width,g.width(0),k.width(0));a.responsive&&(a.origWidth!=responsiveWidth||a.width100Proc)&&(a.width=a.origWidth>responsiveWidth||a.width100Proc?responsiveWidth:a.origWidth,a.height100Proc||(a.height=a.width/(a.origWidth/a.origHeight)));a.width=parseInt(a.width,10);a.height=parseInt(a.height,10);a.enableTouchScreen&&a.responsive&&(a.width-=1);e.css("width","0px");h=c('<div class="bottomNav"></div>');b.after(h);var p=c(".bottomNav", f);p.css("display","block");
9p.css({bottom:a.bottomNavMarginBottom+"px",top:"auto"});f.width(a.width);f.height(a.height);n.width(a.width);n.height(a.height);l.height(a.height);a.showBottomNav||p.css("display","none");a.showOnInitBottomNav||p.css("left","-5000px");0==a.numberOfThumbsPerScreen&&(a.numberOfThumbsPerScreen=Math.floor((a.origWidth-g.width()-k.width())/(a.imageWidth+2*a.border)));var m=0,d={current_img_no:0,currentImg:0,currentNavPage:0,prevNavPage:0,thumbMarginLeft:0,mouseOverBanner:!1, isCarouselScrolling:!1,carouselStep:0,timeoutID:"",intervalID:"",arcInitialTime:(new Date).getTime(),timeElapsed:0,windowWidth:0,canvas:"",ctx:"",bannerRatio:a.origWidth/a.origHeight},t=b.find("ul:first").children(),r;d.thumbMarginLeft=Math.floor((a.origWidth-g.width()-k.width()-(a.imageWidth+2*a.border)*a.numberOfThumbsPerScreen)/(a.numberOfThumbsPerScreen-1));var v,w=0,h=0;t.each(function(){d.currentImg=c(this);d.currentImg.is("li")||(d.currentImg=d.currentImg.find("li:first"));d.currentImg.is("li")&& (m++,r=c('<div class="thumbsHolder_ThumbOFF" rel="'+(m-1)+'"><div class="paddingx" style="padding:'+a.border+'px">'+d.currentImg.html()+"</div></div>"),e.append(r),r.css({width:a.imageWidth+2*a.border+"px",height:a.origHeight+"px"}),-1!=a.borderColorOFF.lastIndexOf(".png")||-1!=a.borderColorOFF.lastIndexOf(".jpg")||-1!=a.borderColorOFF.lastIndexOf(".gif")?r.css({background:"url("+a.borderColorOFF+")"}):r.css({background:a.borderColorOFF}),e.css("width",e.width()+d.thumbMarginLeft+(a.imageWidth+2* a.border)+"px"),1>=m?r.css("margin-left","0px"):r.css("margin-left",d.thumbMarginLeft+"px"));e.css("width",e.width()-d.thumbMarginLeft+"px")});D(a,e);l.css("width",l.width()-g.width()-k.width());l.css("left",g.width());d.carouselStep=(a.imageWidth+2*a.border+d.thumbMarginLeft)*a.numberOfThumbsPerScreen;0===Math.floor(d.current_img_no/a.numberOfThumbsPerScreen)&&g.addClass("carouselLeftNavDisabled");Math.floor(d.current_img_no/a.numberOfThumbsPerScreen)==Math.floor(m/a.numberOfThumbsPerScreen)&&k.addClass("carouselRightNavDisabled"); l.css({width:a.origWidth-g.width()-k.width(),left:g.width()+"px"});d.carouselStep=(a.imageWidth+2*a.border+d.thumbMarginLeft)*a.numberOfThumbsPerScreen;g.addClass("carouselLeftNavDisabled");a.numberOfThumbsPerScreen>=m&&(k.addClass("carouselRightNavDisabled"),g.css("display","none"),k.css("display","none"),l.css("left",parseInt((n.width()-(a.imageWidth+2*a.border+d.thumbMarginLeft)*m)/2,10)+"px"));n.css("top",a.height+"px");h=c(".thumbsHolder_ThumbOFF",e).find("img:first");h.css({width:a.imageWidth+ "px",height:a.imageHeight+"px"});a.grayscale&&h.addClass("lbg_carousel_grayscale");for(h=0;h<Math.ceil(m/a.numberOfThumbsPerScreen);h++)v=c('<div class="bottomNavButtonOFF" rel="'+h+'"></div>'),p.append(v),w+=parseInt(v.css("padding-left").substring(0,v.css("padding-left").length-2),10)+v.width(),v.css("margin-top","50px");p.width(w);if(a.showOnInitBottomNav)switch(a.bottomNavPosition){case "left":p.css("left",g.width()+"px");break;case "middle":p.css("left",parseInt((f.width()-w)/2,10)+"px");break; case "right":p.css("left",a.width-k.width()-p.width()+"px");break;default:p.css("left",parseInt((f.width()-w)/2,10)+"px")}var s=c(".bottomNavButtonOFF",f),x=c(".thumbsHolder_ThumbOFF",f);z(d,a,m,f,x,e,g,k,r,l,n,s);x=c(".thumbsHolder_ThumbOFF",f);x.mousedown(function(){d.effectIsRunning||c(this).attr("rel")});x.click(function(){if(void 0!=c(t[d.current_img_no]).attr("data-link")&&""!=c(t[d.current_img_no]).attr("data-link")){var b=a.target;void 0!=c(t[d.current_img_no]).attr("data-target")&&""!=c(t[d.current_img_no]).attr("data-target")&& (b=c(t[d.current_img_no]).attr("data-target"));"_blank"==b?window.open(c(t[d.current_img_no]).attr("data-link")):window.location=c(t[d.current_img_no]).attr("data-link")}});x.mouseenter(function(){-1!=a.borderColorOFF.lastIndexOf(".png")||-1!=a.borderColorOFF.lastIndexOf(".jpg")||-1!=a.borderColorOFF.lastIndexOf(".gif")?x.css({background:"url("+a.borderColorOFF+")"}):x.css({background:a.borderColorOFF});var b=c(this);d.currentImg=b;d.current_img_no=b.attr("rel");-1!=a.borderColorON.lastIndexOf(".png")|| -1!=a.borderColorON.lastIndexOf(".jpg")||-1!=a.borderColorON.lastIndexOf(".gif")?b.css({background:"url("+a.borderColorON+")"}):b.css({background:a.borderColorON});a.grayscale&&c(this).find("img:first").addClass("disabled")});x.mouseleave(function(){var b=c(this);-1!=a.borderColorOFF.lastIndexOf(".png")||-1!=a.borderColorOFF.lastIndexOf(".jpg")||-1!=a.borderColorOFF.lastIndexOf(".gif")?b.css({background:"url("+a.borderColorOFF+")"}):b.css({background:a.borderColorOFF});a.grayscale&&c(this).find("img:first").removeClass("disabled")}); g.click(function(){d.isCarouselScrolling||(clearTimeout(d.timeoutID),currentCarouselLeft=e.css("left").substr(0,e.css("left").lastIndexOf("px")),0>currentCarouselLeft&&u(-1,e,g,k,a,m,r,d,s))});k.click(function(){d.isCarouselScrolling||(clearTimeout(d.timeoutID),currentCarouselLeft=e.css("left").substr(0,e.css("left").lastIndexOf("px")),Math.abs(currentCarouselLeft-d.carouselStep)<(r.width()+d.thumbMarginLeft)*m&&u(1,e,g,k,a,m,r,d,s))});p.children().first().addClass("bottomNavButtonON");s.mousedown(function(){if(!d.isCarouselScrolling){var b= c(this).attr("rel");b!=d.currentNavPage&&(c(s[d.currentNavPage]).removeClass("bottomNavButtonON"),d.currentNavPage=b-1,u(0,e,g,k,a,m,r,d,s))}});s.mouseenter(function(){c(this).addClass("bottomNavButtonON")});s.mouseleave(function(){var a=c(this),b=a.attr("rel");d.currentNavPage!=b&&a.removeClass("bottomNavButtonON")});f.mouseenter(function(){d.mouseOverBanner=!0;clearTimeout(d.timeoutID);a.autoHideNavArrows&&a.showNavArrows&&(g.css("display","block"),k.css("display","block"))});f.mouseleave(function(){d.mouseOverBanner= !1;a.autoHideNavArrows&&a.showNavArrows&&(g.css("display","none"),k.css("display","none"));0<a.autoPlay&&m>a.numberOfThumbsPerScreen&&(clearTimeout(d.timeoutID),direction=-1,k.hasClass("carouselRightNavDisabled")&&(direction=0),d.timeoutID=setTimeout(function(){u(0,e,g,k,a,m,r,d,s)},1E3*a.autoPlay))});a.enableTouchScreen&&(h=Math.floor(1E5*Math.random()),f.wrap('<div id="multimediaClassicCarousel_'+h+'" style="position:relative;" />'),c("#multimediaClassicCarousel_"+h).width(a.width+1),c("#multimediaClassicCarousel_"+ h).height(a.height),f.css({cursor:"url("+a.absUrl+"skins/hand.cur),url("+a.absUrl+"skins/hand.cur),move",left:"0px",position:"absolute"}),f.draggable({axis:"x",containment:"parent",start:function(a,b){origLeft=c(this).css("left")},stop:function(a,b){d.effectIsRunning||(finalLeft=c(this).css("left"),origLeft<finalLeft?g.hasClass("carouselLeftNavDisabled")||g.click():k.hasClass("carouselRightNavDisabled")||k.click());c(this).css("left","0px")}}));var y=!1;c(window).resize(function(){var h=String(navigator.userAgent).toLowerCase(); if("undefined"==String(c(t[d.current_img_no]).attr("data-video-selfhosted"))||-1!=h.indexOf("android")||-1!=h.indexOf("ipad")||-1!=h.indexOf("iphone")||-1!=h.indexOf("ipod")||-1!=h.indexOf("webos")){var u=C();doResizeNow=!0;
9-1!=u&&9==u&&0==d.windowWidth&&(doResizeNow=!1);d.windowWidth==c(window).width()?(doResizeNow=!1,a.windowCurOrientation==window.orientation||-1==h.indexOf("android")&&-1==h.indexOf("ipad")&&-1==h.indexOf("iphone")&&-1==h.indexOf("ipod")&&-1==h.indexOf("webos")||(a.windowCurOrientation= window.orientation,doResizeNow=!0)):d.windowWidth=c(window).width();a.responsive&&doResizeNow&&(!1!==y&&clearTimeout(y),y=setTimeout(function(){A(d,a,m,t,b,q,f,g,p,v,s,e,l,n,x,r,k,w)},300))}});h=f.find("img:first");h[0].complete?(c(".myloader",f).css("display","none"),0<a.autoPlay&&m>a.numberOfThumbsPerScreen&&(d.timeoutID=setTimeout(function(){u(0,e,g,k,a,m,r,d,s)},1E3*a.autoPlay))):h.load(function(){c(".myloader",f).css("display","none");0<a.autoPlay&&m>a.numberOfThumbsPerScreen&&(d.timeoutID=setTimeout(function(){u(0, e,g,k,a,m,r,d,s)},1E3*a.autoPlay))})})};c.fn.logo_carousel.defaults={skin:"black",width:960,height:384,width100Proc:!1,height100Proc:!1,autoPlay:4,numberOfThumbsPerScreen:0,border:0,target:"_blank",showNavArrows:!0,showOnInitNavArrows:!0,autoHideNavArrows:!1,showBottomNav:!0,showOnInitBottomNav:!0,enableTouchScreen:!0,absUrl:"",showTooltip:!0,grayscale:!1,borderColorOFF:"transparent",borderColorON:"#FF0000",imageWidth:155,imageHeight:100,responsive:!1,responsiveRelativeToBrowser:!1,bottomNavMarginBottom:0, bottomNavPosition:"right",origWidth:0,origHeight:0,origWidthThumbsHolderVisibleWrapper:0,windowOrientationScreenSize0:0,windowOrientationScreenSize90:0,windowOrientationScreenSize_90:0,windowCurOrientation:0}})(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.