diff --git a/.gitignore b/.gitignore index 6686c4c..f434813 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build/fullcalendar build/fullcalendar-* dist +docs/build diff --git a/docs/index.txt b/docs/index.txt index 01beec7..43061bd 100644 --- a/docs/index.txt +++ b/docs/index.txt @@ -210,7 +210,7 @@ Time & Date Formatting agenda: 'h:mm{ - h:mm}', // 5:00 - 6:30 // for all other views - '': 'h(:mm)t' // 7pm + '': 'h(:mm)t' // 7p } **axisFormat**: String, *Default*: ``h(:mm)tt`` @@ -260,4 +260,4 @@ It can contain any of the following properties:: Currently the only options that support View Hashes are ``dragOpacity``, ``titleFormat``, ``columnFormat``, and ``timeFormat``. - \ No newline at end of file + diff --git a/examples/default.html b/examples/default.html index f2f3772..22ccf30 100755 --- a/examples/default.html +++ b/examples/default.html @@ -106,4 +106,4 @@
- \ No newline at end of file + diff --git a/src/agenda.js b/src/agenda.js index 7375cc9..31eba38 100755 --- a/src/agenda.js +++ b/src/agenda.js @@ -195,7 +195,7 @@ function Agenda(element, options, methods) { ""; for (i=0; i 0) { + opts.itemArray = settings.itemArray; + + } else { + var item = {}; + + if (!elem.rel || elem.rel == '') { + var item = {href: elem.href, title: elem.title}; + + if ($(elem).children("img:first").length) { + item.orig = $(elem).children("img:first"); + } else { + item.orig = $(elem); + } + + if (item.title == '' || typeof item.title == 'undefined') { + item.title = item.orig.attr('alt'); + } + + opts.itemArray.push( item ); + + } else { + var subGroup = $(matchedGroup).filter("a[rel=" + elem.rel + "]"); + var item = {}; + + for (var i = 0; i < subGroup.length; i++) { + item = {href: subGroup[i].href, title: subGroup[i].title}; + + if ($(subGroup[i]).children("img:first").length) { + item.orig = $(subGroup[i]).children("img:first"); + } else { + item.orig = $(subGroup[i]); + } + + if (item.title == '' || typeof item.title == 'undefined') { + item.title = item.orig.attr('alt'); + } + + opts.itemArray.push( item ); + } + } + } + + while ( opts.itemArray[ opts.itemCurrent ].href != elem.href ) { + opts.itemCurrent++; + } + + if (opts.overlayShow) { + if (IE6) { + $('embed, object, select').css('visibility', 'hidden'); + $("#fancy_overlay").css('height', $(document).height()); + } + + $("#fancy_overlay").css({ + 'background-color' : opts.overlayColor, + 'opacity' : opts.overlayOpacity + }).show(); + } + + $(window).bind("resize.fb scroll.fb", $.fn.fancybox.scrollBox); + + _change_item(); + }; + + function _change_item() { + $("#fancy_right, #fancy_left, #fancy_close, #fancy_title").hide(); + + var href = opts.itemArray[ opts.itemCurrent ].href; + + if (href.match("iframe") || elem.className.indexOf("iframe") >= 0) { + $.fn.fancybox.showLoading(); + _set_content('', opts.frameWidth, opts.frameHeight); + + } else if (href.match(/#/)) { + var target = window.location.href.split('#')[0]; target = href.replace(target, ''); target = target.substr(target.indexOf('#')); + + _set_content('
' + $(target).html() + '
', opts.frameWidth, opts.frameHeight); + + } else if (href.match(imageRegExp)) { + imagePreloader = new Image; imagePreloader.src = href; + + if (imagePreloader.complete) { + _proceed_image(); + + } else { + $.fn.fancybox.showLoading(); + $(imagePreloader).unbind().bind('load', function() { + $("#fancy_loading").hide(); + + _proceed_image(); + }); + } + } else { + $.fn.fancybox.showLoading(); + $.get(href, function(data) { + $("#fancy_loading").hide(); + _set_content( '
' + data + '
', opts.frameWidth, opts.frameHeight ); + }); + } + }; + + function _proceed_image() { + var width = imagePreloader.width; + var height = imagePreloader.height; + + var horizontal_space = (opts.padding * 2) + 40; + var vertical_space = (opts.padding * 2) + 60; + + var w = $.fn.fancybox.getViewport(); + + if (opts.imageScale && (width > (w[0] - horizontal_space) || height > (w[1] - vertical_space))) { + var ratio = Math.min(Math.min(w[0] - horizontal_space, width) / width, Math.min(w[1] - vertical_space, height) / height); + + width = Math.round(ratio * width); + height = Math.round(ratio * height); + } + + _set_content('', width, height); + }; + + function _preload_neighbor_images() { + if ((opts.itemArray.length -1) > opts.itemCurrent) { + var href = opts.itemArray[opts.itemCurrent + 1].href || false; + + if (href && href.match(imageRegExp)) { + objNext = new Image(); + objNext.src = href; + } + } + + if (opts.itemCurrent > 0) { + var href = opts.itemArray[opts.itemCurrent -1].href || false; + + if (href && href.match(imageRegExp)) { + objNext = new Image(); + objNext.src = href; + } + } + }; + + function _set_content(value, width, height) { + busy = true; + + var pad = opts.padding; + + if (oldIE || ieQuirks) { + $("#fancy_content")[0].style.removeExpression("height"); + $("#fancy_content")[0].style.removeExpression("width"); + } + + if (pad > 0) { + width += pad * 2; + height += pad * 2; + + $("#fancy_content").css({ + 'top' : pad + 'px', + 'right' : pad + 'px', + 'bottom' : pad + 'px', + 'left' : pad + 'px', + 'width' : 'auto', + 'height' : 'auto' + }); + + if (oldIE || ieQuirks) { + $("#fancy_content")[0].style.setExpression('height', '(this.parentNode.clientHeight - ' + pad * 2 + ')'); + $("#fancy_content")[0].style.setExpression('width', '(this.parentNode.clientWidth - ' + pad * 2 + ')'); + } + } else { + $("#fancy_content").css({ + 'top' : 0, + 'right' : 0, + 'bottom' : 0, + 'left' : 0, + 'width' : '100%', + 'height' : '100%' + }); + } + + if ($("#fancy_outer").is(":visible") && width == $("#fancy_outer").width() && height == $("#fancy_outer").height()) { + $("#fancy_content").fadeOut('fast', function() { + $("#fancy_content").empty().append($(value)).fadeIn("normal", function() { + _finish(); + }); + }); + + return; + } + + var w = $.fn.fancybox.getViewport(); + + var itemTop = (height + 60) > w[1] ? w[3] : (w[3] + Math.round((w[1] - height - 60) * 0.5)); + var itemLeft = (width + 40) > w[0] ? w[2] : (w[2] + Math.round((w[0] - width - 40) * 0.5)); + + var itemOpts = { + 'left': itemLeft, + 'top': itemTop, + 'width': width + 'px', + 'height': height + 'px' + }; + + if ($("#fancy_outer").is(":visible")) { + $("#fancy_content").fadeOut("normal", function() { + $("#fancy_content").empty(); + $("#fancy_outer").animate(itemOpts, opts.zoomSpeedChange, opts.easingChange, function() { + $("#fancy_content").append($(value)).fadeIn("normal", function() { + _finish(); + }); + }); + }); + + } else { + + if (opts.zoomSpeedIn > 0 && opts.itemArray[opts.itemCurrent].orig !== undefined) { + $("#fancy_content").empty().append($(value)); + + var orig_item = opts.itemArray[opts.itemCurrent].orig; + var orig_pos = $.fn.fancybox.getPosition(orig_item); + + $("#fancy_outer").css({ + 'left': (orig_pos.left - 20 - opts.padding) + 'px', + 'top': (orig_pos.top - 20 - opts.padding) + 'px', + 'width': $(orig_item).width() + (opts.padding * 2), + 'height': $(orig_item).height() + (opts.padding * 2) + }); + + if (opts.zoomOpacity) { + itemOpts.opacity = 'show'; + } + + $("#fancy_outer").animate(itemOpts, opts.zoomSpeedIn, opts.easingIn, function() { + _finish(); + }); + + } else { + + $("#fancy_content").hide().empty().append($(value)).show(); + $("#fancy_outer").css(itemOpts).fadeIn("normal", function() { + _finish(); + }); + } + } + }; + + function _set_navigation() { + if (opts.itemCurrent !== 0) { + $("#fancy_left, #fancy_left_ico").unbind().bind("click", function(e) { + e.stopPropagation(); + + opts.itemCurrent--; + _change_item(); + + return false; + }); + + $("#fancy_left").show(); + } + + if (opts.itemCurrent != ( opts.itemArray.length -1)) { + $("#fancy_right, #fancy_right_ico").unbind().bind("click", function(e) { + e.stopPropagation(); + + opts.itemCurrent++; + _change_item(); + + return false; + }); + + $("#fancy_right").show(); + } + }; + + function _finish() { + if ($.browser.msie) { + $("#fancy_content")[0].style.removeAttribute('filter'); + $("#fancy_outer")[0].style.removeAttribute('filter'); + } + + _set_navigation(); + + _preload_neighbor_images(); + + $(document).bind("keydown.fb", function(e) { + if (e.keyCode == 27 && opts.enableEscapeButton) { + $.fn.fancybox.close(); + + } else if(e.keyCode == 37 && opts.itemCurrent !== 0) { + $(document).unbind("keydown.fb"); + opts.itemCurrent--; + _change_item(); + + + } else if(e.keyCode == 39 && opts.itemCurrent != (opts.itemArray.length - 1)) { + $(document).unbind("keydown.fb"); + opts.itemCurrent++; + _change_item(); + } + }); + + if (opts.hideOnContentClick) { + $("#fancy_content").click($.fn.fancybox.close); + } + + if (opts.overlayShow && opts.hideOnOverlayClick) { + $("#fancy_overlay").bind("click", $.fn.fancybox.close); + } + + if (opts.showCloseButton) { + $("#fancy_close").bind("click", $.fn.fancybox.close).show(); + } + + if (typeof opts.itemArray[ opts.itemCurrent ].title !== 'undefined' && opts.itemArray[ opts.itemCurrent ].title.length > 0) { + var pos = $("#fancy_outer").position(); + + $('#fancy_title div').text( opts.itemArray[ opts.itemCurrent ].title).html(); + + $('#fancy_title').css({ + 'top' : pos.top + $("#fancy_outer").outerHeight() - 32, + 'left' : pos.left + (($("#fancy_outer").outerWidth() * 0.5) - ($('#fancy_title').width() * 0.5)) + }).show(); + } + + if (opts.overlayShow && IE6) { + $('embed, object, select', $('#fancy_content')).css('visibility', 'visible'); + } + + if ($.isFunction(opts.callbackOnShow)) { + opts.callbackOnShow( opts.itemArray[ opts.itemCurrent ] ); + } + + if ($.browser.msie) { + $("#fancy_outer")[0].style.removeAttribute('filter'); + $("#fancy_content")[0].style.removeAttribute('filter'); + } + + busy = false; + }; + + return this.unbind('click.fb').bind('click.fb', _initialize); + }; + + $.fn.fancybox.scrollBox = function() { + var w = $.fn.fancybox.getViewport(); + + if (opts.centerOnScroll && $("#fancy_outer").is(':visible')) { + var ow = $("#fancy_outer").outerWidth(); + var oh = $("#fancy_outer").outerHeight(); + + var pos = { + 'top' : (oh > w[1] ? w[3] : w[3] + Math.round((w[1] - oh) * 0.5)), + 'left' : (ow > w[0] ? w[2] : w[2] + Math.round((w[0] - ow) * 0.5)) + }; + + $("#fancy_outer").css(pos); + + $('#fancy_title').css({ + 'top' : pos.top + oh - 32, + 'left' : pos.left + ((ow * 0.5) - ($('#fancy_title').width() * 0.5)) + }); + } + + if (IE6 && $("#fancy_overlay").is(':visible')) { + $("#fancy_overlay").css({ + 'height' : $(document).height() + }); + } + + if ($("#fancy_loading").is(':visible')) { + $("#fancy_loading").css({'left': ((w[0] - 40) * 0.5 + w[2]), 'top': ((w[1] - 40) * 0.5 + w[3])}); + } + }; + + $.fn.fancybox.getNumeric = function(el, prop) { + return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0; + }; + + $.fn.fancybox.getPosition = function(el) { + var pos = el.offset(); + + pos.top += $.fn.fancybox.getNumeric(el, 'paddingTop'); + pos.top += $.fn.fancybox.getNumeric(el, 'borderTopWidth'); + + pos.left += $.fn.fancybox.getNumeric(el, 'paddingLeft'); + pos.left += $.fn.fancybox.getNumeric(el, 'borderLeftWidth'); + + return pos; + }; + + $.fn.fancybox.showIframe = function() { + $("#fancy_loading").hide(); + $("#fancy_frame").show(); + }; + + $.fn.fancybox.getViewport = function() { + return [$(window).width(), $(window).height(), $(document).scrollLeft(), $(document).scrollTop() ]; + }; + + $.fn.fancybox.animateLoading = function() { + if (!$("#fancy_loading").is(':visible')){ + clearInterval(loadingTimer); + return; + } + + $("#fancy_loading > div").css('top', (loadingFrame * -40) + 'px'); + + loadingFrame = (loadingFrame + 1) % 12; + }; + + $.fn.fancybox.showLoading = function() { + clearInterval(loadingTimer); + + var w = $.fn.fancybox.getViewport(); + + $("#fancy_loading").css({'left': ((w[0] - 40) * 0.5 + w[2]), 'top': ((w[1] - 40) * 0.5 + w[3])}).show(); + $("#fancy_loading").bind('click', $.fn.fancybox.close); + + loadingTimer = setInterval($.fn.fancybox.animateLoading, 66); + }; + + $.fn.fancybox.close = function() { + busy = true; + + $(imagePreloader).unbind(); + + $(document).unbind("keydown.fb"); + $(window).unbind("resize.fb scroll.fb"); + + $("#fancy_overlay, #fancy_content, #fancy_close").unbind(); + + $("#fancy_close, #fancy_loading, #fancy_left, #fancy_right, #fancy_title").hide(); + + __cleanup = function() { + if ($("#fancy_overlay").is(':visible')) { + $("#fancy_overlay").fadeOut("fast"); + } + + $("#fancy_content").empty(); + + if (opts.centerOnScroll) { + $(window).unbind("resize.fb scroll.fb"); + } + + if (IE6) { + $('embed, object, select').css('visibility', 'visible'); + } + + if ($.isFunction(opts.callbackOnClose)) { + opts.callbackOnClose(); + } + + busy = false; + }; + + if ($("#fancy_outer").is(":visible") !== false) { + if (opts.zoomSpeedOut > 0 && opts.itemArray[opts.itemCurrent].orig !== undefined) { + var orig_item = opts.itemArray[opts.itemCurrent].orig; + var orig_pos = $.fn.fancybox.getPosition(orig_item); + + var itemOpts = { + 'left': (orig_pos.left - 20 - opts.padding) + 'px', + 'top': (orig_pos.top - 20 - opts.padding) + 'px', + 'width': $(orig_item).width() + (opts.padding * 2), + 'height': $(orig_item).height() + (opts.padding * 2) + }; + + if (opts.zoomOpacity) { + itemOpts.opacity = 'hide'; + } + + $("#fancy_outer").stop(false, true).animate(itemOpts, opts.zoomSpeedOut, opts.easingOut, __cleanup); + + } else { + $("#fancy_outer").stop(false, true).fadeOut('fast', __cleanup); + } + + } else { + __cleanup(); + } + + return false; + }; + + $.fn.fancybox.build = function() { + var html = ''; + + html += '
'; + html += '
'; + + html += '
'; + html += '
'; + + html += '
'; + + html += '
'; + + html += ''; + + html += '
'; + + html += '
'; + html += '
'; + + html += '
'; + + $(html).appendTo("body"); + + $('
').appendTo('#fancy_title'); + + if ($.browser.msie) { + $(".fancy_bg").fixPNG(); + } + + if (IE6) { + $("div#fancy_overlay").css("position", "absolute"); + $("#fancy_loading div, #fancy_close, .fancy_title, .fancy_ico").fixPNG(); + + $("#fancy_inner").prepend(''); + + // Get rid of the 'false' text introduced by the URL of the iframe + var frameDoc = $('#fancy_bigIframe')[0].contentWindow.document; + frameDoc.open(); + frameDoc.close(); + + } + }; + + $.fn.fancybox.defaults = { + padding : 10, + imageScale : true, + zoomOpacity : true, + zoomSpeedIn : 0, + zoomSpeedOut : 0, + zoomSpeedChange : 300, + easingIn : 'swing', + easingOut : 'swing', + easingChange : 'swing', + frameWidth : 560, + frameHeight : 340, + overlayShow : true, + overlayOpacity : 0.3, + overlayColor : '#666', + enableEscapeButton : true, + showCloseButton : true, + hideOnOverlayClick : true, + hideOnContentClick : true, + centerOnScroll : true, + itemArray : [], + callbackOnStart : null, + callbackOnShow : null, + callbackOnClose : null + }; + + $(document).ready(function() { + ieQuirks = $.browser.msie && !$.boxModel; + + if ($("#fancy_outer").length < 1) { + $.fn.fancybox.build(); + } + }); + +})(jQuery); \ No newline at end of file diff --git a/tests/fancybox/jquery.fancybox-1.2.6.pack.js b/tests/fancybox/jquery.fancybox-1.2.6.pack.js new file mode 100644 index 0000000..0e65ecc --- /dev/null +++ b/tests/fancybox/jquery.fancybox-1.2.6.pack.js @@ -0,0 +1,16 @@ +/* + * FancyBox - jQuery Plugin + * simple and fancy lightbox alternative + * + * Copyright (c) 2009 Janis Skarnelis + * Examples and documentation at: http://fancybox.net + * + * Version: 1.2.6 (16/11/2009) + * Requires: jQuery v1.3+ + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ + +;eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';(p($){$.q.1Q=p(){J O.2n(p(){n b=$(O).u(\'2o\');8(b.1d(/^3i\\(["\']?(.*\\.2p)["\']?\\)$/i)){b=3j.$1;$(O).u({\'2o\':\'3k\',\'1e\':"3l:3m.3n.3o(3p=D, 3q="+($(O).u(\'3r\')==\'2q-3s\'?\'3t\':\'3u\')+", 13=\'"+b+"\')"}).2n(p(){n a=$(O).u(\'1u\');8(a!=\'2r\'&&a!=\'2s\')$(O).u(\'1u\',\'2s\')})}})};n l,4,1f=F,X=1v 1w,1x,1y=1,1z=/\\.(3v|3w|2p|3x|3y)(.*)?$/i;n m=1A,18=$.14.1g&&$.14.2t.1R(0,1)==6&&!19.3z,1S=18||($.14.1g&&$.14.2t.1R(0,1)==7);$.q.r=p(o){n j=$.2u({},$.q.r.2v,o);n k=O;p 2w(){l=O;4=$.2u({},j);2x();J F};p 2x(){8(1f)J;8($.1T(4.1U)){4.1U()}4.v=[];4.t=0;8(j.v.Y>0){4.v=j.v}C{n a={};8(!l.1B||l.1B==\'\'){n a={K:l.K,G:l.G};8($(l).1C("1l:1D").Y){a.S=$(l).1C("1l:1D")}C{a.S=$(l)}8(a.G==\'\'||1V a.G==\'1m\'){a.G=a.S.2y(\'1W\')}4.v.2z(a)}C{n b=$(k).1e("a[1B="+l.1B+"]");n a={};3A(n i=0;i=0){$.q.r.1F();1p(\'<1j s="2E" 3G="2F.q.r.2G()" 3H="3I\'+P.1b(P.3J()*3K)+\'" 2H="0" 3L="0" 13="\'+b+\'">\',4.1G,4.1H)}C 8(b.1d(/#/)){n c=19.3M.K.3N(\'#\')[0];c=b.3O(c,\'\');c=c.1R(c.2D(\'#\'));1p(\'<9 s="3P">\'+$(c).2I()+\'\',4.1G,4.1H)}C 8(b.1d(1z)){X=1v 1w;X.13=b;8(X.3Q){25()}C{$.q.r.1F();$(X).Q().11(\'3R\',p(){$("#M").1a();25()})}}C{$.q.r.1F();$.3S(b,p(a){$("#M").1a();1p(\'<9 s="3T">\'+a+\'\',4.1G,4.1H)})}};p 25(){n a=X.E;n b=X.A;n c=(4.N*2)+40;n d=(4.N*2)+26;n w=$.q.r.1q();8(4.2J&&(a>(w[0]-c)||b>(w[1]-d))){n e=P.28(P.28(w[0]-c,a)/a,P.28(w[1]-d,b)/b);a=P.1b(e*a);b=P.1b(e*b)}1p(\'<1l 1W="" s="3U" 13="\'+X.13+\'" />\',a,b)};p 2K(){8((4.v.Y-1)>4.t){n a=4.v[4.t+1].K||F;8(a&&a.1d(1z)){1I=1v 1w();1I.13=a}}8(4.t>0){n a=4.v[4.t-1].K||F;8(a&&a.1d(1z)){1I=1v 1w();1I.13=a}}};p 1p(a,b,c){1f=D;n d=4.N;8(1S||m){$("#y")[0].15.2L("A");$("#y")[0].15.2L("E")}8(d>0){b+=d*2;c+=d*2;$("#y").u({\'z\':d+\'R\',\'2M\':d+\'R\',\'2N\':d+\'R\',\'B\':d+\'R\',\'E\':\'2O\',\'A\':\'2O\'});8(1S||m){$("#y")[0].15.2P(\'A\',\'(O.2Q.3V - \'+d*2+\')\');$("#y")[0].15.2P(\'E\',\'(O.2Q.3W - \'+d*2+\')\')}}C{$("#y").u({\'z\':0,\'2M\':0,\'2N\':0,\'B\':0,\'E\':\'2R%\',\'A\':\'2R%\'})}8($("#x").16(":V")&&b==$("#x").E()&&c==$("#x").A()){$("#y").1J(\'29\',p(){$("#y").1r().1K($(a)).2a("1L",p(){1s()})});J}n w=$.q.r.1q();n e=(c+26)>w[1]?w[3]:(w[3]+P.1b((w[1]-c-26)*0.5));n f=(b+40)>w[0]?w[2]:(w[2]+P.1b((w[0]-b-40)*0.5));n g={\'B\':f,\'z\':e,\'E\':b+\'R\',\'A\':c+\'R\'};8($("#x").16(":V")){$("#y").1J("1L",p(){$("#y").1r();$("#x").2b(g,4.2S,4.2T,p(){$("#y").1K($(a)).2a("1L",p(){1s()})})})}C{8(4.2c>0&&4.v[4.t].S!==1m){$("#y").1r().1K($(a));n h=4.v[4.t].S;n i=$.q.r.2d(h);$("#x").u({\'B\':(i.B-20-4.N)+\'R\',\'z\':(i.z-20-4.N)+\'R\',\'E\':$(h).E()+(4.N*2),\'A\':$(h).A()+(4.N*2)});8(4.2e){g.22=\'Z\'}$("#x").2b(g,4.2c,4.2U,p(){1s()})}C{$("#y").1a().1r().1K($(a)).Z();$("#x").u(g).2a("1L",p(){1s()})}}};p 2V(){8(4.t!==0){$("#1o, #2W").Q().11("17",p(e){e.2X();4.t--;1h();J F});$("#1o").Z()}8(4.t!=(4.v.Y-1)){$("#1n, #2Y").Q().11("17",p(e){e.2X();4.t++;1h();J F});$("#1n").Z()}};p 1s(){8($.14.1g){$("#y")[0].15.1M(\'1e\');$("#x")[0].15.1M(\'1e\')}2V();2K();$(U).11("1N.L",p(e){8(e.2f==27&&4.2Z){$.q.r.1c()}C 8(e.2f==37&&4.t!==0){$(U).Q("1N.L");4.t--;1h()}C 8(e.2f==39&&4.t!=(4.v.Y-1)){$(U).Q("1N.L");4.t++;1h()}});8(4.30){$("#y").17($.q.r.1c)}8(4.1E&&4.31){$("#T").11("17",$.q.r.1c)}8(4.33){$("#1i").11("17",$.q.r.1c).Z()}8(1V 4.v[4.t].G!==\'1m\'&&4.v[4.t].G.Y>0){n a=$("#x").1u();$(\'#H 9\').3X(4.v[4.t].G).2I();$(\'#H\').u({\'z\':a.z+$("#x").34()-32,\'B\':a.B+(($("#x").35()*0.5)-($(\'#H\').E()*0.5))}).Z()}8(4.1E&&18){$(\'1X, 1Y, 1Z\',$(\'#y\')).u(\'21\',\'V\')}8($.1T(4.2g)){4.2g(4.v[4.t])}8($.14.1g){$("#x")[0].15.1M(\'1e\');$("#y")[0].15.1M(\'1e\')}1f=F};J O.Q(\'17.L\').11(\'17.L\',2w)};$.q.r.2C=p(){n w=$.q.r.1q();8(4.2h&&$("#x").16(\':V\')){n a=$("#x").35();n b=$("#x").34();n c={\'z\':(b>w[1]?w[3]:w[3]+P.1b((w[1]-b)*0.5)),\'B\':(a>w[0]?w[2]:w[2]+P.1b((w[0]-a)*0.5))};$("#x").u(c);$(\'#H\').u({\'z\':c.z+b-32,\'B\':c.B+((a*0.5)-($(\'#H\').E()*0.5))})}8(18&&$("#T").16(\':V\')){$("#T").u({\'A\':$(U).A()})}8($("#M").16(\':V\')){$("#M").u({\'B\':((w[0]-40)*0.5+w[2]),\'z\':((w[1]-40)*0.5+w[3])})}};$.q.r.1t=p(a,b){J 3Y($.3Z(a.41?a[0]:a,b,D))||0};$.q.r.2d=p(a){n b=a.42();b.z+=$.q.r.1t(a,\'43\');b.z+=$.q.r.1t(a,\'44\');b.B+=$.q.r.1t(a,\'45\');b.B+=$.q.r.1t(a,\'46\');J b};$.q.r.2G=p(){$("#M").1a();$("#2E").Z()};$.q.r.1q=p(){J[$(19).E(),$(19).A(),$(U).47(),$(U).48()]};$.q.r.36=p(){8(!$("#M").16(\':V\')){38(1x);J}$("#M > 9").u(\'z\',(1y*-40)+\'R\');1y=(1y+1)%12};$.q.r.1F=p(){38(1x);n w=$.q.r.1q();$("#M").u({\'B\':((w[0]-40)*0.5+w[2]),\'z\':((w[1]-40)*0.5+w[3])}).Z();$("#M").11(\'17\',$.q.r.1c);1x=49($.q.r.36,4a)};$.q.r.1c=p(){1f=D;$(X).Q();$(U).Q("1N.L");$(19).Q("23.L 24.L");$("#T, #y, #1i").Q();$("#1i, #M, #1o, #1n, #H").1a();1O=p(){8($("#T").16(\':V\')){$("#T").1J("29")}$("#y").1r();8(4.2h){$(19).Q("23.L 24.L")}8(18){$(\'1X, 1Y, 1Z\').u(\'21\',\'V\')}8($.1T(4.2i)){4.2i()}1f=F};8($("#x").16(":V")!==F){8(4.2j>0&&4.v[4.t].S!==1m){n a=4.v[4.t].S;n b=$.q.r.2d(a);n c={\'B\':(b.B-20-4.N)+\'R\',\'z\':(b.z-20-4.N)+\'R\',\'E\':$(a).E()+(4.N*2),\'A\':$(a).A()+(4.N*2)};8(4.2e){c.22=\'1a\'}$("#x").3a(F,D).2b(c,4.2j,4.3b,1O)}C{$("#x").3a(F,D).1J(\'29\',1O)}}C{1O()}J F};$.q.r.3c=p(){n a=\'\';a+=\'<9 s="T">\';a+=\'<9 s="M"><9>\';a+=\'<9 s="x">\';a+=\'<9 s="3d">\';a+=\'<9 s="1i">\';a+=\'<9 s="W"><9 I="W" s="4b"><9 I="W" s="4c"><9 I="W" s="4d"><9 I="W" s="4e"><9 I="W" s="4f"><9 I="W" s="4g"><9 I="W" s="4h"><9 I="W" s="4i">\';a+=\'<1P I="2l" s="2W"><1P I="2l" s="2Y">\';a+=\'<9 s="y">\';a+=\'\';a+=\'\';a+=\'<9 s="H">\';$(a).3e("4j");$(\'<3f 4k="0" 4l="0" 4m="0"><3g><1k I="H" s="4n"><1k I="H" s="4o"><9><1k I="H" s="4p">\').3e(\'#H\');8($.14.1g){$(".W").1Q()}8(18){$("9#T").u("1u","2r");$("#M 9, #1i, .H, .2l").1Q();$("#3d").4q(\'<1j s="3h" 13="2k:F;" 4r="2q" 2H="0">\');n b=$(\'#3h\')[0].4s.U;b.4t();b.1c()}};$.q.r.2v={N:10,2J:D,2e:D,2c:0,2j:0,2S:4u,2U:\'2m\',3b:\'2m\',2T:\'2m\',1G:4v,1H:4w,1E:D,2B:0.3,2A:\'#4x\',2Z:D,33:D,31:D,30:D,2h:D,v:[],1U:1A,2g:1A,2i:1A};$(U).4y(p(){m=$.14.1g&&!$.4z;8($("#x").Y<1){$.q.r.3c()}})})(2F);',62,284,'||||opts||||if|div||||||||||||||var||function|fn|fancybox|id|itemCurrent|css|itemArray||fancy_outer|fancy_content|top|height|left|else|true|width|false|title|fancy_title|class|return|href|fb|fancy_loading|padding|this|Math|unbind|px|orig|fancy_overlay|document|visible|fancy_bg|imagePreloader|length|show||bind||src|browser|style|is|click|IE6|window|hide|round|close|match|filter|busy|msie|_change_item|fancy_close|iframe|td|img|undefined|fancy_right|fancy_left|_set_content|getViewport|empty|_finish|getNumeric|position|new|Image|loadingTimer|loadingFrame|imageRegExp|null|rel|children|first|overlayShow|showLoading|frameWidth|frameHeight|objNext|fadeOut|append|normal|removeAttribute|keydown|__cleanup|span|fixPNG|substr|oldIE|isFunction|callbackOnStart|typeof|alt|embed|object|select||visibility|opacity|resize|scroll|_proceed_image|60||min|fast|fadeIn|animate|zoomSpeedIn|getPosition|zoomOpacity|keyCode|callbackOnShow|centerOnScroll|callbackOnClose|zoomSpeedOut|javascript|fancy_ico|swing|each|backgroundImage|png|no|absolute|relative|version|extend|defaults|_initialize|_start|attr|push|overlayColor|overlayOpacity|scrollBox|indexOf|fancy_frame|jQuery|showIframe|frameborder|html|imageScale|_preload_neighbor_images|removeExpression|right|bottom|auto|setExpression|parentNode|100|zoomSpeedChange|easingChange|easingIn|_set_navigation|fancy_left_ico|stopPropagation|fancy_right_ico|enableEscapeButton|hideOnContentClick|hideOnOverlayClick||showCloseButton|outerHeight|outerWidth|animateLoading||clearInterval||stop|easingOut|build|fancy_inner|appendTo|table|tr|fancy_bigIframe|url|RegExp|none|progid|DXImageTransform|Microsoft|AlphaImageLoader|enabled|sizingMethod|backgroundRepeat|repeat|crop|scale|jpg|gif|bmp|jpeg|XMLHttpRequest|for|while|hidden|background|color|className|onload|name|fancy_iframe|random|1000|hspace|location|split|replace|fancy_div|complete|load|get|fancy_ajax|fancy_img|clientHeight|clientWidth|text|parseInt|curCSS||jquery|offset|paddingTop|borderTopWidth|paddingLeft|borderLeftWidth|scrollLeft|scrollTop|setInterval|66|fancy_bg_n|fancy_bg_ne|fancy_bg_e|fancy_bg_se|fancy_bg_s|fancy_bg_sw|fancy_bg_w|fancy_bg_nw|body|cellspacing|cellpadding|border|fancy_title_left|fancy_title_main|fancy_title_right|prepend|scrolling|contentWindow|open|300|560|340|666|ready|boxModel'.split('|'),0,{})); \ No newline at end of file diff --git a/tests/iframe.html b/tests/iframe.html new file mode 100644 index 0000000..dbc4175 --- /dev/null +++ b/tests/iframe.html @@ -0,0 +1,31 @@ + + + + + + + + + + + +
+ +

FancyBox v1.2.6

+ +

+ Open a FullCalendar +

+ +
+ + diff --git a/tests/locale.html b/tests/locale.html index 56e69a8..75b6f41 100644 --- a/tests/locale.html +++ b/tests/locale.html @@ -1,6 +1,12 @@ +