diff options
author | Tommy Chen <tommy351@gmail.com> | 2012-06-03 04:35:21 +0200 |
---|---|---|
committer | Tommy Chen <tommy351@gmail.com> | 2012-06-03 04:40:55 +0200 |
commit | 94270a6ab47692520b18fd136342f05c496deaeb (patch) | |
tree | c5703af62bfa7d9d9bcc20d2167d1541ded8b307 /source/javascripts/caption.js | |
parent | e3cc2b2ff5d96ed69c982c100692a1745bc261ef (diff) | |
download | octopress-theme-jeyzu-94270a6ab47692520b18fd136342f05c496deaeb.zip octopress-theme-jeyzu-94270a6ab47692520b18fd136342f05c496deaeb.tar.gz |
rewrite caption.js & isolate fancybox
Diffstat (limited to 'source/javascripts/caption.js')
-rw-r--r-- | source/javascripts/caption.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/source/javascripts/caption.js b/source/javascripts/caption.js deleted file mode 100644 index 8dc3856..0000000 --- a/source/javascripts/caption.js +++ /dev/null @@ -1,15 +0,0 @@ -(function($){ - $('.entry').each(function(i){ - var _i = i; - $(this).find('img').each(function(){ - var alt = $(this).attr('alt'); - - if (alt == '' || typeof alt == 'undefined'){ - $(this).wrap('<a href="'+$(this).attr('src')+'" class="fancybox" rel="gallery'+_i+'" />'); - } else { - $(this).after('<span class="caption">'+alt+'</span>').wrap('<a href="'+$(this).attr('src')+'" class="fancybox" title="'+alt+'" rel="gallery'+_i+'" />'); - } - }); - }); - $('.fancybox').fancybox(); -})(jQuery);
\ No newline at end of file |