Skip to content

Instantly share code, notes, and snippets.

@PoTHuYJoHN
Created June 11, 2013 12:56
Show Gist options
  • Save PoTHuYJoHN/5756576 to your computer and use it in GitHub Desktop.
Save PoTHuYJoHN/5756576 to your computer and use it in GitHub Desktop.
init jcrop example with options
var jcrop_api = $.Jcrop(resizer.$img,{
allowResize : false,
bgFade : true,
touchSupport : true,
minSize : [w*wk,h*hk],
maxSize : [w*wk,h*hk],
onChange: function() {
$check.addClass('active');
},
onSelect: function() {
$check.addClass('active');
},
onRelease : function(){
$check.removeClass('active');
},
aspectRatio: 1
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment