Codebase list jquery-colorbox / d8b4573
Imported Upstream version 1.4.17 Agustin Henze 10 years ago
18 changed file(s) with 186 addition(s) and 39 deletion(s). Raw diff Collapse all Expand all
44 Send me your language configuration files. See /i18n/jquery.colorbox-de.js as an example.
55
66 ## Changelog:
7
8 ### Version 1.4.17 - 2013/5/23
9
10 * Possible fix for a Chrome 27 issue (https://github.com/jackmoore/colorbox/pull/438#issuecomment-18334804)
11
12 ### Version 1.4.16 - 2013/5/20
13
14 * Added trapFocus setting to allow disabling of focus trapping
15
16 ### Version 1.4.15 - 2013/4/22
17
18 * Added .webp to list of recognized image extensions
19
20 ### Version 1.4.14 - 2013/4/16
21
22 * Added fadeOut property to control the closing fadeOut speed.
23 * Removed longdesc attribute for now.
24
25 ### Version 1.4.13 - 2013/4/11
26
27 * Fixed an error involving IE7/IE8 and legacy versions of jQuery
28
29 ### Version 1.4.12 - 2013/4/9
30
31 * Fixed a potential conflict with Twitter Bootstrap default img styles.
32
33 ### Version 1.4.11 - 2013/4/9
34
35 * Added `type='button'` to buttons to prevent accidental form submission
36 * Added alt and longdesc attributes to photo content if they are present on the calling element.
737
838 ### Version 1.4.10 - 2013/4/2
939
88 "popup",
99 "ui"
1010 ],
11 "version": "1.4.10",
11 "version": "1.4.17",
1212 "author": {
1313 "name": "Jack Moore",
1414 "url": "http://www.jacklmoore.com",
00 {
11 "name": "jquery-colorbox",
2 "version": "1.4.10",
2 "version": "1.4.17",
33 "main": "./jquery.colorbox-min.js",
44 "dependencies": {
55 "jquery": ">=1.3.2"
1818 $(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
1919 $(".group4").colorbox({rel:'group4', slideshow:true});
2020 $(".ajax").colorbox();
21 $(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
21 $(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:390});
2222 $(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
2323 $(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
2424 $(".inline").colorbox({inline:true, width:"50%"});
6565
6666 <h2>Other Content Types</h2>
6767 <p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
68 <p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&amp;wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
68 <p><a class='youtube' href="http://www.youtube.com/embed/VOJyrQa_WR4?rel=0&amp;wmode=transparent">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
6969 <p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="R&ouml;yksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
7070 <p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
7171 <p><a class='inline' href="#inline_content">Inline HTML</a></p>
1818 $(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
1919 $(".group4").colorbox({rel:'group4', slideshow:true});
2020 $(".ajax").colorbox();
21 $(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
21 $(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:390});
2222 $(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
2323 $(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
2424 $(".inline").colorbox({inline:true, width:"50%"});
6565
6666 <h2>Other Content Types</h2>
6767 <p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
68 <p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&amp;wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
68 <p><a class='youtube' href="http://www.youtube.com/embed/VOJyrQa_WR4?rel=0&amp;wmode=transparent">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
6969 <p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="R&ouml;yksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
7070 <p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
7171 <p><a class='inline' href="#inline_content">Inline HTML</a></p>
1818 $(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
1919 $(".group4").colorbox({rel:'group4', slideshow:true});
2020 $(".ajax").colorbox();
21 $(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
21 $(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:390});
2222 $(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
2323 $(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
2424 $(".inline").colorbox({inline:true, width:"50%"});
6565
6666 <h2>Other Content Types</h2>
6767 <p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
68 <p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&amp;wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
68 <p><a class='youtube' href="http://www.youtube.com/embed/VOJyrQa_WR4?rel=0&amp;wmode=transparent">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
6969 <p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="R&ouml;yksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
7070 <p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
7171 <p><a class='inline' href="#inline_content">Inline HTML</a></p>
1818 $(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
1919 $(".group4").colorbox({rel:'group4', slideshow:true});
2020 $(".ajax").colorbox();
21 $(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
21 $(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:390});
2222 $(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
2323 $(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
2424 $(".inline").colorbox({inline:true, width:"50%"});
6565
6666 <h2>Other Content Types</h2>
6767 <p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
68 <p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&amp;wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
68 <p><a class='youtube' href="http://www.youtube.com/embed/VOJyrQa_WR4?rel=0&amp;wmode=transparent">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
6969 <p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="R&ouml;yksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
7070 <p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
7171 <p><a class='inline' href="#inline_content">Inline HTML</a></p>
1818 $(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
1919 $(".group4").colorbox({rel:'group4', slideshow:true});
2020 $(".ajax").colorbox();
21 $(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
21 $(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:390});
2222 $(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
2323 $(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
2424 $(".inline").colorbox({inline:true, width:"50%"});
6565
6666 <h2>Other Content Types</h2>
6767 <p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
68 <p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&amp;wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
68 <p><a class='youtube' href="http://www.youtube.com/embed/VOJyrQa_WR4?rel=0&amp;wmode=transparent">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
6969 <p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="R&ouml;yksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
7070 <p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
7171 <p><a class='inline' href="#inline_content">Inline HTML</a></p>
0 /*
1 jQuery Colorbox language configuration
2 language: Bulgarian (bg)
3 translated by: Marian M.Bida
4 site: webmax.bg
5 */
6 jQuery.extend(jQuery.colorbox.settings, {
7 current: "изображение {current} от {total}",
8 previous: "предишна",
9 next: "следваща",
10 close: "затвори",
11 xhrError: "Неуспешно зареждане на съдържанието.",
12 imgError: "Неуспешно зареждане на изображението.",
13 slideshowStart: "пусни слайд-шоу",
14 slideshowStop: "спри слайд-шоу"
15 });
0 /*
1 jQuery Colorbox language configuration
2 language: Finnish (fi)
3 translated by: Mikko
4 */
5 jQuery.extend(jQuery.colorbox.settings, {
6 current: "Kuva {current} / {total}",
7 previous: "Edellinen",
8 next: "Seuraava",
9 close: "Sulje",
10 xhrError: "Sisällön lataaminen epäonnistui.",
11 imgError: "Kuvan lataaminen epäonnistui.",
12 slideshowStart: "Aloita kuvaesitys.",
13 slideshowStop: "Lopeta kuvaesitys."
14 });
0 /*
1 jQuery Colorbox language configuration
2 language: Japanaese (ja)
3 translated by: Hajime Fujimoto
4 */
5 jQuery.extend(jQuery.colorbox.settings, {
6 current: "{total}枚中{current}枚目",
7 previous: "前",
8 next: "次",
9 close: "閉じる",
10 xhrError: "コンテンツの読み込みに失敗しました",
11 imgError: "画像の読み込みに失敗しました",
12 slideshowStart: "スライドショー開始",
13 slideshowStop: "スライドショー終了"
14 });
0 /*
1 jQuery Colorbox language configuration
2 language: Norwegian (no)
3 translated by: lars-erik
4 site: markedspartner.no
5 */
6 jQuery.extend(jQuery.colorbox.settings, {
7 current: "Bilde {current} av {total}",
8 previous: "Forrige",
9 next: "Neste",
10 close: "Lukk",
11 xhrError: "Feil ved lasting av innhold.",
12 imgError: "Feil ved lasting av bilde.",
13 slideshowStart: "Start lysbildefremvisning",
14 slideshowStop: "Stopp lysbildefremvisning"
15 });
0 /*
1 jQuery Colorbox language configuration
2 language: Romanian (ro)
3 translated by: shurub3l
4 */
5 jQuery.extend(jQuery.colorbox.settings, {
6 current: "imagine {current} din {total}",
7 previous: "precedenta",
8 next: "următoarea",
9 close: "închideți",
10 xhrError: "Acest conținut nu poate fi încărcat.",
11 imgError: "Această imagine nu poate fi încărcată",
12 slideshowStart: "începeți prezentarea (slideshow)",
13 slideshowStop: "opriți prezentarea (slideshow)"
14 });
11 jQuery Colorbox language configuration
22 language: Russian (ru)
33 translated by: Marfa
4 site: themarfa.name
4 site: themarfa.name
55 */
66 jQuery.extend(jQuery.colorbox.settings, {
77 current: "изображение {current} из {total}",
8 previous: "предыдущее",
9 next: "следующее",
8 previous: "назад",
9 next: "вперёд",
1010 close: "закрыть",
1111 xhrError: "Не удалось загрузить содержимое.",
1212 imgError: "Не удалось загрузить изображение.",
13 slideshowStart: "начать слайд-шоу",
14 slideshowStop: "остановить слайд-шоу"
13 slideshowStart: "начать слайд-шоу",
14 slideshowStop: "остановить слайд-шоу"
1515 });
0 /*
1 jQuery Colorbox language configuration
2 language: Slovak (sk)
3 translated by: Jaroslav Kostal
4 */
5 jQuery.extend(jQuery.colorbox.settings, {
6 current: "{current}. obrázok z {total}",
7 previous: "Predchádzajúci",
8 next: "Následujúci",
9 close: "Zatvoriť",
10 xhrError: "Obsah sa nepodarilo načítať.",
11 imgError: "Obrázok sa nepodarilo načítať."
12 });
0 /*
1 jQuery Colorbox language configuration
2 language: Chinese Simplified (zh-CN)
3 translated by: zhao weiming
4 */
5 jQuery.extend(jQuery.colorbox.settings, {
6 current: "当前图像 {current} 总共 {total}",
7 previous: "前一页",
8 next: "后一页",
9 close: "关闭",
10 xhrError: "此内容无法加载",
11 imgError: "此图片无法加载",
12 slideshowStart: "开始播放幻灯片",
13 slideshowStop: "停止播放幻灯片"
14 });
00 /*!
1 jQuery Colorbox v1.4.10 - 2013-04-02
1 jQuery Colorbox v1.4.17 - 2013-05-23
22 (c) 2013 Jack Moore - jacklmoore.com/colorbox
33 license: http://www.opensource.org/licenses/mit-license.php
44 */
5 (function(e,t,i){function o(i,o,n){var r=t.createElement(i);return o&&(r.id=et+o),n&&(r.style.cssText=n),e(r)}function n(){return i.innerHeight?i.innerHeight:e(i).height()}function r(e){var t=H.length,i=(j+e)%t;return 0>i?t+i:i}function h(e,t){return Math.round((/%/.test(e)?("x"===t?E.width():n())/100:1)*parseInt(e,10))}function s(e,t){return e.photo||e.photoRegex.test(t)}function l(e,t){return e.retinaUrl&&i.devicePixelRatio>1?t.replace(e.photoRegex,e.retinaSuffix):t}function a(e){"contains"in v[0]&&!v[0].contains(e.target)&&(e.stopPropagation(),v.focus())}function d(){var t,i=e.data(O,Z);null==i?(D=e.extend({},Y),console&&console.log&&console.log("Error: cboxElement missing settings object")):D=e.extend({},i);for(t in D)e.isFunction(D[t])&&"on"!==t.slice(0,2)&&(D[t]=D[t].call(O));D.rel=D.rel||O.rel||e(O).data("rel")||"nofollow",D.href=D.href||e(O).attr("href"),D.title=D.title||O.title,"string"==typeof D.href&&(D.href=e.trim(D.href))}function c(i,o){e(t).trigger(i),lt.trigger(i),e.isFunction(o)&&o.call(O)}function u(){var e,t,i,o,n,r=et+"Slideshow_",h="click."+et;D.slideshow&&H[1]?(t=function(){clearTimeout(e)},i=function(){(D.loop||H[j+1])&&(e=setTimeout(J.next,D.slideshowSpeed))},o=function(){M.html(D.slideshowStop).unbind(h).one(h,n),lt.bind(nt,i).bind(ot,t).bind(rt,n),v.removeClass(r+"off").addClass(r+"on")},n=function(){t(),lt.unbind(nt,i).unbind(ot,t).unbind(rt,n),M.html(D.slideshowStart).unbind(h).one(h,function(){J.next(),o()}),v.removeClass(r+"on").addClass(r+"off")},D.slideshowAuto?o():n()):v.removeClass(r+"off "+r+"on")}function f(i){G||(O=i,d(),H=e(O),j=0,"nofollow"!==D.rel&&(H=e("."+tt).filter(function(){var t,i=e.data(this,Z);return i&&(t=e(this).data("rel")||i.rel||this.rel),t===D.rel}),j=H.index(O),-1===j&&(H=H.add(O),j=H.length-1)),g.css({opacity:parseFloat(D.opacity),cursor:D.overlayClose?"pointer":"auto",visibility:"visible"}).show(),V&&v.add(g).removeClass(V),D.className&&v.add(g).addClass(D.className),V=D.className,K.html(D.close).show(),$||($=q=!0,v.css({visibility:"hidden",display:"block"}),W=o(at,"LoadedContent","width:0; height:0; overflow:hidden").appendTo(y),B=b.height()+k.height()+y.outerHeight(!0)-y.height(),N=C.width()+T.width()+y.outerWidth(!0)-y.width(),z=W.outerHeight(!0),A=W.outerWidth(!0),D.w=h(D.initialWidth,"x"),D.h=h(D.initialHeight,"y"),J.position(),u(),c(it,D.onOpen),_.add(F).hide(),v.focus(),t.addEventListener&&(t.addEventListener("focus",a,!0),lt.one(ht,function(){t.removeEventListener("focus",a,!0)})),D.returnFocus&&lt.one(ht,function(){e(O).focus()})),w())}function p(){!v&&t.body&&(X=!1,E=e(i),v=o(at).attr({id:Z,"class":e.support.opacity===!1?et+"IE":"",role:"dialog",tabindex:"-1"}).hide(),g=o(at,"Overlay").hide(),S=o(at,"LoadingOverlay").add(o(at,"LoadingGraphic")),x=o(at,"Wrapper"),y=o(at,"Content").append(F=o(at,"Title"),I=o(at,"Current"),P=o("button","Previous"),R=o("button","Next"),M=o("button","Slideshow"),S,K=o("button","Close")),x.append(o(at).append(o(at,"TopLeft"),b=o(at,"TopCenter"),o(at,"TopRight")),o(at,!1,"clear:left").append(C=o(at,"MiddleLeft"),y,T=o(at,"MiddleRight")),o(at,!1,"clear:left").append(o(at,"BottomLeft"),k=o(at,"BottomCenter"),o(at,"BottomRight"))).find("div div").css({"float":"left"}),L=o(at,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),_=R.add(P).add(I).add(M),e(t.body).append(g,v.append(x,L)))}function m(){function i(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||e.control||(e.preventDefault(),f(this))}return v?(X||(X=!0,R.click(function(){J.next()}),P.click(function(){J.prev()}),K.click(function(){J.close()}),g.click(function(){D.overlayClose&&J.close()}),e(t).bind("keydown."+et,function(e){var t=e.keyCode;$&&D.escKey&&27===t&&(e.preventDefault(),J.close()),$&&D.arrowKey&&H[1]&&!e.altKey&&(37===t?(e.preventDefault(),P.click()):39===t&&(e.preventDefault(),R.click()))}),e.isFunction(e.fn.on)?e(t).on("click."+et,"."+tt,i):e("."+tt).live("click."+et,i)),!0):!1}function w(){var t,n,r,a=J.prep,u=++dt;q=!0,U=!1,O=H[j],d(),c(st),c(ot,D.onLoad),D.h=D.height?h(D.height,"y")-z-B:D.innerHeight&&h(D.innerHeight,"y"),D.w=D.width?h(D.width,"x")-A-N:D.innerWidth&&h(D.innerWidth,"x"),D.mw=D.w,D.mh=D.h,D.maxWidth&&(D.mw=h(D.maxWidth,"x")-A-N,D.mw=D.w&&D.w<D.mw?D.w:D.mw),D.maxHeight&&(D.mh=h(D.maxHeight,"y")-z-B,D.mh=D.h&&D.h<D.mh?D.h:D.mh),t=D.href,Q=setTimeout(function(){S.show()},100),D.inline?(r=o(at).hide().insertBefore(e(t)[0]),lt.one(st,function(){r.replaceWith(W.children())}),a(e(t))):D.iframe?a(" "):D.html?a(D.html):s(D,t)?(t=l(D,t),e(U=new Image).addClass(et+"Photo").bind("error",function(){D.title=!1,a(o(at,"Error").html(D.imgError))}).one("load",function(){var e;u===dt&&(D.retinaImage&&i.devicePixelRatio>1&&(U.height=U.height/i.devicePixelRatio,U.width=U.width/i.devicePixelRatio),D.scalePhotos&&(n=function(){U.height-=U.height*e,U.width-=U.width*e},D.mw&&U.width>D.mw&&(e=(U.width-D.mw)/U.width,n()),D.mh&&U.height>D.mh&&(e=(U.height-D.mh)/U.height,n())),D.h&&(U.style.marginTop=Math.max(D.mh-U.height,0)/2+"px"),H[1]&&(D.loop||H[j+1])&&(U.style.cursor="pointer",U.onclick=function(){J.next()}),setTimeout(function(){a(U)},1))}),setTimeout(function(){U.src=t},1)):t&&L.load(t,D.data,function(t,i){u===dt&&a("error"===i?o(at,"Error").html(D.xhrError):e(this).contents())})}var g,v,x,y,b,C,T,k,H,E,W,L,S,F,I,M,R,P,K,_,D,B,N,z,A,O,j,U,$,q,G,Q,J,V,X,Y={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,className:!1,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.",open:!1,returnFocus:!0,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)((#|\?).*)?$/i,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0},Z="colorbox",et="cbox",tt=et+"Element",it=et+"_open",ot=et+"_load",nt=et+"_complete",rt=et+"_cleanup",ht=et+"_closed",st=et+"_purge",lt=e("<a/>"),at="div",dt=0;e.colorbox||(e(p),J=e.fn[Z]=e[Z]=function(t,i){var o=this;if(t=t||{},p(),m()){if(e.isFunction(o))o=e("<a/>"),t.open=!0;else if(!o[0])return o;i&&(t.onComplete=i),o.each(function(){e.data(this,Z,e.extend({},e.data(this,Z)||Y,t))}).addClass(tt),(e.isFunction(t.open)&&t.open.call(o)||t.open)&&f(o[0])}return o},J.position=function(e,t){function i(e){b[0].style.width=k[0].style.width=y[0].style.width=parseInt(e.style.width,10)-N+"px",y[0].style.height=C[0].style.height=T[0].style.height=parseInt(e.style.height,10)-B+"px"}var o,r,s,l=0,a=0,d=v.offset();E.unbind("resize."+et),v.css({top:-9e4,left:-9e4}),r=E.scrollTop(),s=E.scrollLeft(),D.fixed?(d.top-=r,d.left-=s,v.css({position:"fixed"})):(l=r,a=s,v.css({position:"absolute"})),a+=D.right!==!1?Math.max(E.width()-D.w-A-N-h(D.right,"x"),0):D.left!==!1?h(D.left,"x"):Math.round(Math.max(E.width()-D.w-A-N,0)/2),l+=D.bottom!==!1?Math.max(n()-D.h-z-B-h(D.bottom,"y"),0):D.top!==!1?h(D.top,"y"):Math.round(Math.max(n()-D.h-z-B,0)/2),v.css({top:d.top,left:d.left,visibility:"visible"}),e=v.width()===D.w+A&&v.height()===D.h+z?0:e||0,x[0].style.width=x[0].style.height="9999px",o={width:D.w+A+N,height:D.h+z+B,top:l,left:a},0===e&&v.css(o),v.dequeue().animate(o,{duration:e,complete:function(){i(this),q=!1,x[0].style.width=D.w+A+N+"px",x[0].style.height=D.h+z+B+"px",D.reposition&&setTimeout(function(){E.bind("resize."+et,J.position)},1),t&&t()},step:function(){i(this)}})},J.resize=function(e){$&&(e=e||{},e.width&&(D.w=h(e.width,"x")-A-N),e.innerWidth&&(D.w=h(e.innerWidth,"x")),W.css({width:D.w}),e.height&&(D.h=h(e.height,"y")-z-B),e.innerHeight&&(D.h=h(e.innerHeight,"y")),e.innerHeight||e.height||(W.css({height:"auto"}),D.h=W.height()),W.css({height:D.h}),J.position("none"===D.transition?0:D.speed))},J.prep=function(t){function i(){return D.w=D.w||W.width(),D.w=D.mw&&D.mw<D.w?D.mw:D.w,D.w}function n(){return D.h=D.h||W.height(),D.h=D.mh&&D.mh<D.h?D.mh:D.h,D.h}if($){var h,a="none"===D.transition?0:D.speed;W.empty().remove(),W=o(at,"LoadedContent").append(t),W.hide().appendTo(L.show()).css({width:i(),overflow:D.scrolling?"auto":"hidden"}).css({height:n()}).prependTo(y),L.hide(),e(U).css({"float":"none"}),h=function(){function t(){e.support.opacity===!1&&v[0].style.removeAttribute("filter")}var i,n,h=H.length,d="frameBorder",u="allowTransparency";$&&(n=function(){clearTimeout(Q),S.hide(),c(nt,D.onComplete)},F.html(D.title).add(W).show(),h>1?("string"==typeof D.current&&I.html(D.current.replace("{current}",j+1).replace("{total}",h)).show(),R[D.loop||h-1>j?"show":"hide"]().html(D.next),P[D.loop||j?"show":"hide"]().html(D.previous),D.slideshow&&M.show(),D.preloading&&e.each([r(-1),r(1)],function(){var t,i,o=H[this],n=e.data(o,Z);n&&n.href?(t=n.href,e.isFunction(t)&&(t=t.call(o))):t=e(o).attr("href"),t&&s(n,t)&&(t=l(n,t),i=new Image,i.src=t)})):_.hide(),D.iframe?(i=o("iframe")[0],d in i&&(i[d]=0),u in i&&(i[u]="true"),D.scrolling||(i.scrolling="no"),e(i).attr({src:D.href,name:(new Date).getTime(),"class":et+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",n).appendTo(W),lt.one(st,function(){i.src="//about:blank"}),D.fastIframe&&e(i).trigger("load")):n(),"fade"===D.transition?v.fadeTo(a,1,t):t())},"fade"===D.transition?v.fadeTo(a,0,function(){J.position(0,h)}):J.position(a,h)}},J.next=function(){!q&&H[1]&&(D.loop||H[j+1])&&(j=r(1),f(H[j]))},J.prev=function(){!q&&H[1]&&(D.loop||j)&&(j=r(-1),f(H[j]))},J.close=function(){$&&!G&&(G=!0,$=!1,c(rt,D.onCleanup),E.unbind("."+et),g.fadeTo(200,0),v.stop().fadeTo(300,0,function(){v.add(g).css({opacity:1,cursor:"auto"}).hide(),c(st),W.empty().remove(),setTimeout(function(){G=!1,c(ht,D.onClosed)},1)}))},J.remove=function(){v&&(v.stop(),e.colorbox.close(),v.stop().remove(),g.remove(),G=!1,v=null,e("."+tt).removeData(Z).removeClass(tt),e(t).unbind("click."+et))},J.element=function(){return e(O)},J.settings=Y)})(jQuery,document,window);
5 (function(t,e,i){function o(i,o,n){var r=e.createElement(i);return o&&(r.id=te+o),n&&(r.style.cssText=n),t(r)}function n(){return i.innerHeight?i.innerHeight:t(i).height()}function r(t){var e=E.length,i=(j+t)%e;return 0>i?e+i:i}function h(t,e){return Math.round((/%/.test(t)?("x"===e?H.width():n())/100:1)*parseInt(t,10))}function l(t,e){return t.photo||t.photoRegex.test(e)}function s(t,e){return t.retinaUrl&&i.devicePixelRatio>1?e.replace(t.photoRegex,t.retinaSuffix):e}function a(t){"contains"in x[0]&&!x[0].contains(t.target)&&(t.stopPropagation(),x.focus())}function d(){var e,i=t.data(A,Z);null==i?(_=t.extend({},Y),console&&console.log&&console.log("Error: cboxElement missing settings object")):_=t.extend({},i);for(e in _)t.isFunction(_[e])&&"on"!==e.slice(0,2)&&(_[e]=_[e].call(A));_.rel=_.rel||A.rel||t(A).data("rel")||"nofollow",_.href=_.href||t(A).attr("href"),_.title=_.title||A.title,"string"==typeof _.href&&(_.href=t.trim(_.href))}function c(i,o){t(e).trigger(i),se.trigger(i),t.isFunction(o)&&o.call(A)}function u(){var t,e,i,o,n,r=te+"Slideshow_",h="click."+te;_.slideshow&&E[1]?(e=function(){clearTimeout(t)},i=function(){(_.loop||E[j+1])&&(t=setTimeout(J.next,_.slideshowSpeed))},o=function(){M.html(_.slideshowStop).unbind(h).one(h,n),se.bind(ne,i).bind(oe,e).bind(re,n),x.removeClass(r+"off").addClass(r+"on")},n=function(){e(),se.unbind(ne,i).unbind(oe,e).unbind(re,n),M.html(_.slideshowStart).unbind(h).one(h,function(){J.next(),o()}),x.removeClass(r+"on").addClass(r+"off")},_.slideshowAuto?o():n()):x.removeClass(r+"off "+r+"on")}function f(i){G||(A=i,d(),E=t(A),j=0,"nofollow"!==_.rel&&(E=t("."+ee).filter(function(){var e,i=t.data(this,Z);return i&&(e=t(this).data("rel")||i.rel||this.rel),e===_.rel}),j=E.index(A),-1===j&&(E=E.add(A),j=E.length-1)),g.css({opacity:parseFloat(_.opacity),cursor:_.overlayClose?"pointer":"auto",visibility:"visible"}).show(),V&&x.add(g).removeClass(V),_.className&&x.add(g).addClass(_.className),V=_.className,K.html(_.close).show(),$||($=q=!0,x.css({visibility:"hidden",display:"block"}),W=o(ae,"LoadedContent","width:0; height:0; overflow:hidden").appendTo(v),D=b.height()+k.height()+v.outerHeight(!0)-v.height(),B=C.width()+T.width()+v.outerWidth(!0)-v.width(),N=W.outerHeight(!0),z=W.outerWidth(!0),_.w=h(_.initialWidth,"x"),_.h=h(_.initialHeight,"y"),J.position(),u(),c(ie,_.onOpen),O.add(S).hide(),x.focus(),_.trapFocus&&e.addEventListener&&(e.addEventListener("focus",a,!0),se.one(he,function(){e.removeEventListener("focus",a,!0)})),_.returnFocus&&se.one(he,function(){t(A).focus()})),w())}function p(){!x&&e.body&&(X=!1,H=t(i),x=o(ae).attr({id:Z,"class":t.support.opacity===!1?te+"IE":"",role:"dialog",tabindex:"-1"}).hide(),g=o(ae,"Overlay").hide(),L=o(ae,"LoadingOverlay").add(o(ae,"LoadingGraphic")),y=o(ae,"Wrapper"),v=o(ae,"Content").append(S=o(ae,"Title"),I=o(ae,"Current"),P=t('<button type="button"/>').attr({id:te+"Previous"}),R=t('<button type="button"/>').attr({id:te+"Next"}),M=o("button","Slideshow"),L,K=t('<button type="button"/>').attr({id:te+"Close"})),y.append(o(ae).append(o(ae,"TopLeft"),b=o(ae,"TopCenter"),o(ae,"TopRight")),o(ae,!1,"clear:left").append(C=o(ae,"MiddleLeft"),v,T=o(ae,"MiddleRight")),o(ae,!1,"clear:left").append(o(ae,"BottomLeft"),k=o(ae,"BottomCenter"),o(ae,"BottomRight"))).find("div div").css({"float":"left"}),F=o(ae,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),O=R.add(P).add(I).add(M),t(e.body).append(g,x.append(y,F)))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.control||(t.preventDefault(),f(this))}return x?(X||(X=!0,R.click(function(){J.next()}),P.click(function(){J.prev()}),K.click(function(){J.close()}),g.click(function(){_.overlayClose&&J.close()}),t(e).bind("keydown."+te,function(t){var e=t.keyCode;$&&_.escKey&&27===e&&(t.preventDefault(),J.close()),$&&_.arrowKey&&E[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),R.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+te,"."+ee,i):t("."+ee).live("click."+te,i)),!0):!1}function w(){var n,r,a,u=J.prep,f=++de;q=!0,U=!1,A=E[j],d(),c(le),c(oe,_.onLoad),_.h=_.height?h(_.height,"y")-N-D:_.innerHeight&&h(_.innerHeight,"y"),_.w=_.width?h(_.width,"x")-z-B:_.innerWidth&&h(_.innerWidth,"x"),_.mw=_.w,_.mh=_.h,_.maxWidth&&(_.mw=h(_.maxWidth,"x")-z-B,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.maxHeight&&(_.mh=h(_.maxHeight,"y")-N-D,_.mh=_.h&&_.h<_.mh?_.h:_.mh),n=_.href,Q=setTimeout(function(){L.show()},100),_.inline?(a=o(ae).hide().insertBefore(t(n)[0]),se.one(le,function(){a.replaceWith(W.children())}),u(t(n))):_.iframe?u(" "):_.html?u(_.html):l(_,n)?(n=s(_,n),U=e.createElement("img"),t(U).addClass(te+"Photo").bind("error",function(){_.title=!1,u(o(ae,"Error").html(_.imgError))}).one("load",function(){var e;f===de&&(U.alt=t(A).attr("alt")||t(A).attr("data-alt")||"",_.retinaImage&&i.devicePixelRatio>1&&(U.height=U.height/i.devicePixelRatio,U.width=U.width/i.devicePixelRatio),_.scalePhotos&&(r=function(){U.height-=U.height*e,U.width-=U.width*e},_.mw&&U.width>_.mw&&(e=(U.width-_.mw)/U.width,r()),_.mh&&U.height>_.mh&&(e=(U.height-_.mh)/U.height,r())),_.h&&(U.style.marginTop=Math.max(_.mh-U.height,0)/2+"px"),E[1]&&(_.loop||E[j+1])&&(U.style.cursor="pointer",U.onclick=function(){J.next()}),U.style.width=U.width+"px",U.style.height=U.height+"px",setTimeout(function(){u(U)},1))}),setTimeout(function(){U.src=n},1)):n&&F.load(n,_.data,function(e,i){f===de&&u("error"===i?o(ae,"Error").html(_.xhrError):t(this).contents())})}var g,x,y,v,b,C,T,k,E,H,W,F,L,S,I,M,R,P,K,O,_,D,B,N,z,A,j,U,$,q,G,Q,J,V,X,Y={transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,className:!1,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.",open:!1,returnFocus:!0,trapFocus:!0,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,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0},Z="colorbox",te="cbox",ee=te+"Element",ie=te+"_open",oe=te+"_load",ne=te+"_complete",re=te+"_cleanup",he=te+"_closed",le=te+"_purge",se=t("<a/>"),ae="div",de=0;t.colorbox||(t(p),J=t.fn[Z]=t[Z]=function(e,i){var o=this;if(e=e||{},p(),m()){if(t.isFunction(o))o=t("<a/>"),e.open=!0;else if(!o[0])return o;i&&(e.onComplete=i),o.each(function(){t.data(this,Z,t.extend({},t.data(this,Z)||Y,e))}).addClass(ee),(t.isFunction(e.open)&&e.open.call(o)||e.open)&&f(o[0])}return o},J.position=function(t,e){function i(t){b[0].style.width=k[0].style.width=v[0].style.width=parseInt(t.style.width,10)-B+"px",v[0].style.height=C[0].style.height=T[0].style.height=parseInt(t.style.height,10)-D+"px"}var o,r,l,s=0,a=0,d=x.offset();H.unbind("resize."+te),x.css({top:-9e4,left:-9e4}),r=H.scrollTop(),l=H.scrollLeft(),_.fixed?(d.top-=r,d.left-=l,x.css({position:"fixed"})):(s=r,a=l,x.css({position:"absolute"})),a+=_.right!==!1?Math.max(H.width()-_.w-z-B-h(_.right,"x"),0):_.left!==!1?h(_.left,"x"):Math.round(Math.max(H.width()-_.w-z-B,0)/2),s+=_.bottom!==!1?Math.max(n()-_.h-N-D-h(_.bottom,"y"),0):_.top!==!1?h(_.top,"y"):Math.round(Math.max(n()-_.h-N-D,0)/2),x.css({top:d.top,left:d.left,visibility:"visible"}),t=x.width()===_.w+z&&x.height()===_.h+N?0:t||0,y[0].style.width=y[0].style.height="9999px",o={width:_.w+z+B,height:_.h+N+D,top:s,left:a},0===t&&x.css(o),x.dequeue().animate(o,{duration:t,complete:function(){i(this),q=!1,y[0].style.width=_.w+z+B+"px",y[0].style.height=_.h+N+D+"px",_.reposition&&setTimeout(function(){H.bind("resize."+te,J.position)},1),e&&e()},step:function(){i(this)}})},J.resize=function(t){$&&(t=t||{},t.width&&(_.w=h(t.width,"x")-z-B),t.innerWidth&&(_.w=h(t.innerWidth,"x")),W.css({width:_.w}),t.height&&(_.h=h(t.height,"y")-N-D),t.innerHeight&&(_.h=h(t.innerHeight,"y")),t.innerHeight||t.height||(W.css({height:"auto"}),_.h=W.height()),W.css({height:_.h}),J.position("none"===_.transition?0:_.speed))},J.prep=function(e){function i(){return _.w=_.w||W.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function n(){return _.h=_.h||W.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if($){var h,a="none"===_.transition?0:_.speed;W.empty().remove(),W=o(ae,"LoadedContent").append(e),W.hide().appendTo(F.show()).css({width:i(),overflow:_.scrolling?"auto":"hidden"}).css({height:n()}).prependTo(v),F.hide(),t(U).css({"float":"none"}),h=function(){function e(){t.support.opacity===!1&&x[0].style.removeAttribute("filter")}var i,n,h=E.length,d="frameBorder",u="allowTransparency";$&&(n=function(){clearTimeout(Q),L.hide(),c(ne,_.onComplete)},S.html(_.title).add(W).show(),h>1?("string"==typeof _.current&&I.html(_.current.replace("{current}",j+1).replace("{total}",h)).show(),R[_.loop||h-1>j?"show":"hide"]().html(_.next),P[_.loop||j?"show":"hide"]().html(_.previous),_.slideshow&&M.show(),_.preloading&&t.each([r(-1),r(1)],function(){var e,i,o=E[this],n=t.data(o,Z);n&&n.href?(e=n.href,t.isFunction(e)&&(e=e.call(o))):e=t(o).attr("href"),e&&l(n,e)&&(e=s(n,e),i=new Image,i.src=e)})):O.hide(),_.iframe?(i=o("iframe")[0],d in i&&(i[d]=0),u in i&&(i[u]="true"),_.scrolling||(i.scrolling="no"),t(i).attr({src:_.href,name:(new Date).getTime(),"class":te+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",n).appendTo(W),se.one(le,function(){i.src="//about:blank"}),_.fastIframe&&t(i).trigger("load")):n(),"fade"===_.transition?x.fadeTo(a,1,e):e())},"fade"===_.transition?x.fadeTo(a,0,function(){J.position(0,h)}):J.position(a,h)}},J.next=function(){!q&&E[1]&&(_.loop||E[j+1])&&(j=r(1),f(E[j]))},J.prev=function(){!q&&E[1]&&(_.loop||j)&&(j=r(-1),f(E[j]))},J.close=function(){$&&!G&&(G=!0,$=!1,c(re,_.onCleanup),H.unbind("."+te),g.fadeTo(_.fadeOut||0,0),x.stop().fadeTo(_.fadeOut||0,0,function(){x.add(g).css({opacity:1,cursor:"auto"}).hide(),c(le),W.empty().remove(),setTimeout(function(){G=!1,c(he,_.onClosed)},1)}))},J.remove=function(){x&&(x.stop(),t.colorbox.close(),x.stop().remove(),g.remove(),G=!1,x=null,t("."+ee).removeData(Z).removeClass(ee),t(e).unbind("click."+te))},J.element=function(){return t(A)},J.settings=Y)})(jQuery,document,window);
00 /*!
1 jQuery Colorbox v1.4.10 - 2013-04-02
1 jQuery Colorbox v1.4.17 - 2013-05-23
22 (c) 2013 Jack Moore - jacklmoore.com/colorbox
33 license: http://www.opensource.org/licenses/mit-license.php
44 */
99 defaults = {
1010 transition: "elastic",
1111 speed: 300,
12 fadeOut: 300,
1213 width: false,
1314 initialWidth: "600",
1415 innerWidth: false,
3031 opacity: 0.9,
3132 preloading: true,
3233 className: false,
33
34
3435 // alternate image paths for high-res displays
3536 retinaImage: false,
3637 retinaUrl: false,
4647
4748 open: false,
4849 returnFocus: true,
50 trapFocus: true,
4951 reposition: true,
5052 loop: true,
5153 slideshow: false,
5355 slideshowSpeed: 2500,
5456 slideshowStart: "start slideshow",
5557 slideshowStop: "stop slideshow",
56 photoRegex: /\.(gif|png|jp(e|g|eg)|bmp|ico)((#|\?).*)?$/i,
58 photoRegex: /\.(gif|png|jp(e|g|eg)|bmp|ico|webp)((#|\?).*)?$/i,
5759
5860 onOpen: false,
5961 onLoad: false,
130132 // HELPER FUNCTIONS
131133 // ****************
132134
133 // Convience function for creating new jQuery objects
135 // Convenience function for creating new jQuery objects
134136 function $tag(tag, id, css) {
135137 var element = document.createElement(tag);
136138
364366
365367 $box.focus();
366368
367 // Confine focus to the modal
368 // Uses event capturing that is not supported in IE8-
369 if (document.addEventListener) {
370
371 document.addEventListener('focus', trapFocus, true);
372
373 $events.one(event_closed, function () {
374 document.removeEventListener('focus', trapFocus, true);
375 });
369
370 if (settings.trapFocus) {
371 // Confine focus to the modal
372 // Uses event capturing that is not supported in IE8-
373 if (document.addEventListener) {
374
375 document.addEventListener('focus', trapFocus, true);
376
377 $events.one(event_closed, function () {
378 document.removeEventListener('focus', trapFocus, true);
379 });
380 }
376381 }
377382
378383 // Return focus on closing
405410 $content = $tag(div, "Content").append(
406411 $title = $tag(div, "Title"),
407412 $current = $tag(div, "Current"),
408 $prev = $tag('button', "Previous"),
409 $next = $tag('button', "Next"),
413 $prev = $('<button type="button"/>').attr({id:prefix+'Previous'}),
414 $next = $('<button type="button"/>').attr({id:prefix+'Next'}),
410415 $slideshow = $tag('button', "Slideshow"),
411416 $loadingOverlay,
412 $close = $tag('button', "Close")
417 $close = $('<button type="button"/>').attr({id:prefix+'Close'})
413418 );
414419
415420 $wrap.append( // The 3x3 Grid that makes up Colorbox
885890
886891 href = retinaUrl(settings, href);
887892
888 $(photo = new Image())
893 photo = document.createElement('img');
894
895 $(photo)
889896 .addClass(prefix + 'Photo')
890897 .bind('error',function () {
891898 settings.title = false;
897904 if (request !== requests) {
898905 return;
899906 }
907
908 photo.alt = $(element).attr('alt') || $(element).attr('data-alt') || '';
900909
901910 if (settings.retinaImage && window.devicePixelRatio > 1) {
902911 photo.height = photo.height / window.devicePixelRatio;
929938 };
930939 }
931940
941 photo.style.width = photo.width + 'px';
942 photo.style.height = photo.height + 'px';
943
932944 setTimeout(function () { // A pause because Chrome will sometimes report a 0 by 0 size otherwise.
933945 prep(photo);
934946 }, 1);
973985
974986 $window.unbind('.' + prefix);
975987
976 $overlay.fadeTo(200, 0);
977
978 $box.stop().fadeTo(300, 0, function () {
988 $overlay.fadeTo(settings.fadeOut || 0, 0);
989
990 $box.stop().fadeTo(settings.fadeOut || 0, 0, function () {
979991
980992 $box.add($overlay).css({'opacity': 1, cursor: 'auto'}).hide();
981993