Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="//cdn.rawgit.com/lolmaus/jquery.dragbetter/0.x/jquery.dragbetter.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  
  <div class="dropzone">Dropzone</div>
</body>
</html>
 
var
  $body = $('body'),
  $dropzones = $('.dropzone');
$body
  .on('dragbetterenter', function() {
    $body.addClass('_drag');
  })
  .on('dragbetterleave', function() {
    $body.removeClass('_drag');
  })
$dropzones
  .on('dragbetterenter', function() {
    $dropzones.addClass('_hover');
  })
  .on('dragbetterleave', function() {
    $dropzones.removeClass('_hover');
  })
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
lolmauspro
0viewers