Skip to content

Instantly share code, notes, and snippets.

@reatlat
Last active November 8, 2015 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reatlat/389e3f32581926dd7ef1 to your computer and use it in GitHub Desktop.
Save reatlat/389e3f32581926dd7ef1 to your computer and use it in GitHub Desktop.
<!-- fancyBox -->
<script type='text/javascript'>
/*<![CDATA[*/
jQuery(document).ready(function() {
jQuery('.fancybox').fancybox();
jQuery('a[href$=".png"], a[href$=".PNG"], a[href$=".jpg"], a[href$=".JPG"], a[href$=".gif"], a[href$=".GIF"]').each(function(){
jQuery(this).addClass('fancybox');
});
});
/*]]>*/
</script>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<script type='text/javascript'>
/*<![CDATA[*/
jQuery(document).ready(function() {
jQuery('a.fancybox').each(function(){jQuery(this).attr('data-fancybox-group','gallery');});
});
/*]]>*/
</script>
<script src='http://scripts.reatlat.net/fancyBox2/lib/jquery.mousewheel-3.0.6.pack.js' type='text/javascript'/>
</b:if>
<script src='http://scripts.reatlat.net/fancyBox2/source/jquery.fancybox.js' type='text/javascript'/>
<link href='http://scripts.reatlat.net/fancyBox2/source/jquery.fancybox.css' media='screen' rel='stylesheet' type='text/css'/>
<!-- /fancyBox -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment