Skip to content

Instantly share code, notes, and snippets.

@lianglee
Created April 18, 2015 18:29
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 lianglee/d8ec4e4ffad8b805d011 to your computer and use it in GitHub Desktop.
Save lianglee/d8ec4e4ffad8b805d011 to your computer and use it in GitHub Desktop.
Fancybox limited image size, Ossn
Ossn.RegisterStartupFunction(function() {
$(document).ready(function() {
$(".activity-item-container .description img").fancybox({
'titleShow': false,
top: '75px',
afterClose: function() {
$(".activity-item-container .description img").show();
},
fitToView: false,
beforeShow: function() {
this.width = 800;
this.height = 800;
},
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment