Permalink
Browse files

'init'

  • Loading branch information...
johnantoni committed Feb 8, 2010
0 parents commit c3101571915169175e763693289e0ff6498285c9
@@ -0,0 +1,3 @@
+to handle urls without an extensions append the extension name with &ext=.jpg (for example)
+
+http://groups.google.com/group/fancybox/browse_thread/thread/8df1379566348b48
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
+<div style="width:400px;overflow:auto">
+ <h2>This comes from ajax request</h2>
+ <p>
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean non velit. Donec pharetra, felis ut tristique adipiscing, diam magna rhoncus neque, sit amet convallis nibh nibh vel libero. Nulla facilisi. In eleifend nisl quis lorem. Duis semper fringilla justo. Proin imperdiet sapien sed lectus. Integer quis nisl et est elementum tempor. Morbi quis tellus nec turpis suscipit molestie. Praesent sed pede. Pellentesque ac orci. Sed sit amet urna eget tellus hendrerit aliquet. Nulla consectetur, pede aliquam ornare placerat, nunc augue commodo leo, sit amet elementum dolor est eleifend magna.
+ </p>
+</div>
@@ -0,0 +1,167 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta http-equiv="imagetoolbar" content="no" />
+ <title>FancyBox 1.3.0 | Demo page</title>
+ <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.1.min.js"></script>
+ <script type="text/javascript" src="../fancybox/jquery.mousewheel-3.0.2.pack.js"></script>
+ <script type="text/javascript" src="../fancybox/jquery.fancybox-1.3.0.pack.js"></script>
+ <link rel="stylesheet" type="text/css" href="../fancybox/jquery.fancybox-1.3.0.css" media="screen" />
+ <link rel="stylesheet" href="style.css" />
+ <script type="text/javascript">
+ $(document).ready(function() {
+ /*
+ * Examples - images
+ */
+
+ $("a#example1").fancybox({
+ 'titleShow' : false
+ });
+
+ $("a#example2").fancybox({
+ 'titleShow' : false,
+ 'transitionIn' : 'elastic',
+ 'transitionOut' : 'elastic'
+ });
+
+ $("a#example3").fancybox({
+ 'titleShow' : false,
+ 'transitionIn' : 'none',
+ 'transitionOut' : 'none'
+ });
+
+ $("a#example4").fancybox();
+
+ $("a#example5").fancybox({
+ 'titlePosition' : 'inside'
+ });
+
+ $("a#example6").fancybox({
+ 'titlePosition' : 'over'
+ });
+
+ $("a[rel=example_group]").fancybox({
+ 'transitionIn' : 'none',
+ 'transitionOut' : 'none',
+ 'titlePosition' : 'over',
+ 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
+ return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
+ }
+ });
+
+ /*
+ * Examples - various
+ */
+
+ $("#various1").fancybox({
+ 'titlePosition' : 'inside',
+ 'transitionIn' : 'none',
+ 'transitionOut' : 'none'
+ });
+
+ $("#various2").fancybox({
+ ajax : {
+ type : "POST",
+ example : 'myexample=test'
+ }
+ });
+
+ $("#various3").fancybox({
+ 'width' : '75%',
+ 'height' : '75%',
+ 'autoScale' : false,
+ 'transitionIn' : 'none',
+ 'transitionOut' : 'none',
+ 'type' : 'iframe'
+ });
+
+ $("#various4").fancybox({
+ 'padding' : 0,
+ 'autoScale' : false,
+ 'transitionIn' : 'none',
+ 'transitionOut' : 'none'
+ });
+ });
+ </script>
+</head>
+<body>
+<div id="content">
+ <h1>FancyBox <em>v1.3.0</em></h1>
+
+ <p>This is a demo page. <a href="http://fancybox.net">Home page</a></p>
+
+ <hr />
+
+ <p>
+ Different animations - 'fade', 'elastic' and 'none'<br />
+
+ <a id="example1" href="1_b.jpg">
+ <img alt="example1" src="1_s.jpg" />
+ </a>
+
+ <a id="example2" href="2_b.jpg">
+ <img alt="example2" src="2_s.jpg" />
+ </a>
+
+ <a id="example3" href="3_b.jpg">
+ <img alt="example3" src="3_s.jpg" />
+ </a>
+ </p>
+
+ <p>
+ Different title positions - 'outside', 'inside' and 'over'<br />
+
+ <a id="example4" title="Lorem ipsum dolor sit amet" href="4_b.jpg">
+ <img alt="example4" src="4_s.jpg" />
+ </a>
+
+ <a id="example5" title="Cras neque mi, semper at interdum id, dapibus in leo. Suspendisse nunc leo, eleifend sit amet iaculis et, cursus sed turpis." href="5_b.jpg">
+ <img alt="example5" src="5_s.jpg" />
+ </a>
+
+ <a id="example6" title="Sed vel sapien vel sem tempus placerat eu ut tortor. Nulla facilisi. Sed adipiscing, turpis ut cursus molestie, sem eros viverra mauris, quis sollicitudin sapien enim nec est. ras pulvinar placerat diam eu consectetur." href="6_b.jpg">
+ <img alt="example6" src="6_s.jpg" />
+ </a>
+ </p>
+
+ <p>
+ Image gallery (ps, try using mouse scroll wheel)<br />
+
+ <a rel="example_group" title="" href="7_b.jpg">
+ <img alt="example_group" src="7_s.jpg" />
+ </a>
+
+ <a rel="example_group" title="" href="8_b.jpg">
+ <img alt="example_group" src="8_s.jpg" />
+ </a>
+
+ <a rel="example_group" title="" href="9_b.jpg">
+ <img alt="example_group" src="9_s.jpg" />
+ </a>
+ </p>
+
+ <p>
+ Various examples
+ </p>
+
+ <ul>
+ <li><a id="various1" href="#inline1" title="Lorem ipsum dolor sit amet">Inline</a></li>
+ <li><a id="various2" href="ajax.txt">Ajax</a></li>
+ <li><a id="various3" href="http://google.ca">Iframe</a></li>
+ <li><a id="various4" href="http://www.adobe.com/jp/events/cs3_web_edition_tour/swfs/perform.swf">Swf</a></li>
+ </ul>
+
+ <div style="display: none;">
+ <div id="inline1" style="width:400px;height:100px;overflow:auto;">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam quis mi eu elit tempor facilisis id et neque. Nulla sit amet sem sapien. Vestibulum imperdiet porta ante ac ornare. Nulla et lorem eu nibh adipiscing ultricies nec at lacus. Cras laoreet ultricies sem, at blandit mi eleifend aliquam. Nunc enim ipsum, vehicula non pretium varius, cursus ac tortor. Vivamus fringilla congue laoreet. Quisque ultrices sodales orci, quis rhoncus justo auctor in. Phasellus dui eros, bibendum eu feugiat ornare, faucibus eu mi. Nunc aliquet tempus sem, id aliquam diam varius ac. Maecenas nisl nunc, molestie vitae eleifend vel, iaculis sed magna. Aenean tempus lacus vitae orci posuere porttitor eget non felis. Donec lectus elit, aliquam nec eleifend sit amet, vestibulum sed nunc.
+ </div>
+ </div>
+
+ <p>
+ <small>Photo Credit: <a href="http://www.flickr.com/people/kharied/">Katie Harris</a></small>
+ </p>
+</div>
+<div><p>&nbsp;</p></div>
+</body>
+</html>
@@ -0,0 +1,70 @@
+html, body {
+ margin: 0;
+ padding: 0;
+}
+
+body {
+ background: #EAEAEA;
+ font-family: Arial;
+ font-size: 12px;
+ line-height: 1.6;
+ color: #000;
+}
+
+#content {
+ width: 400px;
+ margin: 30px auto;
+ padding: 20px 30px;
+ background: #FFF;
+ border: 1px solid #CCC;
+ text-align: center;
+ -moz-box-shadow: 0 0 10px #BBB;
+ -webkit-box-shadow: 0 0 10px #BBB;
+ box-shadow: 0 0 10px #BBB;
+}
+
+h1 {
+ margin: 0;
+ font-size: 30px;
+ font-weight: normal;
+}
+
+h2 {
+ margin: 0;
+}
+
+h1 em {
+ font-size: 60%;
+ letter-spacing: -0.05em;
+}
+
+hr {
+ border: none;
+ height: 1px; line-height: 1px;
+ background: #CCC;
+ margin-bottom: 20px;
+ padding: 0;
+}
+
+p {
+ margin: 0;
+ padding: 7px 0 14px 0;
+}
+
+a {
+ outline: none;
+}
+
+a img {
+ border: 1px solid #BBB;
+ padding: 2px;
+ margin: 10px;
+}
+
+ul {
+ margin: -15px 0 0 40px;
+}
+
+ul li {
+ text-align: left;
+}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
@@ -0,0 +1,72 @@
+/*
+ * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
+ *
+ * Uses the built in easing capabilities added In jQuery 1.1
+ * to offer multiple easing options
+ *
+ * TERMS OF USE - jQuery Easing
+ *
+ * Open source under the BSD License.
+ *
+ * Copyright © 2008 George McGinley Smith
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this list of
+ * conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice, this list
+ * of conditions and the following disclaimer in the documentation and/or other materials
+ * provided with the distribution.
+ *
+ * Neither the name of the author nor the names of contributors may be used to endorse
+ * or promote products derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+*/
+
+// t: current time, b: begInnIng value, c: change In value, d: duration
+eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?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}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8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1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))
+
+/*
+ *
+ * TERMS OF USE - EASING EQUATIONS
+ *
+ * Open source under the BSD License.
+ *
+ * Copyright © 2001 Robert Penner
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this list of
+ * conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice, this list
+ * of conditions and the following disclaimer in the documentation and/or other materials
+ * provided with the distribution.
+ *
+ * Neither the name of the author nor the names of contributors may be used to endorse
+ * or promote products derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
Oops, something went wrong.

0 comments on commit c310157

Please sign in to comment.