Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.

Commit

Permalink
thing
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Dec 27, 2020
1 parent 6a0a566 commit 1d25d34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ <h1 class="title">E621 Downloader</h1>
function hideProgress() {
document.querySelector("div#progress").classList.add("hidden");
}
/**
* @param {(string | number)} t
*/
function resetProgress(t) {
const e = document.querySelector("div#progress");
const j = Array.from(e.querySelectorAll("progress"));
if (j.length > 0) j.map(v => e.removeChild(v));
Array.from(e.querySelectorAll("progress")).map(v => e.removeChild(v));
const v = document.createElement("progress");
v.value = "0";
v.max = t.toString();
Expand Down

0 comments on commit 1d25d34

Please sign in to comment.