From dbdbafd35d1899c4e6ee34bbee68120a58b27eda Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Sat, 28 Nov 2009 20:43:02 -0800 Subject: [PATCH] bugfixes and minor enhancements for 1.4.2 - eventAfterRender - getView - displaying in iframe (also added tests) - render method now adjusts calendar's size too - day-of-week classnames fixed when firstDay=1 - leave more space on side event events in agenda views - "T" optional in ISO8601 events --- .gitignore | 1 + docs/index.txt | 4 +- examples/default.html | 2 +- src/agenda.js | 7 +- src/css/agenda.css | 2 +- src/grid.js | 1 + src/main.js | 48 +- src/util.js | 2 +- tests/fancybox/fancy_closebox.png | Bin 0 -> 1910 bytes tests/fancybox/fancy_left.png | Bin 0 -> 1623 bytes tests/fancybox/fancy_progress.png | Bin 0 -> 12412 bytes tests/fancybox/fancy_right.png | Bin 0 -> 1645 bytes tests/fancybox/fancy_shadow_e.png | Bin 0 -> 146 bytes tests/fancybox/fancy_shadow_n.png | Bin 0 -> 144 bytes tests/fancybox/fancy_shadow_ne.png | Bin 0 -> 388 bytes tests/fancybox/fancy_shadow_nw.png | Bin 0 -> 374 bytes tests/fancybox/fancy_shadow_s.png | Bin 0 -> 147 bytes tests/fancybox/fancy_shadow_se.png | Bin 0 -> 393 bytes tests/fancybox/fancy_shadow_sw.png | Bin 0 -> 406 bytes tests/fancybox/fancy_shadow_w.png | Bin 0 -> 142 bytes tests/fancybox/fancy_title_left.png | Bin 0 -> 556 bytes tests/fancybox/fancy_title_main.png | Bin 0 -> 149 bytes tests/fancybox/fancy_title_right.png | Bin 0 -> 559 bytes tests/fancybox/jquery.fancybox-1.2.6.css | 283 +++++++++ tests/fancybox/jquery.fancybox-1.2.6.js | 620 +++++++++++++++++++ tests/fancybox/jquery.fancybox-1.2.6.pack.js | 16 + tests/iframe.html | 31 + tests/locale.html | 8 +- tests/methods.html | 15 +- tests/{default.html => plain.html} | 0 tests/sources.html | 12 +- tests/triggers.html | 9 +- version.txt | 2 +- 33 files changed, 1029 insertions(+), 34 deletions(-) create mode 100644 tests/fancybox/fancy_closebox.png create mode 100644 tests/fancybox/fancy_left.png create mode 100644 tests/fancybox/fancy_progress.png create mode 100644 tests/fancybox/fancy_right.png create mode 100644 tests/fancybox/fancy_shadow_e.png create mode 100644 tests/fancybox/fancy_shadow_n.png create mode 100644 tests/fancybox/fancy_shadow_ne.png create mode 100644 tests/fancybox/fancy_shadow_nw.png create mode 100644 tests/fancybox/fancy_shadow_s.png create mode 100644 tests/fancybox/fancy_shadow_se.png create mode 100644 tests/fancybox/fancy_shadow_sw.png create mode 100644 tests/fancybox/fancy_shadow_w.png create mode 100644 tests/fancybox/fancy_title_left.png create mode 100644 tests/fancybox/fancy_title_main.png create mode 100644 tests/fancybox/fancy_title_right.png create mode 100644 tests/fancybox/jquery.fancybox-1.2.6.css create mode 100644 tests/fancybox/jquery.fancybox-1.2.6.js create mode 100644 tests/fancybox/jquery.fancybox-1.2.6.pack.js create mode 100644 tests/iframe.html rename tests/{default.html => plain.html} (100%) 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,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%*~#ahJNcP2X9UdAudJ;6gUx<~3wNuO zvOxUg+Mo}G;SCM6wY5>L<>CP+-)qflZ*P}DhK7b_aU+sZ*J(Mt(;+1$lc^de{t1jT zLgu-7^QJ!@=4x(k_C>zCc=4i_QRWiz`DcusB@9RgW3NvHLdlJe;*`y1YrcH>a;HM_ zq#)h`p-6doxrfY3>(Ll=W9$;-l$t;Ub;p5_Hz2qY78VwS#KgpH)Y+1{x;j19bKqN% zi{rX*;e!70xrs~3>my)KZr$Z?Ca^N6MxT2yWIeO_CC3Oik{LQs%*IwfB9g!Dg5wZr^VL>MH zszyN1c9X)u_X0cz0k;nXlYRU4?V{S++KhsNf?_QbzkmP!-Lq%U)=`lr;a@WCJTvjX z40M~BnIc=_BRWe115ajV`GQFnSZ5DZ=pgrM|7$c!Hu5N%?U1(Ral zfV$1)HQHMpJGqfHXo<`M$!s$gRqv#b4=MIA5GCMXVQNH3;>Or VlNT*PFd6^=002ovPDHLkV1mp)503x< literal 0 HcmV?d00001 diff --git a/tests/fancybox/fancy_progress.png b/tests/fancybox/fancy_progress.png new file mode 100644 index 0000000000000000000000000000000000000000..06b7c89a6c0130b0a07ce6c562cb0a99a2e5e2ad GIT binary patch literal 12412 zcmZ8|Wn9yL*zSN)!ido+-~d6o8%79|6r{UDKsp3rz@$N7(v4Em-3`*IbhmUj;@ST^ z=go88Z2P^~XZ5}AtL{Z;s40S;Q9lC!03eu>ye8`YB>;f7hJ%HAG|R`0x&;7jp{h^- zU}o;Ox*i|un#w~#&qM2jjfc0nn>7Gx^})iL0p?_GYprQ*ZsqGbXe|K%@DRY{q3?Va z4l{k@zD{4=WFKdJvNi=`#^Yci(0JiY>EY<;Y?c=Cd9T@dZ8$d#$wqZx%!%I#wVtgX&_d3ouc z55evbusxMx@YgRaTnlTduh=yAWK zVyt7YApMPOZk)2=2wq`vTjR;e$oT5tWABId({8+3op+4%r$*_Eb?sYK3DdF(D zC|J~e=c{VA6kRr1lsuD(wzl@=Qj_~=Oiaw{Z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Q7_?S4ul+4kVHEfGev+q&Q0|6m@nngJLDgV>7S}H; zbMW2YDNXpL@9AILxNuPs@qBOdyAiUAt&on`jb_b-kiBfTdtrLEtC}v9+C$b(a5^P@ zFb}CD*Ww|*^+tucEaO_hs}xEeG&EXIv#j296m{d)q6ce~VKapl23}4o`dL^`R6FYE zb1F%7riL8LA%2}>l&x1Xdf(Cw=b0j@pq+D+!m=X38rrJCDYQLS0YK=drAAjs?N%`C z8?z?jkA0YU7Y41kSM)n&tvM~5Kr?nGqSvYkQLF7(_>^&9LS1J5TL!54+p&Q&ZYy{8HHk_DnKGfyLgf%FlaDdrZ}A zAMWPqYOFPniZkn{pDp*VZ&@j|{f{WdDKPWv<10v==Jmh7d&S9G*y4FNR2>r7dnMYue#QMCjbBd literal 0 HcmV?d00001 diff --git a/tests/fancybox/fancy_right.png b/tests/fancybox/fancy_right.png new file mode 100644 index 0000000000000000000000000000000000000000..0a56042f132c520b0ac3e5bfe78352469f14d70a GIT binary patch literal 1645 zcmV-z29o)SP)TL;=>ImGEu55;6z=WqRoLDz6T?T00cc_(6crVji;Iix_;dhR zoSK>n3xbd)ilPAUsnXI?E-x=HJT^AwA08f-K7RZd!afGbWJ$v>?YisM!lP6Eyh)Mtl2(kmnvApM) zhZF^Setv%H$&)8HbaZr7!szeeh-Z3wS{@x8l_S@emX>}+WD0O#S6W(H3fW>dO|kMx z3Xa^|T<4iHXEt|tcYiC(@+cV$1OiHXdwXF2{{3F)xb?DY*RGWtH*N$ZNm7{Z^ZWPj z*Y4c8a|0rjMmCvkJ{qV!IXT&R;J|^+ckbLd4jX7v)ZruuiNba>jH6h(=*RJ_B@V2(L<1UwL zJ=ta$f(A~1%#g&4j11SMOP4Aa78d^0JT(GE?mQ&14nWt8Y=9sAc>fBLMHmdrq!G$S zA+D;bD!G08_BqbaEry_o}8QvlC8eJzMo+0ORPHyi+QaA zC*VH1z~ahx@811F$}KG|foMj-T$My?f!Ej9`$%tYZmtLKWsq#2;Dd7I$`wC-C-APWE_S4kktF;0~+Z3gy*}H2$xE(7kdYzuy!T6r4x7ndy?dWsDRl)M`_IfByiu@)wrL+gZpG#799} zZ4#`2Z-!KXjX!{;KcilEYo3pcjQCESIwc|RhF;Qu@aWMaucrU-;ln|!H$lE9o6PoV zli+njfRz<+s$Mw&&qGDqSX*0L0+N*Ei7jn}tSydaa1IhJ1{nat}30g;_1nSo~mJQoC8j{=j^+}vDvz?QfS9nh(9pUWfo>)w!%kDmSzT?#KQ6glPpx7bzr6wT`aY{ zygU=#i^draljYKj7cb_}d*>NzDVNib872!X9a?VHyUZJmwH962iR}cC&JIG1Oa%MY z`3WtL!}kzKDM2WVpBNAwVv&(a3vWO_=JE#Pt%-SVVFOwMi$D@Pj6*j&X~l;Odl`sE zIO@?70}Seh`7 rKUwr(as7nh);P>sPdFZ>e+3u-?hujNvBx$R00000NkvXXu0mjfcQh4B literal 0 HcmV?d00001 diff --git a/tests/fancybox/fancy_shadow_e.png b/tests/fancybox/fancy_shadow_e.png new file mode 100644 index 0000000000000000000000000000000000000000..540de31c64895d93a5aa0d39a9d5dad33ba618d8 GIT binary patch literal 146 zcmeAS@N?(olHy`uVBq!ia0vp^B0$W@!3HGnP3ltxQj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS>JicCCR978H@C5ecOZcRu?_`!VSf5Q)Rf&ZO7x>?> t>L>ft|IM$MH~!yW@s;aHIs=CR!&_yM|19qDSr z1<%~X^wgl##FWaylc_d9MMj=3jv*Ddl79UEZ_nJkV}*vYFf;SvdVzyXN(W-t1P-=n qv88Q1xHD%3i<6-fyS76EBg4Y&EOTc3(fyJDdX(W49*?)e1y$8H5vfqBk8Z^oU(rK7*(DV9@VMxBlT8}jXAn})w9Y7}etc_!nzwa0h08uD9O|Yb3 zwF6WZ4BH^sJ3*YHJQwG>R2VH#15YWj0@EVkiHi)QjqVcWcw_$p95}cmUma$%AL}B+ z&s`l3cs+z2Q!v+grzWL2CJQ@Jb1W5xHlZ?$pB+}6!vKqvwP9W&ib*%UkYm#w12&rL z+z8@Sc`iX%1_{tRx+$epoa>No>AE}sP}uLVhp;pPHp^2U)&tHOSxB~013VT0000_)fH77EmN}UqO};yF8C}*qJHLasWsH zEcXHEb`T9AsX~kM*XP}GBsoB;&VmMoV_)W7vfGqc;Vc@kOi&}xs(%}(k#h{{aNjB1 z0&ed{p<`Z515OBryMuxb{oEM_fMU}TDSr z1<%~X^wgl##FWaylc_d9MW&uEjv*Ddk_5y>O_P%n5`OS2{cGy5FA!_`&F%81rTcGl tx8jbTf};sdk~#-J{QqCi*1*8bP_{=nWvSK8-#`NxJYD@<);T3K0RUV1FNpvE literal 0 HcmV?d00001 diff --git a/tests/fancybox/fancy_shadow_se.png b/tests/fancybox/fancy_shadow_se.png new file mode 100644 index 0000000000000000000000000000000000000000..301ae23e87a27b74e1c4d7e40a2d0561818a11de GIT binary patch literal 393 zcmV;40e1e0P)=jO5bBljb{?)SSj*WG<{%{#f>?_x=^=Ai-* z0sHqJTW0AB`?sBlV8GsqSm05iw<8+?bY`8U>A{1?raZylT0!X%)MwM1aT z)_7sw;U~p@CPu-PX~3Kk@v~#kh3B%X6Ckt9jZd&^0BTgORaFIO04sJ{X035-(7a-u z0fRP95odzIpja;XKJUKCnj(~w7=B1z$1;Lg7`-fDCl>tv0$}+GpDc=ts*S`75w3x8 zh^Q|vnHd=MSP9hu(!nf9kV<-IFcHT$jeJQzCiyBqm7yxjS23xIA?I9sMo5XaY3QI1 z;GUbr?pC>PO6F3yCx?g=a@MAett|P<1sy}9*5S6xx__tPn=9rb-lVvBQdyZ!0ZRep zl8=C=@>ylQ5TE1u4e&3_Q@#W4>lg5!<41r20I{E!GNE4+@&Et;07*qoM6N<$f+Lu- AJ^%m! literal 0 HcmV?d00001 diff --git a/tests/fancybox/fancy_shadow_w.png b/tests/fancybox/fancy_shadow_w.png new file mode 100644 index 0000000000000000000000000000000000000000..05f8de9248b5f9789bed78ce44d262bd57e0359f GIT binary patch literal 142 zcmeAS@N?(olHy`uVBq!ia0vp^B0$W@!3HGnP3ltxQj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS>JiVQqm978H@CH?vT-=3MnqodQ1Ni$7>?V=BlzyYRIV`oF_ nDQum^4o@9sh_34ARXD)FCeK{MCYvM#)XU)M>gTe~DWM4fE1@TY literal 0 HcmV?d00001 diff --git a/tests/fancybox/fancy_title_left.png b/tests/fancybox/fancy_title_left.png new file mode 100644 index 0000000000000000000000000000000000000000..1e82b6da6fb1fed223157659816433a1016c1892 GIT binary patch literal 556 zcmV+{0@MA8P)+)00004XF*Lt007q5 z)K6G40000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUzzDYzuR4C7l zlT9eYaTv$H_GV0G8&kr(97Yo5t-NGTUJo4HD6$=##A!8BN^!x>aVO;@N}*hK(Bf!0 zj94pH#I&i&OCHbP|Lp8xZFpYH?6PX=EV)X+dHM=JiTgB}LtA}|5_=KcP-pXi&Mm79*O!`#};`ArnRv-|iFb#FJo9j5WaOb`ZUO*e>N* z$Fa7fC8Dj=*r1SFj{?}kheXbZ9IH8X5$fXCM71F~*04^cXnsu)nJ$!Y9xBk54r^gT zB|07>%E={s=2tFFO1|k;ZcHkzcT$k0`YKIh7&tjr5>=7~UF|aou737TQB*WxXu&HO zVdWw7Jar_6sDcBdz7x3}#DSKe9zB?Fc~5VI9J}!`$xNahEGS1K`Y-{{K_J?^ u744j*8SP5@#Y=>IR?^0!`u_?lEbu2<;S$J$zpc3d0000J-`tuAq*&4&eH|GXuHCreA7KRKOP07s zlmzFem6RtIr7}3C+)00004XF*Lt007q5 z)K6G40000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUz!AV3xR4C7V zQ%fj>Q5ZdD#$$}UhZ4qPfh5YSJTg|E3l?@184D}1Qb;Mq20P1HDJxM5Wity+EXiVs zX^JWG$f%J=u5-;l`e*)s+;4f#_uYHWJs%Jc6O1q*j-_+bkqQfvkU*M2LwP%U+4fE^ zmmv+wq!^lXh>L>Z*$D`7w~u`4NDTEyz_zQ8Zy~1bRACAA zdm?L#{YOi%u|GivcKC(x9ij|YI%&|rRbD!9gKFe)yio&ZTnh0KL<0)xp(z&Jj1qp9 zNq6|OAFU`w2F=lX+POO>EQM`4V+^mjmbP?_$9S4F_2d}6y257pCBb0J6xubmBwnmM z%1|sg(U1BlQ^Rp^onQ!dlp|O9k|y7WiePH)GY7)2*)Q1JJm;V2%QVTNEg>QKx; zh2wDffS@DFQ563EKT)tvwU002ovPDHLkV1lp%?Nk5& literal 0 HcmV?d00001 diff --git a/tests/fancybox/jquery.fancybox-1.2.6.css b/tests/fancybox/jquery.fancybox-1.2.6.css new file mode 100644 index 0000000..34eb6b4 --- /dev/null +++ b/tests/fancybox/jquery.fancybox-1.2.6.css @@ -0,0 +1,283 @@ +div#fancy_overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + display: none; + z-index: 30; +} + +div#fancy_loading { + position: absolute; + height: 40px; + width: 40px; + cursor: pointer; + display: none; + overflow: hidden; + background: transparent; + z-index: 100; +} + +div#fancy_loading div { + position: absolute; + top: 0; + left: 0; + width: 40px; + height: 480px; + background: transparent url('fancy_progress.png') no-repeat; +} + +div#fancy_outer { + position: absolute; + top: 0; + left: 0; + z-index: 90; + padding: 20px 20px 40px 20px; + margin: 0; + background: transparent; + display: none; +} + +div#fancy_inner { + position: relative; + width:100%; + height:100%; + background: #FFF; +} + +div#fancy_content { + margin: 0; + z-index: 100; + position: absolute; +} + +div#fancy_div { + background: #000; + color: #FFF; + height: 100%; + width: 100%; + z-index: 100; +} + +img#fancy_img { + position: absolute; + top: 0; + left: 0; + border:0; + padding: 0; + margin: 0; + z-index: 100; + width: 100%; + height: 100%; +} + +div#fancy_close { + position: absolute; + top: -12px; + right: -15px; + height: 30px; + width: 30px; + background: url('fancy_closebox.png') top left no-repeat; + cursor: pointer; + z-index: 181; + display: none; +} + +#fancy_frame { + position: relative; + width: 100%; + height: 100%; + display: none; +} + +#fancy_ajax { + width: 100%; + height: 100%; + overflow: auto; +} + +a#fancy_left, a#fancy_right { + position: absolute; + bottom: 0px; + height: 100%; + width: 35%; + cursor: pointer; + z-index: 111; + display: none; + background-image: url("data:image/gif;base64,AAAA"); + outline: none; + overflow: hidden; +} + +a#fancy_left { + left: 0px; +} + +a#fancy_right { + right: 0px; +} + +span.fancy_ico { + position: absolute; + top: 50%; + margin-top: -15px; + width: 30px; + height: 30px; + z-index: 112; + cursor: pointer; + display: block; +} + +span#fancy_left_ico { + left: -9999px; + background: transparent url('fancy_left.png') no-repeat; +} + +span#fancy_right_ico { + right: -9999px; + background: transparent url('fancy_right.png') no-repeat; +} + +a#fancy_left:hover, a#fancy_right:hover { + visibility: visible; + background-color: transparent; +} + +a#fancy_left:hover span { + left: 20px; +} + +a#fancy_right:hover span { + right: 20px; +} + +#fancy_bigIframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: transparent; +} + +div#fancy_bg { + position: absolute; + top: 0; left: 0; + width: 100%; + height: 100%; + z-index: 70; + border: 0; + padding: 0; + margin: 0; +} + +div.fancy_bg { + position: absolute; + display: block; + z-index: 70; + border: 0; + padding: 0; + margin: 0; +} + +div#fancy_bg_n { + top: -20px; + left: 0; + width: 100%; + height: 20px; + background: transparent url('fancy_shadow_n.png') repeat-x; +} + +div#fancy_bg_ne { + top: -20px; + right: -20px; + width: 20px; + height: 20px; + background: transparent url('fancy_shadow_ne.png') no-repeat; +} + +div#fancy_bg_e { + right: -20px; + height: 100%; + width: 20px; + background: transparent url('fancy_shadow_e.png') repeat-y; +} + +div#fancy_bg_se { + bottom: -20px; + right: -20px; + width: 20px; + height: 20px; + background: transparent url('fancy_shadow_se.png') no-repeat; +} + +div#fancy_bg_s { + bottom: -20px; + left: 0; + width: 100%; + height: 20px; + background: transparent url('fancy_shadow_s.png') repeat-x; +} + +div#fancy_bg_sw { + bottom: -20px; + left: -20px; + width: 20px; + height: 20px; + background: transparent url('fancy_shadow_sw.png') no-repeat; +} + +div#fancy_bg_w { + left: -20px; + height: 100%; + width: 20px; + background: transparent url('fancy_shadow_w.png') repeat-y; +} + +div#fancy_bg_nw { + top: -20px; + left: -20px; + width: 20px; + height: 20px; + background: transparent url('fancy_shadow_nw.png') no-repeat; +} + +div#fancy_title { + position: absolute; + z-index: 100; + display: none; +} + +div#fancy_title div { + color: #FFF; + font: bold 12px Arial; + padding-bottom: 3px; + white-space: nowrap; +} + +div#fancy_title table { + margin: 0 auto; +} + +div#fancy_title table td { + padding: 0; + vertical-align: middle; +} + +td#fancy_title_left { + height: 32px; + width: 15px; + background: transparent url('fancy_title_left.png') repeat-x; +} + +td#fancy_title_main { + height: 32px; + background: transparent url('fancy_title_main.png') repeat-x; +} + +td#fancy_title_right { + height: 32px; + width: 15px; + background: transparent url('fancy_title_right.png') repeat-x; +} \ No newline at end of file diff --git a/tests/fancybox/jquery.fancybox-1.2.6.js b/tests/fancybox/jquery.fancybox-1.2.6.js new file mode 100644 index 0000000..31994c3 --- /dev/null +++ b/tests/fancybox/jquery.fancybox-1.2.6.js @@ -0,0 +1,620 @@ +/* + * 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 + */ + +;(function($) { + $.fn.fixPNG = function() { + return this.each(function () { + var image = $(this).css('backgroundImage'); + + if (image.match(/^url\(["']?(.*\.png)["']?\)$/i)) { + image = RegExp.$1; + $(this).css({ + 'backgroundImage': 'none', + 'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=" + ($(this).css('backgroundRepeat') == 'no-repeat' ? 'crop' : 'scale') + ", src='" + image + "')" + }).each(function () { + var position = $(this).css('position'); + if (position != 'absolute' && position != 'relative') + $(this).css('position', 'relative'); + }); + } + }); + }; + + var elem, opts, busy = false, imagePreloader = new Image, loadingTimer, loadingFrame = 1, imageRegExp = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i; + var ieQuirks = null, IE6 = $.browser.msie && $.browser.version.substr(0,1) == 6 && !window.XMLHttpRequest, oldIE = IE6 || ($.browser.msie && $.browser.version.substr(0,1) == 7); + + $.fn.fancybox = function(o) { + var settings = $.extend({}, $.fn.fancybox.defaults, o); + var matchedGroup = this; + + function _initialize() { + elem = this; + opts = $.extend({}, settings); + + _start(); + + return false; + }; + + function _start() { + if (busy) return; + + if ($.isFunction(opts.callbackOnStart)) { + opts.callbackOnStart(); + } + + opts.itemArray = []; + opts.itemCurrent = 0; + + if (settings.itemArray.length > 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 @@ +