PageSourceSearch

https://myrtlebeachartmuseum.org/wp-content/plugins/lbg_logoshowcase/carousel/js/logo_carousel.js

js myrtlebeachartmuseum.org collected 2026-10-02 10:07:47 UTC 13,447 bytes, 34 lines download raw bytes

1/*
2 * Carousel Logo Showcase v2.1
3 *
4 * Copyright 2013-2022 LambertGroup
5 *
6 */
7
8
9 (function(d){function D(a,c,l,g,r,h,m,e,n,f,k,u,p,b,v,t,w){g=r.parent().parent().width();c.responsiveRelativeToBrowser&&(g=d(window).width());c.width100Proc&&(c.width=g);if(c.origWidth!=g||c.width100Proc)c.origWidth>g||c.width100Proc?c.width=g:c.width100Proc||(c.width=c.origWidth),c.width=parseInt(c.width,10),c.height=parseInt(c.height,10),clearTimeout(a.timeoutID),B(a,c,l,m,b,k,e,t,v,u,p,f,w,n),0<c.autoPlay&&l>a.numberOfThumbsPerScreen&&(a.timeoutID=setTimeout(function(){x(0,k,e,t,c,l,v,a)},1E3*
10 c.autoPlay))}function B(a,c,l,g,r,h,m,e,n,f,k,u,p,b){a.prev_numberOfThumbsPerScreen=a.numberOfThumbsPerScreen;a.numberOfThumbsPerScreen=Math.min(Math.floor((c.width-m.width()-e.width())/(c.imageWidth+2*c.border)),c.numberOfThumbsPerScreen);a.thumbMarginLeft=Math.ceil((c.width-m.width()-e.width()-(c.imageWidth+2*c.border)*a.numberOfThumbsPerScreen)/(a.numberOfThumbsPerScreen+1));r.css({"margin-left":a.thumbMarginLeft+"px"});1<a.numberOfThumbsPerScreen&&(a.thumbMarginLeft=Math.floor((c.width-m.width()-
11 e.width()-(c.imageWidth+2*c.border)*a.numberOfThumbsPerScreen)/(a.numberOfThumbsPerScreen-1)),r.css({"margin-left":a.thumbMarginLeft+"px"}),h.children().first().css("margin-left","0px"));a.carouselStep=(c.imageWidth+2*c.border+a.thumbMarginLeft)*a.numberOfThumbsPerScreen;g.width(c.width);k.width(c.width);f.css("width",c.width-m.width()-e.width());c.origWidthThumbsHolderVisibleWrapper=c.origWidth-m.width()-e.width();a.numberOfThumbsPerScreen>=l&&f.css("left",parseInt((c.width-(r.width()+a.thumbMarginLeft)*
12 l)/2,10)+parseInt(a.thumbMarginLeft/2,10)+"px");h.width((a.thumbMarginLeft+c.imageWidth+2*c.border)*l);C(a,c,l,g,m,e,b,u,p,h)}function x(a,c,l,g,r,h,m,e){c.css("opacity","0.5");e.isCarouselScrolling=!0;d(e.bottomNavButs[e.currentNavPage]).removeClass("bottomNavButtonON");0!=a?e.currentNavPage+=a:e.currentNavPage==Math.ceil(h/e.numberOfThumbsPerScreen)-1?e.currentNavPage=0:e.currentNavPage++;d(e.bottomNavButs[e.currentNavPage]).addClass("bottomNavButtonON");c.animate({opacity:1,left:-1*e.currentNavPage*
13 e.carouselStep+"px"},500,"easeOutCubic",function(){E(e,c,l,g,r,h,m);e.isCarouselScrolling=!1;0<r.autoPlay&&h>e.numberOfThumbsPerScreen&&(clearTimeout(e.timeoutID),e.timeoutID=setTimeout(function(){x(0,c,l,g,r,h,m,e)},1E3*r.autoPlay))})}function E(a,c,l,g,r,h,m){r=c.css("left").substr(0,c.css("left").lastIndexOf("px"));0>r?l.hasClass("carouselLeftNavDisabled")&&l.removeClass("carouselLeftNavDisabled"):l.addClass("carouselLeftNavDisabled");Math.abs(r-a.carouselStep)<(c.children().first().width()+a.thumbMarginLeft)*
14 h?g.hasClass("carouselRightNavDisabled")&&g.removeClass("carouselRightNavDisabled"):g.addClass("carouselRightNavDisabled")}function F(){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 G(a,c){a.showTooltip&&(d(".thumbsHolder_ThumbOFF",c).addClass("lbg_carousel_tooltip"),d(".lbg_carousel_tooltip").tooltip({content:function(){return d(this).attr("title")},position:{my:"center bottom-20",
15 at:"center top",using:function(l,g){d(this).css(l);d("<div>").addClass("lbg_carousel_arrow").addClass(g.vertical).addClass(g.horizontal).appendTo(this)}}}))}function C(a,c,l,g,r,h,m,e,n,f,k){m.empty();for(var u=0;u<Math.ceil(l/a.numberOfThumbsPerScreen);u++)e=d('<div class="bottomNavButtonOFF" rel="'+u+'"></div>'),m.append(e),n+=parseInt(e.css("padding-left").substring(0,e.css("padding-left").length-2),10)+e.width(),e.css("margin-top","50px");m.width(n);if(c.showOnInitBottomNav)switch(c.bottomNavPosition){case "left":m.css("left",
16 r.width()+"px");break;case "middle":m.css("left",parseInt((g.width()-n)/2,10)+"px");break;case "right":m.css("left",c.width-h.width()-m.width()+"px");break;default:m.css("left",parseInt((g.width()-n)/2,10)+"px")}a.bottomNavButs=d(".bottomNavButtonOFF",g);d(a.bottomNavButs[a.currentNavPage]).addClass("bottomNavButtonON");a.bottomNavButs.on("mousedown",function(){if(!a.isCarouselScrolling){var p=d(this).attr("rel");p!=a.currentNavPage&&(d(a.bottomNavButs[a.currentNavPage]).removeClass("bottomNavButtonON"),
17 a.currentNavPage=p-1,x(0,f,r,h,c,l,k,a))}});a.bottomNavButs.on("mouseout",function(){d(this).addClass("bottomNavButtonON")});a.bottomNavButs.on("mouseleave",function(){var p=d(this),b=p.attr("rel");a.currentNavPage!=b&&p.removeClass("bottomNavButtonON")});g=(a.currentNavPage*a.prev_numberOfThumbsPerScreen+1)/a.numberOfThumbsPerScreen;g=g===Math.floor(g)?g-1:Math.floor(g);0>g&&(g=0);g==a.currentNavPage&&f.css({left:-1*a.currentNavPage*a.carouselStep+"px"});g!=a.currentNavPage&&(d(a.bottomNavButs[a.currentNavPage]).removeClass("bottomNavButtonON"),
18 a.currentNavPage=g-1,x(0,f,r,h,c,l,k,a))}d.fn.logo_carousel=function(a){a=d.extend({},d.fn.logo_carousel.defaults,a);return this.each(function(){var c=d(this),l=c.parent().width();a.responsiveRelativeToBrowser&&(l=d(window).width());a.origWidth=a.width;a.width100Proc&&(a.width=l);a.height=a.imageHeight+2*a.border;a.origHeight=a.height;var g=d("<div></div>").addClass("logo_carousel").addClass(a.skin),r=d('<div class="thumbsHolderWrapper"><div class="thumbsHolderVisibleWrapper"><div class="thumbsHolder"></div></div></div>');
19 c.wrap(g);c.after(r);var h=c.parent(".logo_carousel");r=d(".bannerControls",h);var m=d(".thumbsHolderWrapper",h),e=d(".thumbsHolderVisibleWrapper",h),n=d(".thumbsHolder",h);var f=d('<div class="carouselLeftNav"></div>');var k=d('<div class="carouselRightNav"></div>');m.append(f);m.append(k);f.css({"margin-top":parseInt((a.height-f.height())/2,10)+"px"});k.css({"margin-top":parseInt((a.height-k.height())/2,10)+"px",right:"0"});f.css("display","none");k.css("display","none");a.showNavArrows?a.showOnInitNavArrows&&
20 (f.css("display","block"),k.css("display","block")):(f.width(0),k.width(0),a.width=a.width,a.origWidth=a.width,f.width(0),k.width(0));a.responsive&&(a.origWidth!=l||a.width100Proc)&&(a.width=a.origWidth>l||a.width100Proc?l:a.origWidth);a.width=parseInt(a.width,10);a.height=parseInt(a.height,10);n.css("width","0px");l=d('<div class="bottomNav"></div>');c.after(l);var u=d(".bottomNav",h);u.css("display","block");
20u.css({bottom:a.bottomNavMarginBottom+"px",top:"auto"});h.width(a.width);h.height(a.height);
21 m.width(a.width);m.height(a.height);e.height(a.height);a.showBottomNav||u.css("display","none");a.showOnInitBottomNav||u.css("left","-5000px");0==a.numberOfThumbsPerScreen&&(a.numberOfThumbsPerScreen=Math.floor((a.origWidth-f.width()-k.width())/(a.imageWidth+2*a.border)));var p=0,b={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,
22 canvas:"",ctx:"",bannerRatio:a.origWidth/a.origHeight,numberOfThumbsPerScreen:a.numberOfThumbsPerScreen,prev_numberOfThumbsPerScreen:0,bottomNavButs:""},v=c.find("ul:first").children(),t;b.thumbMarginLeft=Math.floor((a.origWidth-f.width()-k.width()-(a.imageWidth+2*a.border)*b.numberOfThumbsPerScreen)/(b.numberOfThumbsPerScreen-1));a.centerPlugin&&h.css({margin:"0 auto"});v.each(function(){b.currentImg=d(this);b.currentImg.is("li")||(b.currentImg=b.currentImg.find("li:first"));b.currentImg.is("li")&&
23 (p++,t=d('<div class="thumbsHolder_ThumbOFF" rel="'+(p-1)+'"><div class="paddingx" style="padding:'+a.border+'px">'+b.currentImg.html()+"</div></div>"),n.append(t),t.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")?t.css({background:"url("+a.borderColorOFF+")"}):t.css({background:a.borderColorOFF}),n.css("width",n.width()+b.thumbMarginLeft+(a.imageWidth+2*
24 a.border)+"px"),1>=p?t.css("margin-left","0px"):t.css("margin-left",b.thumbMarginLeft+"px"));n.css("width",n.width()-b.thumbMarginLeft+"px")});G(a,n);e.css("width",e.width()-f.width()-k.width());e.css("left",f.width());b.carouselStep=(a.imageWidth+2*a.border+b.thumbMarginLeft)*b.numberOfThumbsPerScreen;0===Math.floor(b.current_img_no/b.numberOfThumbsPerScreen)&&f.addClass("carouselLeftNavDisabled");Math.floor(b.current_img_no/b.numberOfThumbsPerScreen)==Math.floor(p/b.numberOfThumbsPerScreen)&&k.addClass("carouselRightNavDisabled");
25 e.css({width:a.origWidth-f.width()-k.width(),left:f.width()+"px"});b.carouselStep=(a.imageWidth+2*a.border+b.thumbMarginLeft)*b.numberOfThumbsPerScreen;f.addClass("carouselLeftNavDisabled");b.numberOfThumbsPerScreen>=p&&(k.addClass("carouselRightNavDisabled"),f.css("display","none"),k.css("display","none"),e.css("left",parseInt((m.width()-(a.imageWidth+2*a.border+b.thumbMarginLeft)*p)/2,10)+"px"));m.css("top",a.height+"px");l=d(".thumbsHolder_ThumbOFF",n).find("img:first");l.css({width:a.imageWidth+
26 "px",height:a.imageHeight+"px"});a.grayscale&&l.addClass("lbg_carousel_grayscale");b.bottomNavButs=d(".bottomNavButtonOFF",h);C(b,a,p,h,f,k,u,void 0,0,n);var w=d(".thumbsHolder_ThumbOFF",h);B(b,a,p,h,w,n,f,k,t,e,m,void 0,0,u);w=d(".thumbsHolder_ThumbOFF",h);w.on("mousedown",function(){b.effectIsRunning||d(this).attr("rel")});w.on("click",function(){if(void 0!=d(v[b.current_img_no]).attr("data-link")&&""!=d(v[b.current_img_no]).attr("data-link")){var q=a.target;void 0!=d(v[b.current_img_no]).attr("data-target")&&
27 ""!=d(v[b.current_img_no]).attr("data-target")&&(q=d(v[b.current_img_no]).attr("data-target"));"_blank"==q?window.open(d(v[b.current_img_no]).attr("data-link")):window.location=d(v[b.current_img_no]).attr("data-link")}});w.on("mouseenter",function(){-1!=a.borderColorOFF.lastIndexOf(".png")||-1!=a.borderColorOFF.lastIndexOf(".jpg")||-1!=a.borderColorOFF.lastIndexOf(".gif")?w.css({background:"url("+a.borderColorOFF+")"}):w.css({background:a.borderColorOFF});var q=d(this);b.currentImg=q;b.current_img_no=
28 q.attr("rel");-1!=a.borderColorON.lastIndexOf(".png")||-1!=a.borderColorON.lastIndexOf(".jpg")||-1!=a.borderColorON.lastIndexOf(".gif")?q.css({background:"url("+a.borderColorON+")"}):q.css({background:a.borderColorON});a.grayscale&&d(this).find("img:first").addClass("disabled")});w.on("mouseleave",function(){var q=d(this);-1!=a.borderColorOFF.lastIndexOf(".png")||-1!=a.borderColorOFF.lastIndexOf(".jpg")||-1!=a.borderColorOFF.lastIndexOf(".gif")?q.css({background:"url("+a.borderColorOFF+")"}):q.css({background:a.borderColorOFF});
29 a.grayscale&&d(this).find("img:first").removeClass("disabled")});f.on("click",function(){if(!b.isCarouselScrolling){clearTimeout(b.timeoutID);var q=n.css("left").substr(0,n.css("left").lastIndexOf("px"));0>q&&x(-1,n,f,k,a,p,t,b)}});k.on("click",function(){if(!b.isCarouselScrolling){clearTimeout(b.timeoutID);var q=n.css("left").substr(0,n.css("left").lastIndexOf("px"));Math.abs(q-b.carouselStep)<(t.width()+b.thumbMarginLeft)*p&&x(1,n,f,k,a,p,t,b)}});h.on("mouseenter",function(){b.mouseOverBanner=!0;
30 clearTimeout(b.timeoutID);a.autoHideNavArrows&&a.showNavArrows&&(f.css("display","block"),k.css("display","block"))});h.on("mouseleave",function(){b.mouseOverBanner=!1;a.autoHideNavArrows&&a.showNavArrows&&(f.css("display","none"),k.css("display","none"));0<a.autoPlay&&p>b.numberOfThumbsPerScreen&&(clearTimeout(b.timeoutID),k.hasClass("carouselRightNavDisabled"),b.timeoutID=setTimeout(function(){x(0,n,f,k,a,p,t,b)},1E3*a.autoPlay))});a.enableTouchScreen&&h.swipe({swipe:function(q,z,y,H,I){b.effectIsRunning||
31 ("right"==z?f.hasClass("carouselLeftNavDisabled")||f.click():k.hasClass("carouselRightNavDisabled")||k.click())}});var A=!1;d(window).resize(function(){var q=String(navigator.userAgent).toLowerCase();if("undefined"==String(d(v[b.current_img_no]).attr("data-video-selfhosted"))||-1!=q.indexOf("android")||-1!=q.indexOf("ipad")||-1!=q.indexOf("iphone")||-1!=q.indexOf("ipod")||-1!=q.indexOf("webos")){var z=F(),y=!0;-1!=z&&9==z&&0==b.windowWidth&&(y=!1);b.windowWidth==d(window).width()?(y=!1,a.windowCurOrientation==
32 window.orientation||-1==q.indexOf("android")&&-1==q.indexOf("ipad")&&-1==q.indexOf("iphone")&&-1==q.indexOf("ipod")&&-1==q.indexOf("webos")||(a.windowCurOrientation=window.orientation,y=!0)):b.windowWidth=d(window).width();a.responsive&&y&&(!1!==A&&clearTimeout(A),A=setTimeout(function(){D(b,a,p,v,c,r,h,f,u,void 0,n,e,m,w,t,k,0)},300))}});l=h.find("img:first");
32if(l[0].complete)d(".myloader",h).css("display","none"),0<a.autoPlay&&p>b.numberOfThumbsPerScreen&&(b.timeoutID=setTimeout(function(){x(0,
33 n,f,k,a,p,t,b)},1E3*a.autoPlay));else l.on("load",function(){d(".myloader",h).css("display","none");0<a.autoPlay&&p>b.numberOfThumbsPerScreen&&(b.timeoutID=setTimeout(function(){x(0,n,f,k,a,p,t,b)},1E3*a.autoPlay))})})};d.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:"",
34 showTooltip:!0,grayscale:!1,borderColorOFF:"transparent",borderColorON:"#FF0000",imageWidth:155,imageHeight:100,responsive:!1,responsiveRelativeToBrowser:!1,centerPlugin:!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.