|
|
@ -240,20 +240,18 @@ window.addEvent('load', function () { |
|
|
|
}, |
|
|
|
}, |
|
|
|
onSuccess : function (info) { |
|
|
|
onSuccess : function (info) { |
|
|
|
if (info) { |
|
|
|
if (info) { |
|
|
|
dl_limit = ""; |
|
|
|
var transfer_info = ""; |
|
|
|
if (info.dl_rate_limit != undefined) |
|
|
|
if (info.dl_rate_limit != undefined) |
|
|
|
dl_limit = "[%1] ".replace("%1", friendlyUnit(info.dl_rate_limit, true)); |
|
|
|
transfer_info += "[" + friendlyUnit(info.dl_rate_limit, true) + "] "; |
|
|
|
$("DlInfos").set('html', "%3_(D: %1 - T: %2)" |
|
|
|
transfer_info += friendlyUnit(info.dl_info_speed, true); |
|
|
|
.replace("%1", friendlyUnit(info.dl_info_speed, true)) |
|
|
|
transfer_info += " (" + friendlyUnit(info.dl_info_data, false) + ")" |
|
|
|
.replace("%2", friendlyUnit(info.dl_info_data, false)) |
|
|
|
$("DlInfos").set('html', transfer_info); |
|
|
|
.replace("%3", dl_limit)); |
|
|
|
transfer_info = ""; |
|
|
|
up_limit = ""; |
|
|
|
|
|
|
|
if (info.up_rate_limit != undefined) |
|
|
|
if (info.up_rate_limit != undefined) |
|
|
|
up_limit = "[%1] ".replace("%1", friendlyUnit(info.up_rate_limit, true)); |
|
|
|
transfer_info += "[" + friendlyUnit(info.up_rate_limit, true) + "] "; |
|
|
|
$("UpInfos").set('html', "%3_(U: %1 - T: %2)" |
|
|
|
transfer_info += friendlyUnit(info.up_info_speed, true) |
|
|
|
.replace("%1", friendlyUnit(info.up_info_speed, true)) |
|
|
|
transfer_info += " (" + friendlyUnit(info.up_info_data, false) + ")" |
|
|
|
.replace("%2", friendlyUnit(info.up_info_data, false)) |
|
|
|
$("UpInfos").set('html', transfer_info); |
|
|
|
.replace("%3", up_limit)); |
|
|
|
|
|
|
|
if (speedInTitle) |
|
|
|
if (speedInTitle) |
|
|
|
document.title = "_(D:%1 U:%2)".replace("%1", friendlyUnit(info.dl_info_speed, true)).replace("%2", friendlyUnit(info.up_info_speed, true)); |
|
|
|
document.title = "_(D:%1 U:%2)".replace("%1", friendlyUnit(info.dl_info_speed, true)).replace("%2", friendlyUnit(info.up_info_speed, true)); |
|
|
|
else |
|
|
|
else |
|
|
|