PageSourceSearch

https://www.ausiex.com.au/Static/Base/common/plugins/colorbox/jquery.colorbox.min.js

js ausiex.com.au collected 2026-10-05 06:30:29 UTC 11,420 bytes, 7 lines download raw bytes

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