Skip to content

Instantly share code, notes, and snippets.

@xbansh33
Created June 24, 2018 00:52
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 xbansh33/227b52ec2c62c528ed7b1f6738c54ef5 to your computer and use it in GitHub Desktop.
Save xbansh33/227b52ec2c62c528ed7b1f6738c54ef5 to your computer and use it in GitHub Desktop.
fancybox js code to allow images in comments to be clicked on
$(document).ready(function(){
$(".ossn-wall-item .post-contents img").fancybox({
'titleShow' : false,
top: '75px',
afterClose: function(){
$(".ossn-wall-item .post-contents img").show();
},
});
$(".ossn-wall-item .comment-contents img").fancybox({
'titleShow' : false,
top: '75px',
afterClose: function(){
$(".ossn-wall-item .comment-contents img").show();
},
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment