PageSourceSearch

https://ekkehard-koch.de/assets/jquery/colorbox/1.4.31/js/colorbox.min.js

js ekkehard-koch.de collected 2026-10-06 22:11:24 UTC 10,965 bytes, 2 lines download raw bytes

1/* ColorBox v1.4.31, (c) 2011 Jack Moore - jacklmoore.com, MIT license */
2(function(e,t,n){function Y(n,r,i){var o=t.createElement(n);return r&&(o.id=s+r),i&&(o.style.cssText=i),e(o)}function Z(){return n.innerHeight?n.innerHeight:e(n).height()}function et(e){var t=E.length,n=(q+e)%t;return n<0?t+n:n}function tt(e,t){return Math.round((/%/.test(e)?(t==="x"?S.width():Z())/100:1)*parseInt(e,10))}function nt(e,t){return e.photo||e.photoRegex.test(t)}function rt(e,t){return e.retinaUrl&&n.devicePixelRatio>1?t.replace(e.photoRegex,e.retinaSuffix):t}function it(e){"contains"in d[0]&&!d[0].contains(e.target)&&(e.stopPropagation(),d.focus())}function st(){var t,n=e.data(I,i);n==null?(P=e.extend({},r),console&&console.log&&console.log("Error: cboxElement missing settings object")):P=e.extend({},n);for(t in P)e.isFunction(P[t])&&t.slice(0,2)!=="on"&&(P[t]=P[t].call(I));P.rel=P.rel||I.rel||e(I).data("rel")||"nofollow",P.href=P.href||e(I).attr("href"),P.title=P.title||I.title,typeof P.href=="string"&&(P.href=e.trim(P.href))}function ot(n,r){e(t).trigger(n),D.trigger(n),e.isFunction(r)&&r.call(I)}function at(n){W||(I=n,st(),E=e(I),q=0,P.rel!=="nofollow"&&(E=e("."+o).filter(function(){var t=e.data(this,i),n;return t&&(n=e(this).data("rel")||t.rel||this.rel),n===P.rel}),q=E.index(I),q===-1&&(E=E.add(I),q=E.length-1)),p.css({opacity:parseFloat(P.opacity),cursor:P.overlayClose?"pointer":"auto",visibility:"visible"}).show(),J&&d.add(p).removeClass(J),P.className&&d.add(p).addClass(P.className),J=P.className,P.closeButton?M.html(P.close).appendTo(m):M.appendTo("<div/>"),U||(U=z=!0,d.css({visibility:"hidden",display:"block"}),x=Y($,"LoadedContent","width:0; height:0; overflow:hidden"),m.css({width:"",height:""}).append(x),H=g.height()+w.height()+m.outerHeight(!0)-m.height(),B=y.width()+b.width()+m.outerWidth(!0)-m.width(),j=x.outerHeight(!0),F=x.outerWidth(!0),P.w=tt(P.initialWidth,"x"),P.h=tt(P.initialHeight,"y"),x.css({width:"",height:P.h}),V.position(),ot(u,P.onOpen),_.add(C).hide(),d.focus(),P.trapFocus&&t.addEventListener&&(t.addEventListener("focus",it,!0),D.one(c,function(){t.removeEventListener("focus",it,!0)})),P.returnFocus&&D.one(c,function(){e(I).focus()})),ct())}function ft(){!d&&t.body&&(G=!1,S=e(n),d=Y($).attr({id:i,"class":e.support.opacity===!1?s+"IE":"",role:"dialog",tabindex:"-1"}).hide(),p=Y($,"Overlay").hide(),N=e([Y($,"LoadingOverlay")[0],Y($,"LoadingGraphic")[0]]),v=Y($,"Wrapper"),m=Y($,"Content").append(C=Y($,"Title"),k=Y($,"Current"),O=e('<button type="button"/>').attr({id:s+"Previous"}),A=e('<button type="button"/>').attr({id:s+"Next"}),L=Y("button","Slideshow"),N),M=e('<button type="button"/>').attr({id:s+"Close"}),v.append(Y($).append(Y($,"TopLeft"),g=Y($,"TopCenter"),Y($,"TopRight")),Y($,!1,"clear:left").append(y=Y($,"MiddleLeft"),m,b=Y($,"MiddleRight")),Y($,!1,"clear:left").append(Y($,"BottomLeft"),w=Y($,"BottomCenter"),Y($,"BottomRight"))).find("div div").css({"float":"left"}),T=Y($,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),_=A.add(O).add(k).add(L),e(t.body).append(p,d.append(v,T)))}function lt(){function n(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||(e.preventDefault(),at(this))}return d?(G||(G=!0,A.click(function(){V.next()}),O.click(function(){V.prev()}),M.click(function(){V.close()}),p.click(function(){P.overlayClose&&V.close()}),e(t).bind("keydown."+s,function(e){var t=e.keyCode;U&&P.escKey&&t===27&&(e.preventDefault(),V.close()),U&&P.arrowKey&&E[1]&&!e.altKey&&(t===37?(e.preventDefault(),O.click()):t===39&&(e.preventDefault(),A.click()))}),e.isFunction(e.fn.on)?e(t).on("click."+s,"."+o,n):e("."+o).live("click."+s,n)),!0):!1}function ct(){var r,i,o=V.prep,u,f=++K;z=!0,R=!1,I=E[q],st(),ot(h),ot(a,P.onLoad),P.h=P.height?tt(P.height,"y")-j-H:P.innerHeight&&tt(P.innerHeight,"y"),P.w=P.width?tt(P.width,"x")-F-B:P.innerWidth&&tt(P.innerWidth,"x"),P.mw=P.w,P.mh=P.h,P.maxWidth&&(P.mw=tt(P.maxWidth,"x")-F-B,P.mw=P.w&&P.w<P.mw?P.w:P.mw),P.maxHeight&&(P.mh=tt(P.maxHeight,"y")-j-H,P.mh=P.h&&P.h<P.mh?P.h:P.mh),r=P.href,X=setTimeout(function(){N.show()},100),P.inline?(u=Y($).hide().insertBefore(e(r)[0]),D.one(h,function(){u.replaceWith(x.children())}),o(e(r))):P.iframe?o(" "):P.html?o(P.html):nt(P,r)?(r=rt(P,r),R=t.createElement("img"),e(R).addClass(s+"Photo").bind("error",function(){P.title=!1,o(Y($,"Error").html(P.imgError))}).one("load",function(){var t;if(f!==K)return;e.each(["alt","longdesc","aria-describedby"],function(t,n){var r=e(I).attr(n)||e(I).attr("data-"+n);r&&R.setAttribute(n,r)}),P.retinaImage&&n.devicePixelRatio>1&&(R.height=R.height/n.devicePixelRatio,R.width=R.width/n.devicePixelRatio),P.scalePhotos&&(i=function(){R.height-=R.height*t,R.width-=R.width*t},P.mw&&R.width>P.mw&&(t=(R.width-P.mw)/R.width,i()),P.mh&&R.height>P.mh&&(t=(R.height-P.mh)/R.height,i())),P.h&&(R.style.marginTop=Math.max(P.mh-R.height,0)/2+"px"),E[1]&&(P.loop||E[q+1])&&(R.style.cursor="pointer",R.onclick=function(){V.next()}),R.style.width=R.width+"px",R.style.height=R.height+"px",setTimeout(function(){o(R)},1)}),setTimeout(function(){R.src=r},1)):r&&T.load(r,P.data,function(t,n){f===K&&o(n==="error"?Y($,"Error").html(P.xhrError):e(this).contents())})}var r={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHe
2ight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:undefined,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1},i="colorbox",s="cbox",o=s+"Element",u=s+"_open",a=s+"_load",f=s+"_complete",l=s+"_cleanup",c=s+"_closed",h=s+"_purge",p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D=e("<a/>"),P,H,B,j,F,I,q,R,U,z,W,X,V,$="div",J,K=0,Q={},G,ut=function(){function i(){clearTimeout(r)}function o(){if(P.loop||E[q+1])i(),r=setTimeout(V.next,P.slideshowSpeed)}function u(){L.html(P.slideshowStop).unbind(n).one(n,c),D.bind(f,o).bind(a,i),d.removeClass(t+"off").addClass(t+"on")}function c(){i(),D.unbind(f,o).unbind(a,i),L.html(P.slideshowStart).unbind(n).one(n,function(){V.next(),u()}),d.removeClass(t+"on").addClass(t+"off")}function h(){e=!1,L.hide(),i(),D.unbind(f,o).unbind(a,i),d.removeClass(t+"off "+t+"on")}var e,t=s+"Slideshow_",n="click."+s,r;return function(){e?P.slideshow||(D.unbind(l,h),h()):P.slideshow&&E[1]&&(e=!0,D.one(l,h),P.slideshowAuto?u():c(),L.show())}}();if(e.colorbox)return;e(ft),V=e.fn[i]=e[i]=function(t,n){var s=this;t=t||{},ft();if(lt()){if(e.isFunction(s))s=e("<a/>"),t.open=!0;else if(!s[0])return s;n&&(t.onComplete=n),s.each(function(){e.data(this,i,e.extend({},e.data(this,i)||r,t))}).addClass(o),(e.isFunction(t.open)&&t.open.call(s)||t.open)&&at(s[0])}return s},V.position=function(t,n){function l(){g[0].style.width=w[0].style.width=m[0].style.width=parseInt(d[0].style.width,10)-B+"px",m[0].style.height=y[0].style.height=b[0].style.height=parseInt(d[0].style.height,10)-H+"px"}var r,i=0,o=0,u=d.offset(),a,f;S.unbind("resize."+s),d.css({top:-9e4,left:-9e4}),a=S.scrollTop(),f=S.scrollLeft(),P.fixed?(u.top-=a,u.left-=f,d.css({position:"fixed"})):(i=a,o=f,d.css({position:"absolute"})),P.right!==!1?o+=Math.max(S.width()-P.w-F-B-tt(P.right,"x"),0):P.left!==!1?o+=tt(P.left,"x"):o+=Math.round(Math.max(S.width()-P.w-F-B,0)/2),P.bottom!==!1?i+=Math.max(Z()-P.h-j-H-tt(P.bottom,"y"),0):P.top!==!1?i+=tt(P.top,"y"):i+=Math.round(Math.max(Z()-P.h-j-H,0)/2),d.css({top:u.top,left:u.left,visibility:"visible"}),v[0].style.width=v[0].style.height="9999px",r={width:P.w+F+B,height:P.h+j+H,top:i,left:o};if(t){var c=0;e.each(r,function(e){if(r[e]!==Q[e]){c=t;return}}),t=c}Q=r,t||d.css(r),d.dequeue().animate(r,{duration:t||0,complete:function(){l(),z=!1,v[0].style.width=P.w+F+B+"px",v[0].style.height=P.h+j+H+"px",P.reposition&&setTimeout(function(){S.bind("resize."+s,V.position)},1),n&&n()},step:l})},V.resize=function(e){var t;U&&(e=e||{}
2,e.width&&(P.w=tt(e.width,"x")-F-B),e.innerWidth&&(P.w=tt(e.innerWidth,"x")),x.css({width:P.w}),e.height&&(P.h=tt(e.height,"y")-j-H),e.innerHeight&&(P.h=tt(e.innerHeight,"y")),!e.innerHeight&&!e.height&&(t=x.scrollTop(),x.css({height:"auto"}),P.h=x.height()),x.css({height:P.h}),t&&x.scrollTop(t),V.position(P.transition==="none"?0:P.speed))},V.prep=function(n){function u(){return P.w=P.w||x.width(),P.w=P.mw&&P.mw<P.w?P.mw:P.w,P.w}function a(){return P.h=P.h||x.height(),P.h=P.mh&&P.mh<P.h?P.mh:P.h,P.h}if(!U)return;var r,o=P.transition==="none"?0:P.speed;x.empty().remove(),x=Y($,"LoadedContent").append(n),x.hide().appendTo(T.show()).css({width:u(),overflow:P.scrolling?"auto":"hidden"}).css({height:a()}).prependTo(m),T.hide(),e(R).css({"float":"none"}),r=function(){function c(){e.support.opacity===!1&&d[0].style.removeAttribute("filter")}var n=E.length,r,u="frameBorder",a="allowTransparency",l;if(!U)return;l=function(){clearTimeout(X),N.hide(),ot(f,P.onComplete)},C.html(P.title).add(x).show(),n>1?(typeof P.current=="string"&&k.html(P.current.replace("{current}",q+1).replace("{total}",n)).show(),A[P.loop||q<n-1?"show":"hide"]().html(P.next),O[P.loop||q?"show":"hide"]().html(P.previous),ut(),P.preloading&&e.each([et(-1),et(1)],function(){var n,r,s=E[this],o=e.data(s,i);o&&o.href?(n=o.href,e.isFunction(n)&&(n=n.call(s))):n=e(s).attr("href"),n&&nt(o,n)&&(n=rt(o,n),r=t.createElement("img"),r.src=n)})):_.hide(),P.iframe?(r=Y("iframe")[0],u in r&&(r[u]=0),a in r&&(r[a]="true"),P.scrolling||(r.scrolling="no"),e(r).attr({src:P.href,name:(new Date).getTime(),"class":s+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",l).appendTo(x),D.one(h,function(){r.src="//about:blank"}),P.fastIframe&&e(r).trigger("load")):l(),P.transition==="fade"?d.fadeTo(o,1,c):c()},P.transition==="fade"?d.fadeTo(o,0,function(){V.position(0,r)}):V.position(o,r)},V.next=function(){!z&&E[1]&&(P.loop||E[q+1])&&(q=et(1),at(E[q]))},V.prev=function(){!z&&E[1]&&(P.loop||q)&&(q=et(-1),at(E[q]))},V.close=function(){U&&!W&&(W=!0,U=!1,ot(l,P.onCleanup),S.unbind("."+s),p.fadeTo(P.fadeOut||0,0),d.stop().fadeTo(P.fadeOut||0,0,function(){d.add(p).css({opacity:1,cursor:"auto"}).hide(),ot(h),x.empty().remove(),setTimeout(function(){W=!1,ot(c,P.onClosed)},1)}))},V.remove=function(){if(!d)return;d.stop(),e.colorbox.close(),d.stop().remove(),p.remove(),W=!1,d=null,e("."+o).removeData(i).removeClass(o),e(t).unbind("click."+s)},V.element=function(){return e(I)},V.settings=r})(jQuery,document,window);

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.