Spaces:
Running
Running
Update js_quene.js
Browse files- js_quene.js +5 -1
js_quene.js
CHANGED
|
@@ -21,7 +21,7 @@ queneDropZone.addEventListener('drop', (e) => {
|
|
| 21 |
|
| 22 |
});
|
| 23 |
|
| 24 |
-
|
| 25 |
if (droppedFiles.length === 0) {
|
| 26 |
console.log('No files loaded. Drop some files first.');
|
| 27 |
queneDropZone.innerHTML ='Add To Quene';
|
|
@@ -40,4 +40,8 @@ nextFileButton.addEventListener('click', () => {
|
|
| 40 |
console.log(`File ${currentIndex + 1} of ${droppedFiles.length} Name: ${file.name}`);
|
| 41 |
queneDropZone.innerHTML =`Filecount: ${droppedFiles.length}`;
|
| 42 |
currentIndex++;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
});
|
|
|
|
| 21 |
|
| 22 |
});
|
| 23 |
|
| 24 |
+
function startNextImageInQuene(){
|
| 25 |
if (droppedFiles.length === 0) {
|
| 26 |
console.log('No files loaded. Drop some files first.');
|
| 27 |
queneDropZone.innerHTML ='Add To Quene';
|
|
|
|
| 40 |
console.log(`File ${currentIndex + 1} of ${droppedFiles.length} Name: ${file.name}`);
|
| 41 |
queneDropZone.innerHTML =`Filecount: ${droppedFiles.length}`;
|
| 42 |
currentIndex++;
|
| 43 |
+
};
|
| 44 |
+
|
| 45 |
+
nextFileButton.addEventListener('click', () => {
|
| 46 |
+
startNextImageInQuene();
|
| 47 |
});
|