Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaiR committed Feb 26, 2021
2 parents c1323a1 + c8b1541 commit 8c73343
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ document.addEventListener("DOMContentLoaded", async function () {
dropzone.className = "dropzone";
dropzone.innerHTML = "<div class='dropzone__thumb'><div>Drop here</div><div>demo file</div></div>"

fileSelect.addEventListener("input", () => {
button_open_demo.classList.add("open_demo__open");

if (fileSelect.files.length) {
updateFileName(dropzone, fileSelect.files[0]);
}
});

let error = document.createElement("div");
error.className = "error";
error.textContent = "ERROR";
Expand Down
1 change: 1 addition & 0 deletions style/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ body {
display: flex;
justify-content: center;
flex-direction: column;
z-index: -5;
}

.dropzone__thumblabel::after {
Expand Down

0 comments on commit 8c73343

Please sign in to comment.