Sha256: fd363afddd599960f0bcfe7a791bf921e851737bf5d3a7ae8eb3a5cb2e1d44d0

Contents?: true

Size: 1.26 KB

Versions: 20

Compression:

Stored size: 1.26 KB

Contents

<!DOCTYPE HTML>
<html>
<head>
    <style>
        .drop-zone {height:100px; width:256px; background:gray; margin:20px;}
    </style>  
    <script src="jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="../client/fileuploader.js" type="text/javascript" ></script>    
    <script>
    
function createDropZone(selector){
    var element = $(selector)[0];  
          
    new qq.UploadDropZone({
        element: element,
        onEnter: function(){
            console.log('enter')
            $(element).css('background', 'green');
        },
        onLeave: function(){
            console.log('leave')
        },
        onLeaveNotDescendants: function(){
            console.log('onLeaveNotDescendants')
            $(element).css('background', 'gray');
        },
        onDrop: function(e){
            $(element).css('background', 'gray');
            console.log('drop');
            console.log(e.dataTransfer.files);
        } 
    });    
}    

jQuery(function(){
    createDropZone('#drop-zone1');
    createDropZone('#drop-zone2');                
});

    </script>      
</head>
<body> 
    <div id="drop-zone1" class="drop-zone"><p>drop-zone1</p></div>
    <div id="drop-zone2" class="drop-zone"><p>drop-zone2</p></div>          
</body> 
</html>


Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
omf_web-1.2.9 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-1.2.8 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-1.2.7 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-1.2.6 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-1.2.5 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-1.2.4 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-1.2.3 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-1.2.2 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-1.2.1 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-1.2.0 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-1.0.0 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-0.9.9 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-0.9.8 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-0.9.7 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-0.9.6 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-0.9.5 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-0.9.4 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-0.9.3 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-0.9.1 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm
omf_web-0.9 share/htdocs/vendor/valums-file-uploader-cf7bfb1/tests/test-drop-zone.htm