frontend-helpers 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. data/Rakefile +1 -1
  2. data/frontend-helpers.gemspec +28 -3
  3. data/vendor/assets/images/fancybox/blank.gif +0 -0
  4. data/vendor/assets/images/fancybox/fancy_close.png +0 -0
  5. data/vendor/assets/images/fancybox/fancy_loading.png +0 -0
  6. data/vendor/assets/images/fancybox/fancy_nav_left.png +0 -0
  7. data/vendor/assets/images/fancybox/fancy_nav_right.png +0 -0
  8. data/vendor/assets/images/fancybox/fancy_shadow_e.png +0 -0
  9. data/vendor/assets/images/fancybox/fancy_shadow_n.png +0 -0
  10. data/vendor/assets/images/fancybox/fancy_shadow_ne.png +0 -0
  11. data/vendor/assets/images/fancybox/fancy_shadow_nw.png +0 -0
  12. data/vendor/assets/images/fancybox/fancy_shadow_s.png +0 -0
  13. data/vendor/assets/images/fancybox/fancy_shadow_se.png +0 -0
  14. data/vendor/assets/images/fancybox/fancy_shadow_sw.png +0 -0
  15. data/vendor/assets/images/fancybox/fancy_shadow_w.png +0 -0
  16. data/vendor/assets/images/fancybox/fancy_title_left.png +0 -0
  17. data/vendor/assets/images/fancybox/fancy_title_main.png +0 -0
  18. data/vendor/assets/images/fancybox/fancy_title_over.png +0 -0
  19. data/vendor/assets/images/fancybox/fancy_title_right.png +0 -0
  20. data/vendor/assets/images/fancybox/fancybox-x.png +0 -0
  21. data/vendor/assets/images/fancybox/fancybox-y.png +0 -0
  22. data/vendor/assets/images/fancybox/fancybox.png +0 -0
  23. data/vendor/assets/javascripts/fancybox/index.js +3 -0
  24. data/vendor/assets/javascripts/fancybox/jquery.easing.js +72 -0
  25. data/vendor/assets/javascripts/fancybox/jquery.fancybox.js +46 -0
  26. data/vendor/assets/javascripts/fancybox/jquery.mousewheel.js +14 -0
  27. data/vendor/assets/stylesheets/fancybox.css.scss +342 -0
  28. metadata +39 -14
data/Rakefile CHANGED
@@ -19,7 +19,7 @@ Jeweler::Tasks.new do |gem|
19
19
  gem.description = %Q{Large collection of useful Rails 3.1 helpers for SEO, Metatags, Facebook OG tags, integration for analytics services like google, woopra, olark, mixpanel and much much more...}
20
20
  gem.email = "me@christopherhein.com"
21
21
  gem.authors = ["Christopher Hein"]
22
- gem.version = "0.0.4"
22
+ gem.version = "0.0.5"
23
23
  # dependencies defined in Gemfile
24
24
  end
25
25
  Jeweler::RubygemsDotOrgTasks.new
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{frontend-helpers}
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Christopher Hein}]
12
- s.date = %q{2011-07-26}
12
+ s.date = %q{2011-08-03}
13
13
  s.description = %q{Large collection of useful Rails 3.1 helpers for SEO, Metatags, Facebook OG tags, integration for analytics services like google, woopra, olark, mixpanel and much much more...}
14
14
  s.email = %q{me@christopherhein.com}
15
15
  s.extra_rdoc_files = [
@@ -67,9 +67,33 @@ Gem::Specification.new do |s|
67
67
  "test/dummy/script/rails",
68
68
  "test/frontend-helpers_test.rb",
69
69
  "test/test_helper.rb",
70
+ "vendor/assets/images/fancybox/blank.gif",
71
+ "vendor/assets/images/fancybox/fancy_close.png",
72
+ "vendor/assets/images/fancybox/fancy_loading.png",
73
+ "vendor/assets/images/fancybox/fancy_nav_left.png",
74
+ "vendor/assets/images/fancybox/fancy_nav_right.png",
75
+ "vendor/assets/images/fancybox/fancy_shadow_e.png",
76
+ "vendor/assets/images/fancybox/fancy_shadow_n.png",
77
+ "vendor/assets/images/fancybox/fancy_shadow_ne.png",
78
+ "vendor/assets/images/fancybox/fancy_shadow_nw.png",
79
+ "vendor/assets/images/fancybox/fancy_shadow_s.png",
80
+ "vendor/assets/images/fancybox/fancy_shadow_se.png",
81
+ "vendor/assets/images/fancybox/fancy_shadow_sw.png",
82
+ "vendor/assets/images/fancybox/fancy_shadow_w.png",
83
+ "vendor/assets/images/fancybox/fancy_title_left.png",
84
+ "vendor/assets/images/fancybox/fancy_title_main.png",
85
+ "vendor/assets/images/fancybox/fancy_title_over.png",
86
+ "vendor/assets/images/fancybox/fancy_title_right.png",
87
+ "vendor/assets/images/fancybox/fancybox-x.png",
88
+ "vendor/assets/images/fancybox/fancybox-y.png",
89
+ "vendor/assets/images/fancybox/fancybox.png",
70
90
  "vendor/assets/javascripts/backbone/backbone.js",
71
91
  "vendor/assets/javascripts/backbone/index.js",
72
92
  "vendor/assets/javascripts/backbone/underscore.js",
93
+ "vendor/assets/javascripts/fancybox/index.js",
94
+ "vendor/assets/javascripts/fancybox/jquery.easing.js",
95
+ "vendor/assets/javascripts/fancybox/jquery.fancybox.js",
96
+ "vendor/assets/javascripts/fancybox/jquery.mousewheel.js",
73
97
  "vendor/assets/javascripts/ie/dd_belatedpng.js",
74
98
  "vendor/assets/javascripts/ie/index.js",
75
99
  "vendor/assets/javascripts/ie/reverse_zindex.js",
@@ -84,13 +108,14 @@ Gem::Specification.new do |s|
84
108
  "vendor/assets/javascripts/shortcut.js",
85
109
  "vendor/assets/javascripts/swfobject.js",
86
110
  "vendor/assets/javascripts/tempo.js",
111
+ "vendor/assets/stylesheets/fancybox.css.scss",
87
112
  "vendor/assets/stylesheets/reset.css.sass",
88
113
  "vendor/assets/stylesheets/variables.css.sass"
89
114
  ]
90
115
  s.homepage = %q{http://github.com/christopherhein/frontend-helpers}
91
116
  s.licenses = [%q{MIT}]
92
117
  s.require_paths = [%q{lib}]
93
- s.rubygems_version = %q{1.8.5}
118
+ s.rubygems_version = %q{1.8.6}
94
119
  s.summary = %q{Collection of useful frontend helpers for Rails 3.1 applications.}
95
120
 
96
121
  if s.respond_to? :specification_version then
@@ -0,0 +1,3 @@
1
+ //= require ./jquery.easing
2
+ //= require ./jquery.mousewheel
3
+ //= require ./jquery.fancybox
@@ -0,0 +1,72 @@
1
+ /*
2
+ * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
3
+ *
4
+ * Uses the built in easing capabilities added In jQuery 1.1
5
+ * to offer multiple easing options
6
+ *
7
+ * TERMS OF USE - jQuery Easing
8
+ *
9
+ * Open source under the BSD License.
10
+ *
11
+ * Copyright © 2008 George McGinley Smith
12
+ * All rights reserved.
13
+ *
14
+ * Redistribution and use in source and binary forms, with or without modification,
15
+ * are permitted provided that the following conditions are met:
16
+ *
17
+ * Redistributions of source code must retain the above copyright notice, this list of
18
+ * conditions and the following disclaimer.
19
+ * Redistributions in binary form must reproduce the above copyright notice, this list
20
+ * of conditions and the following disclaimer in the documentation and/or other materials
21
+ * provided with the distribution.
22
+ *
23
+ * Neither the name of the author nor the names of contributors may be used to endorse
24
+ * or promote products derived from this software without specific prior written permission.
25
+ *
26
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
27
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
28
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
29
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
31
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
32
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
33
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
34
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
35
+ *
36
+ */
37
+
38
+ // t: current time, b: begInnIng value, c: change In value, d: duration
39
+ 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.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(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,{}))
40
+
41
+ /*
42
+ *
43
+ * TERMS OF USE - EASING EQUATIONS
44
+ *
45
+ * Open source under the BSD License.
46
+ *
47
+ * Copyright © 2001 Robert Penner
48
+ * All rights reserved.
49
+ *
50
+ * Redistribution and use in source and binary forms, with or without modification,
51
+ * are permitted provided that the following conditions are met:
52
+ *
53
+ * Redistributions of source code must retain the above copyright notice, this list of
54
+ * conditions and the following disclaimer.
55
+ * Redistributions in binary form must reproduce the above copyright notice, this list
56
+ * of conditions and the following disclaimer in the documentation and/or other materials
57
+ * provided with the distribution.
58
+ *
59
+ * Neither the name of the author nor the names of contributors may be used to endorse
60
+ * or promote products derived from this software without specific prior written permission.
61
+ *
62
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
63
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
64
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
65
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
66
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
67
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
68
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
69
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
70
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
71
+ *
72
+ */
@@ -0,0 +1,46 @@
1
+ /*
2
+ * FancyBox - jQuery Plugin
3
+ * Simple and fancy lightbox alternative
4
+ *
5
+ * Examples and documentation at: http://fancybox.net
6
+ *
7
+ * Copyright (c) 2008 - 2010 Janis Skarnelis
8
+ * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
+ *
10
+ * Version: 1.3.4 (11/11/2010)
11
+ * Requires: jQuery v1.3+
12
+ *
13
+ * Dual licensed under the MIT and GPL licenses:
14
+ * http://www.opensource.org/licenses/mit-license.php
15
+ * http://www.gnu.org/licenses/gpl.html
16
+ */
17
+
18
+ ;(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("<div/>")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');
19
+ F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||
20
+ c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=
21
+ false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case "html":m.html(e.content);F();break;case "inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel",
22
+ function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("<img />").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case "swf":e.scrolling="no";C='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+c+
23
+ '"></param>';P="";b.each(e.swf,function(x,H){C+='<param name="'+x+'" value="'+H+'"></param>';P+=" "+x+'="'+H+'"'});C+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+P+"></embed></object>";m.html(C);F();break;case "ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win==
24
+ "function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case "iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('<div style="width:'+a+";height:"+c+
25
+ ";overflow: "+(e.scrolling=="auto"?"auto":e.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor,
26
+ opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length?
27
+ d.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+s+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+d.titlePosition+'">'+s+"</div>":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case "inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding});
28
+ y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case "over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case "float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height==
29
+ i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents());
30
+ f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode==
31
+ 37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto");
32
+ s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(b.browser.msie?'allowtransparency="true""':"")+' scrolling="'+e.scrolling+'" src="'+d.href+'"></iframe>').appendTo(j);
33
+ f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c);
34
+ j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type==
35
+ "image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"),
36
+ 10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};
37
+ b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k=
38
+ 0,C=a.length;k<C;k++)if(typeof a[k]=="object")b(a[k]).data("fancybox",b.extend({},g,a[k]));else a[k]=b({}).data("fancybox",b.extend({content:a[k]},g));o=jQuery.merge(o,a)}else{if(typeof a=="object")b(a).data("fancybox",b.extend({},g,a));else a=b({}).data("fancybox",b.extend({content:a},g));o.push(a)}if(q>o.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+
39
+ 1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a<l.length){q=a;I()}else if(d.cyclic&&l.length>1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h=
40
+ true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1;
41
+ b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5-
42
+ d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('<div id="fancybox-tmp"></div>'),t=b('<div id="fancybox-loading"><div></div></div>'),u=b('<div id="fancybox-overlay"></div>'),f=b('<div id="fancybox-wrap"></div>'));D=b('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(f);
43
+ D.append(j=b('<div id="fancybox-content"></div>'),E=b('<a id="fancybox-close"></a>'),n=b('<div id="fancybox-title"></div>'),z=b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()});
44
+ b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(D)}}};
45
+ b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",
46
+ easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery);
@@ -0,0 +1,14 @@
1
+ /*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
2
+ * Licensed under the MIT License (LICENSE.txt).
3
+ *
4
+ * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
5
+ * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
6
+ * Thanks to: Seamus Leahy for adding deltaX and deltaY
7
+ *
8
+ * Version: 3.0.4
9
+ *
10
+ * Requires: 1.2.2+
11
+ */
12
+
13
+ (function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/120;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXIS){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!==undefined)h=-1*b.wheelDeltaX/120;i.unshift(a,c,h,e);return d.event.handle.apply(this,i)}var f=["DOMMouseScroll","mousewheel"];d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=
14
+ f.length;a;)this.addEventListener(f[--a],g,false);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEventListener(f[--a],g,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
@@ -0,0 +1,342 @@
1
+ #fancybox-loading {
2
+ position: fixed;
3
+ top: 50%;
4
+ left: 50%;
5
+ width: 40px;
6
+ height: 40px;
7
+ margin-top: -20px;
8
+ margin-left: -20px;
9
+ cursor: pointer;
10
+ overflow: hidden;
11
+ z-index: 1104;
12
+ display: none;
13
+ }
14
+
15
+ #fancybox-loading div {
16
+ position: absolute;
17
+ top: 0;
18
+ left: 0;
19
+ width: 40px;
20
+ height: 480px;
21
+ background-image: url(asset_path('fancybox/fancybox.png', 'image'));
22
+ }
23
+
24
+ #fancybox-overlay {
25
+ position: absolute;
26
+ top: 0;
27
+ left: 0;
28
+ width: 100%;
29
+ z-index: 1100;
30
+ display: none;
31
+ }
32
+
33
+ #fancybox-tmp {
34
+ padding: 0;
35
+ margin: 0;
36
+ border: 0;
37
+ overflow: auto;
38
+ display: none;
39
+ }
40
+
41
+ #fancybox-wrap {
42
+ position: absolute;
43
+ top: 0;
44
+ left: 0;
45
+ padding: 20px;
46
+ z-index: 1101;
47
+ outline: none;
48
+ display: none;
49
+ }
50
+
51
+ #fancybox-outer {
52
+ position: relative;
53
+ width: 100%;
54
+ height: 100%;
55
+ background: #fff;
56
+ }
57
+
58
+ #fancybox-content {
59
+ width: 0;
60
+ height: 0;
61
+ padding: 0;
62
+ outline: none;
63
+ position: relative;
64
+ overflow: hidden;
65
+ z-index: 1102;
66
+ border: 0px solid #fff;
67
+ }
68
+
69
+ #fancybox-hide-sel-frame {
70
+ position: absolute;
71
+ top: 0;
72
+ left: 0;
73
+ width: 100%;
74
+ height: 100%;
75
+ background: transparent;
76
+ z-index: 1101;
77
+ }
78
+
79
+ #fancybox-close {
80
+ position: absolute;
81
+ top: -15px;
82
+ right: -15px;
83
+ width: 30px;
84
+ height: 30px;
85
+ background: transparent url(asset_path('fancybox/fancybox.png', 'image')) -40px 0px;
86
+ cursor: pointer;
87
+ z-index: 1103;
88
+ display: none;
89
+ }
90
+
91
+ #fancybox-error {
92
+ color: #444;
93
+ font: normal 12px/20px Arial;
94
+ padding: 14px;
95
+ margin: 0;
96
+ }
97
+
98
+ #fancybox-img {
99
+ width: 100%;
100
+ height: 100%;
101
+ padding: 0;
102
+ margin: 0;
103
+ border: none;
104
+ outline: none;
105
+ line-height: 0;
106
+ vertical-align: top;
107
+ }
108
+
109
+ #fancybox-frame {
110
+ width: 100%;
111
+ height: 100%;
112
+ border: none;
113
+ display: block;
114
+ }
115
+
116
+ #fancybox-left, #fancybox-right {
117
+ position: absolute;
118
+ bottom: 0px;
119
+ height: 100%;
120
+ width: 35%;
121
+ cursor: pointer;
122
+ outline: none;
123
+ background: transparent url(asset_path('fancybox/blank.gif', 'image'));
124
+ z-index: 1102;
125
+ display: none;
126
+ }
127
+
128
+ #fancybox-left {
129
+ left: 0px;
130
+ }
131
+
132
+ #fancybox-right {
133
+ right: 0px;
134
+ }
135
+
136
+ #fancybox-left-ico, #fancybox-right-ico {
137
+ position: absolute;
138
+ top: 50%;
139
+ left: -9999px;
140
+ width: 30px;
141
+ height: 30px;
142
+ margin-top: -15px;
143
+ cursor: pointer;
144
+ z-index: 1102;
145
+ display: block;
146
+ }
147
+
148
+ #fancybox-left-ico {
149
+ background-image: url(asset_path('fancybox/fancybox.png', 'image'));
150
+ background-position: -40px -30px;
151
+ }
152
+
153
+ #fancybox-right-ico {
154
+ background-image: url(asset_path('fancybox/fancybox.png', 'image'));
155
+ background-position: -40px -60px;
156
+ }
157
+
158
+ #fancybox-left:hover, #fancybox-right:hover {
159
+ visibility: visible; /* IE6 */
160
+ }
161
+
162
+ #fancybox-left:hover span {
163
+ left: 20px;
164
+ }
165
+
166
+ #fancybox-right:hover span {
167
+ left: auto;
168
+ right: 20px;
169
+ }
170
+
171
+ .fancybox-bg {
172
+ position: absolute;
173
+ padding: 0;
174
+ margin: 0;
175
+ border: 0;
176
+ width: 20px;
177
+ height: 20px;
178
+ z-index: 1001;
179
+ }
180
+
181
+ #fancybox-bg-n {
182
+ top: -20px;
183
+ left: 0;
184
+ width: 100%;
185
+ background-image: url(asset_path('fancybox/fancybox-x.png', 'image'));
186
+ }
187
+
188
+ #fancybox-bg-ne {
189
+ top: -20px;
190
+ right: -20px;
191
+ background-image: url(asset_path('fancybox/fancybox.png', 'image'));
192
+ background-position: -40px -162px;
193
+ }
194
+
195
+ #fancybox-bg-e {
196
+ top: 0;
197
+ right: -20px;
198
+ height: 100%;
199
+ background-image: url(asset_path('fancybox/fancybox-y.png', 'image'));
200
+ background-position: -20px 0px;
201
+ }
202
+
203
+ #fancybox-bg-se {
204
+ bottom: -20px;
205
+ right: -20px;
206
+ background-image: url(asset_path('fancybox/fancybox.png', 'image'));
207
+ background-position: -40px -182px;
208
+ }
209
+
210
+ #fancybox-bg-s {
211
+ bottom: -20px;
212
+ left: 0;
213
+ width: 100%;
214
+ background-image: url(asset_path('fancybox/fancybox-x.png', 'image'));
215
+ background-position: 0px -20px;
216
+ }
217
+
218
+ #fancybox-bg-sw {
219
+ bottom: -20px;
220
+ left: -20px;
221
+ background-image: url(asset_path('fancybox/fancybox.png', 'image'));
222
+ background-position: -40px -142px;
223
+ }
224
+
225
+ #fancybox-bg-w {
226
+ top: 0;
227
+ left: -20px;
228
+ height: 100%;
229
+ background-image: url(asset_path('fancybox/fancybox-y.png', 'image'));
230
+ }
231
+
232
+ #fancybox-bg-nw {
233
+ top: -20px;
234
+ left: -20px;
235
+ background-image: url(asset_path('fancybox/fancybox.png', 'image'));
236
+ background-position: -40px -122px;
237
+ }
238
+
239
+ #fancybox-title {
240
+ font-family: Helvetica;
241
+ font-size: 12px;
242
+ z-index: 1102;
243
+ }
244
+
245
+ .fancybox-title-inside {
246
+ padding-bottom: 10px;
247
+ text-align: center;
248
+ color: #333;
249
+ background: #fff;
250
+ position: relative;
251
+ }
252
+
253
+ .fancybox-title-outside {
254
+ padding-top: 10px;
255
+ color: #fff;
256
+ }
257
+
258
+ .fancybox-title-over {
259
+ position: absolute;
260
+ bottom: 0;
261
+ left: 0;
262
+ color: #FFF;
263
+ text-align: left;
264
+ }
265
+
266
+ #fancybox-title-over {
267
+ padding: 10px;
268
+ background-image: url(asset_path('fancybox/fancy_title_over.png', 'image'));
269
+ display: block;
270
+ }
271
+
272
+ .fancybox-title-float {
273
+ position: absolute;
274
+ left: 0;
275
+ bottom: -20px;
276
+ height: 32px;
277
+ }
278
+
279
+ #fancybox-title-float-wrap {
280
+ border: none;
281
+ border-collapse: collapse;
282
+ width: auto;
283
+ }
284
+
285
+ #fancybox-title-float-wrap td {
286
+ border: none;
287
+ white-space: nowrap;
288
+ }
289
+
290
+ #fancybox-title-float-left {
291
+ padding: 0 0 0 15px;
292
+ background: url(asset_path('fancybox/fancybox.png', 'image')) -40px -90px no-repeat;
293
+ }
294
+
295
+ #fancybox-title-float-main {
296
+ color: #FFF;
297
+ line-height: 29px;
298
+ font-weight: bold;
299
+ padding: 0 0 3px 0;
300
+ background: url(asset_path('fancybox/fancybox-x.png', 'image')) 0px -40px;
301
+ }
302
+
303
+ #fancybox-title-float-right {
304
+ padding: 0 0 0 15px;
305
+ background: url(asset_path('fancybox/fancybox.png', 'image')) -55px -90px no-repeat;
306
+ }
307
+
308
+ /* IE6 */
309
+
310
+ .fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_close.png', 'image'), sizingMethod='scale'); }
311
+
312
+ .fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_nav_left.png', 'image'), sizingMethod='scale'); }
313
+ .fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_nav_right.png', 'image'), sizingMethod='scale'); }
314
+
315
+ .fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_title_over.png', 'image'), sizingMethod='scale'); zoom: 1; }
316
+ .fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_title_left.png', 'image'), sizingMethod='scale'); }
317
+ .fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_title_main.png', 'image'), sizingMethod='scale'); }
318
+ .fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_title_right.png', 'image'), sizingMethod='scale'); }
319
+
320
+ .fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame {
321
+ height: expression(this.parentNode.clientHeight + "px");
322
+ }
323
+
324
+ #fancybox-loading.fancybox-ie6 {
325
+ position: absolute; margin-top: 0;
326
+ top: expression( (-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px');
327
+ }
328
+
329
+ #fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_loading.png', 'image'), sizingMethod='scale'); }
330
+
331
+ /* IE6, IE7, IE8 */
332
+
333
+ .fancybox-ie .fancybox-bg { background: transparent !important; }
334
+
335
+ .fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_shadow_n.png', 'image'), sizingMethod='scale'); }
336
+ .fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_shadow_ne.png', 'image'), sizingMethod='scale'); }
337
+ .fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_shadow_e.png', 'image'), sizingMethod='scale'); }
338
+ .fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_shadow_se.png', 'image'), sizingMethod='scale'); }
339
+ .fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_shadow_s.png', 'image'), sizingMethod='scale'); }
340
+ .fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_shadow_sw.png', 'image'), sizingMethod='scale'); }
341
+ .fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_shadow_w.png', 'image'), sizingMethod='scale'); }
342
+ .fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=asset_path('fancybox/fancy_shadow_nw.png', 'image'), sizingMethod='scale'); }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frontend-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-26 00:00:00.000000000Z
12
+ date: 2011-08-03 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &2165222860 !ruby/object:Gem::Requirement
16
+ requirement: &2157825140 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.0.rc4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2165222860
24
+ version_requirements: *2157825140
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: haml-rails
27
- requirement: &2165217360 !ruby/object:Gem::Requirement
27
+ requirement: &2157824540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.3.4
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2165217360
35
+ version_requirements: *2157824540
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sass-rails
38
- requirement: &2165216880 !ruby/object:Gem::Requirement
38
+ requirement: &2157823940 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 3.1.0.rc
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2165216880
46
+ version_requirements: *2157823940
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sprockets
49
- requirement: &2165216400 !ruby/object:Gem::Requirement
49
+ requirement: &2157823320 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 2.0.0.beta.10
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2165216400
57
+ version_requirements: *2157823320
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jeweler
60
- requirement: &2165215920 !ruby/object:Gem::Requirement
60
+ requirement: &2157822720 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 1.6.4
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2165215920
68
+ version_requirements: *2157822720
69
69
  description: Large collection of useful Rails 3.1 helpers for SEO, Metatags, Facebook
70
70
  OG tags, integration for analytics services like google, woopra, olark, mixpanel
71
71
  and much much more...
@@ -126,9 +126,33 @@ files:
126
126
  - test/dummy/script/rails
127
127
  - test/frontend-helpers_test.rb
128
128
  - test/test_helper.rb
129
+ - vendor/assets/images/fancybox/blank.gif
130
+ - vendor/assets/images/fancybox/fancy_close.png
131
+ - vendor/assets/images/fancybox/fancy_loading.png
132
+ - vendor/assets/images/fancybox/fancy_nav_left.png
133
+ - vendor/assets/images/fancybox/fancy_nav_right.png
134
+ - vendor/assets/images/fancybox/fancy_shadow_e.png
135
+ - vendor/assets/images/fancybox/fancy_shadow_n.png
136
+ - vendor/assets/images/fancybox/fancy_shadow_ne.png
137
+ - vendor/assets/images/fancybox/fancy_shadow_nw.png
138
+ - vendor/assets/images/fancybox/fancy_shadow_s.png
139
+ - vendor/assets/images/fancybox/fancy_shadow_se.png
140
+ - vendor/assets/images/fancybox/fancy_shadow_sw.png
141
+ - vendor/assets/images/fancybox/fancy_shadow_w.png
142
+ - vendor/assets/images/fancybox/fancy_title_left.png
143
+ - vendor/assets/images/fancybox/fancy_title_main.png
144
+ - vendor/assets/images/fancybox/fancy_title_over.png
145
+ - vendor/assets/images/fancybox/fancy_title_right.png
146
+ - vendor/assets/images/fancybox/fancybox-x.png
147
+ - vendor/assets/images/fancybox/fancybox-y.png
148
+ - vendor/assets/images/fancybox/fancybox.png
129
149
  - vendor/assets/javascripts/backbone/backbone.js
130
150
  - vendor/assets/javascripts/backbone/index.js
131
151
  - vendor/assets/javascripts/backbone/underscore.js
152
+ - vendor/assets/javascripts/fancybox/index.js
153
+ - vendor/assets/javascripts/fancybox/jquery.easing.js
154
+ - vendor/assets/javascripts/fancybox/jquery.fancybox.js
155
+ - vendor/assets/javascripts/fancybox/jquery.mousewheel.js
132
156
  - vendor/assets/javascripts/ie/dd_belatedpng.js
133
157
  - vendor/assets/javascripts/ie/index.js
134
158
  - vendor/assets/javascripts/ie/reverse_zindex.js
@@ -143,6 +167,7 @@ files:
143
167
  - vendor/assets/javascripts/shortcut.js
144
168
  - vendor/assets/javascripts/swfobject.js
145
169
  - vendor/assets/javascripts/tempo.js
170
+ - vendor/assets/stylesheets/fancybox.css.scss
146
171
  - vendor/assets/stylesheets/reset.css.sass
147
172
  - vendor/assets/stylesheets/variables.css.sass
148
173
  homepage: http://github.com/christopherhein/frontend-helpers
@@ -160,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
185
  version: '0'
161
186
  segments:
162
187
  - 0
163
- hash: -266319691845052184
188
+ hash: -2348552081074585870
164
189
  required_rubygems_version: !ruby/object:Gem::Requirement
165
190
  none: false
166
191
  requirements:
@@ -169,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
194
  version: '0'
170
195
  requirements: []
171
196
  rubyforge_project:
172
- rubygems_version: 1.8.5
197
+ rubygems_version: 1.8.6
173
198
  signing_key:
174
199
  specification_version: 3
175
200
  summary: Collection of useful frontend helpers for Rails 3.1 applications.