Replace dashes with appropriate characters
This commit is contained in:
+4
-4
@@ -67,7 +67,7 @@
|
||||
// --- drag and drop ------------------------------------------------------
|
||||
function describeSelection() {
|
||||
var f = fileInput.files[0];
|
||||
dropHint.textContent = f ? f.name + ' — ' + formatSize(f.size)
|
||||
dropHint.textContent = f ? f.name + ' - ' + formatSize(f.size)
|
||||
: 'Choose a file, or drop one here.';
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
progress.hidden = false;
|
||||
|
||||
// FormData follows DOM order, so the token, expiry and vanity fields all
|
||||
// precede the file part — which is exactly what the server requires.
|
||||
// precede the file part, which is exactly what the server requires.
|
||||
var data = new FormData(form);
|
||||
var started = Date.now();
|
||||
|
||||
@@ -125,8 +125,8 @@
|
||||
var rate = elapsed > 0 ? ev.loaded / elapsed : 0;
|
||||
var eta = rate > 0 ? (ev.total - ev.loaded) / rate : 0;
|
||||
progressText.textContent =
|
||||
(pct * 100).toFixed(0) + '% — ' + formatSize(ev.loaded) + ' of ' +
|
||||
formatSize(ev.total) + ' — ' + formatSize(rate) + '/s' +
|
||||
(pct * 100).toFixed(0) + '% - ' + formatSize(ev.loaded) + ' of ' +
|
||||
formatSize(ev.total) + ' - ' + formatSize(rate) + '/s' +
|
||||
(eta > 1 ? ', ' + formatTime(eta) + ' left' : '');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user