daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <script type="text/javascript" language="Javascript">
  2.  
  3.     $(function(){
  4.         $('#cropbox').Jcrop({
  5.             aspectRatio: 100/70,
  6.             minSize: [200, 140],
  7.             bgColor:     'pink',
  8.                         bgOpacity:   .2,
  9.             onChange: showCoords
  10.         });
  11.     });
  12.  
  13.     function showCoords(c){
  14.         $('#x1').val(c.x);
  15.         $('#y1').val(c.y);
  16.         $('#x2').val(c.x2);
  17.         $('#y2').val(c.y2);
  18.         $('#w').val(c.w);
  19.         $('#h').val(c.h);
  20.     }
  21.  
  22. </script>
RAW Paste Data
Top