Yet another wrapper for "drag and drop" action, one of the millions of similar. Just pass by...
new DnD(target[, options]);Type: Object
DOM element
Type: Function
Type: Function
Type: Function
var dnd = new DnD(document.getElementById('drop'), { drop: onDropHandler });
function onDropHandler(e, files, text){
console.log('files:', files);
console.log('text:', text);
}