diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 8b3bc73..2752745 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1223,8 +1223,8 @@ module ApplicationHelper end def add_zoom_to_images - stylesheet_link_tag('fancybox') + - javascript_include_tag('jquery.fancybox-1.3.4.pack') + + stylesheet_link_tag('jquery.fancybox') + + javascript_include_tag('jquery.fancybox.pack') + javascript_tag("jQuery(function($) { $(window).load( function() { $('#article .article-body img').each( function(index) { diff --git a/public/images/fancybox/fancybox_loading.gif b/public/images/fancybox/fancybox_loading.gif new file mode 100644 index 0000000..a03a40c Binary files /dev/null and b/public/images/fancybox/fancybox_loading.gif differ diff --git a/public/images/fancybox/fancybox_loading@2x.gif b/public/images/fancybox/fancybox_loading@2x.gif new file mode 100644 index 0000000..9205aeb Binary files /dev/null and b/public/images/fancybox/fancybox_loading@2x.gif differ diff --git a/public/images/fancybox/fancybox_overlay.png b/public/images/fancybox/fancybox_overlay.png new file mode 100644 index 0000000..a439139 Binary files /dev/null and b/public/images/fancybox/fancybox_overlay.png differ diff --git a/public/images/fancybox/fancybox_sprite.png b/public/images/fancybox/fancybox_sprite.png new file mode 100644 index 0000000..fd8d5ca Binary files /dev/null and b/public/images/fancybox/fancybox_sprite.png differ diff --git a/public/images/fancybox/fancybox_sprite@2x.png b/public/images/fancybox/fancybox_sprite@2x.png new file mode 100644 index 0000000..d0e4779 Binary files /dev/null and b/public/images/fancybox/fancybox_sprite@2x.png differ diff --git a/public/javascripts/jquery.fancybox-1.3.4.pack.js b/public/javascripts/jquery.fancybox-1.3.4.pack.js deleted file mode 100644 index c41676c..0000000 --- a/public/javascripts/jquery.fancybox-1.3.4.pack.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * FancyBox - jQuery Plugin - * Simple and fancy lightbox alternative - * - * Examples and documentation at: http://fancybox.net - * - * Copyright (c) 2008 - 2010 Janis Skarnelis - * 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. - * - * Version: 1.3.4 (11/11/2010) - * 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(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("
")[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('The requested content cannot be loaded.
Please try again later.
'+s+' |
The requested content cannot be loaded.
Please try again later.