Sha256: 9415d550a8fcccc3c8c26d839deddd28168528b433b50fd9e92d36dfa76af80a
Contents?: true
Size: 747 Bytes
Versions: 4
Compression:
Stored size: 747 Bytes
Contents
$(function() { function initFancybox() { $('a.fancybox').each(function() { var href = this.href.replace(/aspect=\w+/g, ''); this.href = href + (href.indexOf('?') < 0 ? '?' : '&') + 'aspect=image&geometry=800x800>'; }); $('a.fancybox').fancybox({ 'transitionIn' : 'none', 'transitionOut' : 'none', 'titlePosition' : 'over', 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) { return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + ' ' + (title ? title : '') + '</span>'; }}); } $('#content').bind('pageLoaded', initFancybox); initFancybox(); });
Version data entries
4 entries across 4 versions & 1 rubygems