diff options
author | Friendika <info@friendika.com> | 2011-09-25 01:59:14 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-09-25 01:59:14 -0700 |
commit | 4846d114a84b0c7da64501ea89a635d24e403a1d (patch) | |
tree | 565923c7932ef7fffa4e22482fce48ddb9f133e4 /addon/js_upload/file-uploader/tests/test-drop-zone.htm | |
parent | 6a9e22550d82595c4341290ca26e3afc5fe6300f (diff) | |
download | volse-hubzilla-4846d114a84b0c7da64501ea89a635d24e403a1d.tar.gz volse-hubzilla-4846d114a84b0c7da64501ea89a635d24e403a1d.tar.bz2 volse-hubzilla-4846d114a84b0c7da64501ea89a635d24e403a1d.zip |
project fork
Diffstat (limited to 'addon/js_upload/file-uploader/tests/test-drop-zone.htm')
-rw-r--r-- | addon/js_upload/file-uploader/tests/test-drop-zone.htm | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/addon/js_upload/file-uploader/tests/test-drop-zone.htm b/addon/js_upload/file-uploader/tests/test-drop-zone.htm deleted file mode 100644 index d7f0accf7..000000000 --- a/addon/js_upload/file-uploader/tests/test-drop-zone.htm +++ /dev/null @@ -1,48 +0,0 @@ -<!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> - - |