Created
April 18, 2015 18:29
-
-
Save lianglee/d8ec4e4ffad8b805d011 to your computer and use it in GitHub Desktop.
Fancybox limited image size, Ossn
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
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