diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-09-26 11:42:48 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-09-26 11:42:48 +0200 |
commit | 5792b3d3580b9f09460305858293398d8d8a9abf (patch) | |
tree | 90d60e9db4ed733a60c2890c7305d45ddd48be42 /addon/js_upload/file-uploader/tests/test-drop-zone.htm | |
parent | 991656a3ef396d9a6bd43ddb752627c2880b17ba (diff) | |
parent | 428e6766411d2c6708ad25f726c4bcf1d64af1cc (diff) | |
download | volse-hubzilla-5792b3d3580b9f09460305858293398d8d8a9abf.tar.gz volse-hubzilla-5792b3d3580b9f09460305858293398d8d8a9abf.tar.bz2 volse-hubzilla-5792b3d3580b9f09460305858293398d8d8a9abf.zip |
Merge branch 'master' into newui
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> - - |