PageSourceSearch

https://www.gymnasium-odenthal.de/wp-content/cache/min/1/wp-conten…/js/logo_carousel.js?ver=1787930729

js gymnasium-odenthal.de collected 2026-10-04 15:31:51 UTC 13,358 bytes, 1 lines download raw bytes

1(function(d){function A(a,b,k,m,h,p,l,e,g,f,r,n,c,t,q,w,u,x){responsiveWidth=h.parent().parent().width();b.responsiveRelativeToBrowser&&(responsiveWidth=d(window).width());b.width100Proc&&(b.width=responsiveWidth);if(b.origWidth!=responsiveWidth||b.width100Proc)b.origWidth>responsiveWidth||b.width100Proc?b.width=responsiveWidth:b.width100Proc||(b.width=b.origWidth),b.width=parseInt(b.width,10),b.height=parseInt(b.height,10),clearTimeout(a.timeoutID),y(a,b,k,l,q,n,e,u,w,c,t,r,f,x,g),0<b.autoPlay&&k>a.numberOfThumbsPerScreen&&(a.timeoutID=setTimeout(function(){v(0,n,e,u,b,k,w,a,r)},1E3*b.autoPlay))}function y(a,b,d,m,h,p,l,e,g,f,r,n,c,t,q){a.prev_numberOfThumbsPerScreen=a.numberOfThumbsPerScreen;a.numberOfThumbsPerScreen=Math.floor((b.width-l.width()-e.width())/(b.imageWidth+2*b.border));a.thumbMarginLeft=Math.ceil((b.width-l.width()-e.width()-(b.imageWidth+2*b.border)*a.numberOfThumbsPerScreen)/(a.numberOfThumbsPerScreen+1));h.css({"margin-left":a.thumbMarginLeft+"px"});1<a.numberOfThumbsPerScreen&&(a.thumbMarginLeft=Math.floor((b.width-l.width()-e.width()-(b.imageWidth+2*b.border)*a.numberOfThumbsPerScreen)/(a.numberOfThumbsPerScreen-1)),h.css({"margin-left":a.thumbMarginLeft+"px"}),p.children().first().css("margin-left","0px"));a.carouselStep=(b.imageWidth+2*b.border+a.thumbMarginLeft)*a.numberOfThumbsPerScreen;m.width(b.width);r.width(b.width);f.css("width",b.width-l.width()-e.width());b.origWidthThumbsHolderVisibleWrapper=b.origWidth-l.width()-e.width();a.numberOfThumbsPerScreen>=d&&f.css("left",parseInt((b.width-(h.width()+a.thumbMarginLeft)*d)/2,10)+parseInt(a.thumbMarginLeft/2,10)+"px");p.width((a.thumbMarginLeft+b.imageWidth+2*b.border)*d);z(a,b,d,m,l,e,q,c,t,n,p)}function v(a,b,k,m,h,p,l,e,g){b.css("opacity","0.5");e.isCarouselScrolling=!0;d(g[e.currentNavPage]).removeClass("bottomNavButtonON");0!=a?e.currentNavPage+=a:e.currentNavPage==Math.ceil(p/e.numberOfThumbsPerScreen)-1?e.currentNavPage=0:e.currentNavPage++;d(g[e.currentNavPage]).addClass("bottomNavButtonON");b.animate({opacity:1,left:-1*e.currentNavPage*e.carouselStep+"px"},500,"easeOutCubic",function(){B(e,b,k,m,h,p,l);e.isCarouselScrolling=!1;0<h.autoPlay&&p>e.numberOfThumbsPerScreen&&(clearTimeout(e.timeoutID),e.timeoutID=setTimeout(function(){v(0,b,k,m,h,p,l,e,g)},1E3*h.autoPlay))})}function B(a,b,d,m,h,p,l){currentCarouselLeft=b.css("left").substr(0,b.css("left").lastIndexOf("px"));0>currentCarouselLeft?d.hasClass("carouselLeftNavDisabled")&&d.removeClass("carouselLeftNavDisabled"):d.addClass("carouselLeftNavDisabled");Math.abs(currentCarouselLeft-a.carouselStep)<(b.children().first().width()+a.thumbMarginLeft)*p?m.hasClass("carouselRightNavDisabled")&&m.removeClass("carouselRightNavDisabled"):m.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&&(d(".thumbsHolder_ThumbOFF",b).addClass("lbg_carousel_tooltip"),d(".lbg_carousel_tooltip").tooltip({content:function(){return d(this).attr("title")},position:{my:"center bottom-20",at:"center top",using:function(a,b){d(this).css(a);d("<div>").addClass("lbg_carousel_arrow").addClass(b.vertical).addClass(b.horizontal).appendTo(this)}}}))}function z(a,b,k,m,h,p,l,e,g,f,r,n){l.empty();for(i=0;i<Math.ceil(k/a.numberOfThumbsPerScreen);i++)e=d('<div class="bottomNavButtonOFF" rel="'+i+'"></div>'),l.append(e),g+=parseInt(e.css("padding-left").substring(0,e.css("padding-left").length-2),10)+e.width(),e.css("margin-top","50px");l.width(g);if(b.showOnInitBottomNav)switch(b.bottomNavPosition){case "left":l.css("left",h.width()+"px");break;case "middle":l.css("left",parseInt((m.width()-g)/2,10)+"px");break;case "right":l.css("left",b.width-p.width()-l.width()+"px");break;default:l.css("left",parseInt((m.width()-g)/2,10)+"px")}f=d(".bottomNavButtonOFF",m);d(f[a.currentNavPage]).addClass("bottomNavButtonON");f.mousedown(function(){if(!a.isCarouselScrolling){var c=d(this).attr("rel");c!=a.currentNavPage&&(d(f[a.currentNavPage]).removeClass("bottomNavButtonON"),a.currentNavPage=c-1,v(0,r,h,p,b,k,n,a,f))}});f.mouseenter(function(){d(this).addClass("bottomNavButtonON")});f.mouseleave(function(){var c=d(this),b=c.attr("rel");a.currentNavPage!=b&&c.removeClass("bottomNavButtonON")});m=(a.currentNavPage*a.prev_numberOfThumbsPerScreen+1)/a.numberOfThumbsPerScreen;m=m===Math.floor(m)?m-1:Math.floor(m);0>m&&(m=0);m==a.currentNavPage&&r.css({left:-1*a.currentNavPage*a.carouselStep+"px"});m!=a.currentNavPage&&(d(f[a.currentNavPage]).removeClass("bottomNavButtonON"),a.currentNavPage=m-1,v(0,r,h,p,b,k,n,a,f))}d.fn.logo_carousel=function(a){a=d.extend({},d.fn.logo_carousel.defaults,a);return this.each(function(){var b=d(this);responsiveWidth=b.parent().width();a.responsiveRelativeToBrowser&&(responsiveWidth=d(window).width());a.origWidth=a.width;a.width100Proc&&(a.width=responsiveWidth);a.height=a.imageHeight+2*a.border;a.origHeight=a.height;var k=d("<div></div>").addClass("logo_carousel").addClass(a.skin),m=d('<div class="thumbsHolderWrapper"><div class="thumbsHolderVisibleWrapper"><div class="thumbsHolder"></div></div></div>');b.wrap(k);b.after(m);var h=b.parent(".logo_carousel");m=d(".bannerControls",h);var p=d(".thumbsHolderWrapper",h),l=d(".thumbsHolderVisibleWrapper",h),e=d(".thumbsHolder",h);var g=d('<div class="carouselLeftNav"></div>');var f=d('<div class="carouselRightNav"></div>');p.append(g);p.append(f);g.css({"margin-top":parseInt((a.height-g.height())/2,10)+"px"});f.css({"margin-top":parseInt((a.height-f.height())/2,10)+"px",right:"0"});g.css("display","none");f.css("display","none");a.showNavArrows?a.showOnInitNavArrows&&(g.css("display","block"),f.css("display","block")):(g.width(0),f.width(0),a.width=a.width,a.origWidth=a.width,g.width(0),f.width(0));a.responsive&&(a.origWidth!=responsiveWidth||a.width100Proc)&&(a.width=a.origWidth>responsiveWidth||a.width100Proc?responsiveWidth:a.origWidth);a.width=parseInt(a.width,10);a.height=parseInt(a.height,10);e.css("width","0px");k=d('<div class="bottomNav"></div>');b.after(k);var r=d(".bottomNav",h);r.css("display","block");
1r.css({bottom:a.bottomNavMarginBottom+"px",top:"auto"});h.width(a.width);h.height(a.height);p.width(a.width);p.height(a.height);l.height(a.height);a.showBottomNav||r.css("display","none");a.showOnInitBottomNav||r.css("left","-5000px");0==a.numberOfThumbsPerScreen&&(a.numberOfThumbsPerScreen=Math.floor((a.origWidth-g.width()-f.width())/(a.imageWidth+2*a.border)));var n=0,c={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,numberOfThumbsPerScreen:a.numberOfThumbsPerScreen,prev_numberOfThumbsPerScreen:0},t=b.find("ul:first").children(),q;c.thumbMarginLeft=Math.floor((a.origWidth-g.width()-f.width()-(a.imageWidth+2*a.border)*c.numberOfThumbsPerScreen)/(c.numberOfThumbsPerScreen-1));t.each(function(){c.currentImg=d(this);c.currentImg.is("li")||(c.currentImg=c.currentImg.find("li:first"));c.currentImg.is("li")&&(n++,q=d('<div class="thumbsHolder_ThumbOFF" rel="'+(n-1)+'"><div class="paddingx" style="padding:'+a.border+'px">'+c.currentImg.html()+"</div></div>"),e.append(q),q.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")?q.css({background:"url("+a.borderColorOFF+")"}):q.css({background:a.borderColorOFF}),e.css("width",e.width()+c.thumbMarginLeft+(a.imageWidth+2*a.border)+"px"),1>=n?q.css("margin-left","0px"):q.css("margin-left",c.thumbMarginLeft+"px"));e.css("width",e.width()-c.thumbMarginLeft+"px")});D(a,e);l.css("width",l.width()-g.width()-f.width());l.css("left",g.width());c.carouselStep=(a.imageWidth+2*a.border+c.thumbMarginLeft)*c.numberOfThumbsPerScreen;0===Math.floor(c.current_img_no/c.numberOfThumbsPerScreen)&&g.addClass("carouselLeftNavDisabled");Math.floor(c.current_img_no/c.numberOfThumbsPerScreen)==Math.floor(n/c.numberOfThumbsPerScreen)&&f.addClass("carouselRightNavDisabled");l.css({width:a.origWidth-g.width()-f.width(),left:g.width()+"px"});c.carouselStep=(a.imageWidth+2*a.border+c.thumbMarginLeft)*c.numberOfThumbsPerScreen;g.addClass("carouselLeftNavDisabled");c.numberOfThumbsPerScreen>=n&&(f.addClass("carouselRightNavDisabled"),g.css("display","none"),f.css("display","none"),l.css("left",parseInt((p.width()-(a.imageWidth+2*a.border+c.thumbMarginLeft)*n)/2,10)+"px"));p.css("top",a.height+"px");k=d(".thumbsHolder_ThumbOFF",e).find("img:first");k.css({width:a.imageWidth+"px",height:a.imageHeight+"px"});a.grayscale&&k.addClass("lbg_carousel_grayscale");var w=d(".bottomNavButtonOFF",h);z(c,a,n,h,g,f,r,void 0,0,w,e);var u=d(".thumbsHolder_ThumbOFF",h);y(c,a,n,h,u,e,g,f,q,l,p,w,void 0,0,r);u=d(".thumbsHolder_ThumbOFF",h);u.mousedown(function(){c.effectIsRunning||d(this).attr("rel")});u.click(function(){if(void 0!=d(t[c.current_img_no]).attr("data-link")&&""!=d(t[c.current_img_no]).attr("data-link")){var b=a.target;void 0!=d(t[c.current_img_no]).attr("data-target")&&""!=d(t[c.current_img_no]).attr("data-target")&&(b=d(t[c.current_img_no]).attr("data-target"));"_blank"==b?window.open(d(t[c.current_img_no]).attr("data-link")):window.location=d(t[c.current_img_no]).attr("data-link")}});u.mouseenter(function(){-1!=a.borderColorOFF.lastIndexOf(".png")||-1!=a.borderColorOFF.lastIndexOf(".jpg")||-1!=a.borderColorOFF.lastIndexOf(".gif")?u.css({background:"url("+a.borderColorOFF+")"}):u.css({background:a.borderColorOFF});var b=d(this);c.currentImg=b;c.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&&d(this).find("img:first").addClass("disabled")});u.mouseleave(function(){var b=d(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&&d(this).find("img:first").removeClass("disabled")});g.click(function(){c.isCarouselScrolling||(clearTimeout(c.timeoutID),currentCarouselLeft=e.css("left").substr(0,e.css("left").lastIndexOf("px")),0>currentCarouselLeft&&v(-1,e,g,f,a,n,q,c,w))});f.click(function(){c.isCarouselScrolling||(clearTimeout(c.timeoutID),currentCarouselLeft=e.css("left").substr(0,e.css("left").lastIndexOf("px")),Math.abs(currentCarouselLeft-c.carouselStep)<(q.width()+c.thumbMarginLeft)*n&&v(1,e,g,f,a,n,q,c,w))});h.mouseenter(function(){c.mouseOverBanner=!0;clearTimeout(c.timeoutID);a.autoHideNavArrows&&a.showNavArrows&&(g.css("display","block"),f.css("display","block"))});h.mouseleave(function(){c.mouseOverBanner=!1;a.autoHideNavArrows&&a.showNavArrows&&(g.css("display","none"),f.css("display","none"));0<a.autoPlay&&n>c.numberOfThumbsPerScreen&&(clearTimeout(c.timeoutID),direction=-1,f.hasClass("carouselRightNavDisabled")&&(direction=0),c.timeoutID=setTimeout(function(){v(0,e,g,f,a,n,q,c,w)},1E3*a.autoPlay))});a.enableTouchScreen&&h.swipe({swipe:function(a,b,d,e,h){c.effectIsRunning||("right"==b?g.hasClass("carouselLeftNavDisabled")||g.click():f.hasClass("carouselRightNavDisabled")||f.click())}});var x=!1;d(window).resize(function(){var k=String(navigator.userAgent).toLowerCase();if("undefined"==String(d(t[c.current_img_no]).attr("data-video-selfhosted"))||-1!=k.indexOf("android")||-1!=k.indexOf("ipad")||-1!=k.indexOf("iphone")||-1!=k.indexOf("ipod")||-1!=k.indexOf("webos")){var v=C();doResizeNow=!0;
1-1!=v&&9==v&&0==c.windowWidth&&(doResizeNow=!1);c.windowWidth==d(window).width()?(doResizeNow=!1,a.windowCurOrientation==window.orientation||-1==k.indexOf("android")&&-1==k.indexOf("ipad")&&-1==k.indexOf("iphone")&&-1==k.indexOf("ipod")&&-1==k.indexOf("webos")||(a.windowCurOrientation=window.orientation,doResizeNow=!0)):c.windowWidth=d(window).width();a.responsive&&doResizeNow&&(!1!==x&&clearTimeout(x),x=setTimeout(function(){A(c,a,n,t,b,m,h,g,r,void 0,w,e,l,p,u,q,f,0)},300))}});k=h.find("img:first");k[0].complete?(d(".myloader",h).css("display","none"),0<a.autoPlay&&n>c.numberOfThumbsPerScreen&&(c.timeoutID=setTimeout(function(){v(0,e,g,f,a,n,q,c,w)},1E3*a.autoPlay))):k.load(function(){d(".myloader",h).css("display","none");0<a.autoPlay&&n>c.numberOfThumbsPerScreen&&(c.timeoutID=setTimeout(function(){v(0,e,g,f,a,n,q,c,w)},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:"",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.