Merge branch 'master' into ui
This commit is contained in:
commit
be3df22757
9 changed files with 55 additions and 6 deletions
|
@ -1,4 +1,5 @@
|
|||
const FileSender = require('./fileSender');
|
||||
const { notify } = require('./utils')
|
||||
const $ = require('jquery');
|
||||
|
||||
$(document).ready(function() {
|
||||
|
@ -94,6 +95,9 @@ $(document).ready(function() {
|
|||
.querySelector('#progress-bar')
|
||||
.style.setProperty('--progress', percentComplete + '%');
|
||||
$('#progress-text').html(`${percentComplete}%`);
|
||||
if (percentComplete === 100) {
|
||||
notify('Your upload has finished.');
|
||||
}
|
||||
});
|
||||
fileSender.upload().then(info => {
|
||||
const url = info.url.trim() + `#${info.secretKey}`.trim();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue