Skip to content

Commit

Permalink
Hide drop file(canvas) text when using loadURL
Browse files Browse the repository at this point in the history
  • Loading branch information
JSUYA authored and hermet committed Jan 26, 2024
1 parent 0b81332 commit 2366374
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ function loadFile(file) {
function loadUrl(url) {
const fileExtension = url.split('.').pop().toLowerCase();
player.load(url, fileExtension);

showImageCanvas();
enableZoomContainer();
enableProgressContainer();
showPage("progress");
}

function createFilesListTab() {
Expand Down Expand Up @@ -517,4 +522,5 @@ function refreshZoomValue() {
var value = document.getElementById("zoom-value");
value.innerHTML = player.offsetWidth + " x " + player.offsetHeight;
value.classList.remove("incorrect");
}
}

0 comments on commit 2366374

Please sign in to comment.