Spaces:
Running
Running
Update js_quene.js
Browse files- js_quene.js +3 -2
js_quene.js
CHANGED
@@ -51,8 +51,9 @@ function startNextImageInQuene(){
|
|
51 |
dropZone = document.querySelector("#drag-zone2");
|
52 |
dropZone.dispatchEvent(dropEvent);
|
53 |
|
54 |
-
|
55 |
-
document.body.style.backgroundImage = `url('${
|
|
|
56 |
document.body.style.backgroundSize = "cover";
|
57 |
document.body.style.backgroundPosition = "center";
|
58 |
document.body.style.backgroundRepeat = "no-repeat";
|
|
|
51 |
dropZone = document.querySelector("#drag-zone2");
|
52 |
dropZone.dispatchEvent(dropEvent);
|
53 |
|
54 |
+
data = file.dataTransfer.getData('text/uri-list') || file.dataTransfer.getData('text/plain');
|
55 |
+
document.body.style.backgroundImage = `url('${data}')`;
|
56 |
+
|
57 |
document.body.style.backgroundSize = "cover";
|
58 |
document.body.style.backgroundPosition = "center";
|
59 |
document.body.style.backgroundRepeat = "no-repeat";
|