Update index.html
This commit is contained in:
parent
a9e69f5613
commit
8a154038cb
1 changed files with 3 additions and 0 deletions
|
|
@ -240,6 +240,9 @@
|
|||
|
||||
// Drag and Drop
|
||||
const dropZone = $('.drop-zone');
|
||||
dropZone.addEventListener('click', () => {
|
||||
fileInput.click();
|
||||
});
|
||||
|
||||
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
|
||||
dropZone.addEventListener(eventName, (e) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue