Spaces:
Running
Running
Commit
·
e45bb6a
1
Parent(s):
daa82b2
Update index.html
Browse files- index.html +2 -6
index.html
CHANGED
|
@@ -26,7 +26,7 @@
|
|
| 26 |
<input type="file" id="fileUpload" multiple>
|
| 27 |
<button id="uploadButton">Upload Files</button>
|
| 28 |
<div id="processingMessage"></div>
|
| 29 |
-
<
|
| 30 |
<div id="message"></div>
|
| 31 |
<div id="error"></div>
|
| 32 |
|
|
@@ -52,8 +52,6 @@
|
|
| 52 |
// Replace the global fetch function
|
| 53 |
let progressMap = new Map();
|
| 54 |
|
| 55 |
-
let startTime = 0;
|
| 56 |
-
|
| 57 |
fetch = (url, init) => {
|
| 58 |
console.log(url, init)
|
| 59 |
if (init.method === 'PUT') {
|
|
@@ -95,9 +93,7 @@
|
|
| 95 |
// Update progress bar and speed display
|
| 96 |
const progressBar = document.getElementById('progressBar');
|
| 97 |
progressBar.value = totalUploaded;
|
| 98 |
-
|
| 99 |
-
speedDisplay.textContent = `${speedInMBps.toFixed(2)} MB/s`;
|
| 100 |
-
|
| 101 |
// Update processing message
|
| 102 |
const processingMessage = document.getElementById('processingMessage');
|
| 103 |
if (totalUploaded === 0) {
|
|
|
|
| 26 |
<input type="file" id="fileUpload" multiple>
|
| 27 |
<button id="uploadButton">Upload Files</button>
|
| 28 |
<div id="processingMessage"></div>
|
| 29 |
+
<progress id="progressBar" value="0" max="100"></progress>
|
| 30 |
<div id="message"></div>
|
| 31 |
<div id="error"></div>
|
| 32 |
|
|
|
|
| 52 |
// Replace the global fetch function
|
| 53 |
let progressMap = new Map();
|
| 54 |
|
|
|
|
|
|
|
| 55 |
fetch = (url, init) => {
|
| 56 |
console.log(url, init)
|
| 57 |
if (init.method === 'PUT') {
|
|
|
|
| 93 |
// Update progress bar and speed display
|
| 94 |
const progressBar = document.getElementById('progressBar');
|
| 95 |
progressBar.value = totalUploaded;
|
| 96 |
+
|
|
|
|
|
|
|
| 97 |
// Update processing message
|
| 98 |
const processingMessage = document.getElementById('processingMessage');
|
| 99 |
if (totalUploaded === 0) {
|