Advertisement
Guest User

Untitled

a guest
Nov 5th, 2014
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     init = function() {
  2.         orig_src.onload = function(){
  3.             // This is fired after the image is loaded. Width is now set.
  4.             $cropMarker = $('#icCropMarker');
  5.             console.log('Works:' + orig_src.width);
  6.        
  7.             $cropMarker.width('100%').height('100%');
  8.             $cropMarker.on('mousedown touchstart', startResize);
  9.             $cropMarker.on('mousedown touchstart', '#icMoveHandle', startMoving);
  10.             $('#icCrop').on('click', crop);
  11.             repositionOverlay();
  12.         }
  13.         orig_src.src = imageTarget.src;
  14.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement