Commit a67e3dcd authored by Lukas Bhm's avatar Lukas Bhm
Browse files

fixed tag

parent 33597b40
$(".custom-file-input").on("change", function() {
updateFileList();
});
// -------------
// DRAG AND DROP
// -------------
const dropArea = document.body;
const output = document.getElementById('uploaded-items');
const fileField = document.getElementById('files');
if (window.FileList && window.File) {
dropArea.addEventListener('dragenter', event => {
//$(".card").removeClass("shadow");
//$(".card").addClass("drag");
});
dropArea.addEventListener('dragover', event => {
console.log("DRAG ENTER");
event.stopPropagation();
event.preventDefault();
event.dataTransfer.dropEffect = 'copy';
});
dropArea.addEventListener('dragleave', () => {
//$(".card").removeClass("drag");
//$(".card").addClass("shadow");
});
dropArea.addEventListener('drop', event => {
event.stopPropagation();
event.preventDefault();
//$(".card").removeClass("drag");
//$(".card").addClass("shadow");
fileField.files = event.dataTransfer.files;
updateFileList();
});
}
\ No newline at end of file
...@@ -102,6 +102,4 @@ ...@@ -102,6 +102,4 @@
} }
}); });
</script> </script>
});
</script>
{% endblock content %} {% endblock content %}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment