Created
June 24, 2018 00:52
-
-
Save xbansh33/227b52ec2c62c528ed7b1f6738c54ef5 to your computer and use it in GitHub Desktop.
fancybox js code to allow images in comments to be clicked on
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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