Upload progressbar.js
Browse files- progressbar.js +5 -2
progressbar.js
CHANGED
@@ -4,6 +4,7 @@ let timeWarning = 160;
|
|
4 |
let maxTimeWarning = 3600;
|
5 |
let firstTimeStart = 0;
|
6 |
let timeZone = 'Asia/Bangkok';
|
|
|
7 |
//const options = { timeZone };
|
8 |
const options = { timeZone, hour: '2-digit', minute: '2-digit' };
|
9 |
const formatter = new Intl.DateTimeFormat([], options);
|
@@ -54,9 +55,11 @@ function formatTime(secs) {
|
|
54 |
}
|
55 |
|
56 |
function setTitle(progress, showCurDateTIme = false) {
|
57 |
-
|
|
|
58 |
if (showCurDateTIme == true){
|
59 |
-
|
|
|
60 |
}
|
61 |
else if (opts.show_progress_in_title && progress) {
|
62 |
title = '[' + progress.trim() + '] ' + title;
|
|
|
4 |
let maxTimeWarning = 3600;
|
5 |
let firstTimeStart = 0;
|
6 |
let timeZone = 'Asia/Bangkok';
|
7 |
+
let lastCompleteTime = 0;
|
8 |
//const options = { timeZone };
|
9 |
const options = { timeZone, hour: '2-digit', minute: '2-digit' };
|
10 |
const formatter = new Intl.DateTimeFormat([], options);
|
|
|
55 |
}
|
56 |
|
57 |
function setTitle(progress, showCurDateTIme = false) {
|
58 |
+
// var title = 'Unity';
|
59 |
+
var title = lastCompleteTime;
|
60 |
if (showCurDateTIme == true){
|
61 |
+
lastCompleteTime = getCurrentDateTimeGMTPlus7();
|
62 |
+
title = lastCompleteTime;
|
63 |
}
|
64 |
else if (opts.show_progress_in_title && progress) {
|
65 |
title = '[' + progress.trim() + '] ' + title;
|