Browse Source

update index.html for requests that do not expire

283
ThomasV 9 years ago
parent
commit
c10a1672da
  1. 2
      lib/www/index.html

2
lib/www/index.html

@ -39,6 +39,7 @@ if (id) {
var max = 100;
var initial = data.time;
var duration = data.exp;
if(duration){
var current = 100 * (Math.floor(Date.now()/1000) - initial)/duration;
$("#progressbar").progressbar({
value: current,
@ -54,6 +55,7 @@ if (id) {
}
};
var interval = setInterval(update, 1000);
}
});
})
.fail(function() {

Loading…
Cancel
Save