|
|
|
@ -295,6 +295,8 @@ function show() {
|
|
|
|
|
elem.display('swap', stats.swap != '');
|
|
|
|
|
c('nvram_stat', scaleSize(nvstat.size - nvstat.free)+' / '+scaleSize(nvstat.size)+' <small>('+((nvstat.size - nvstat.free) / nvstat.size * 100.0).toFixed(2)+'%)<\/small><div class="progress-wrapper"><div class="progress-container"><div class="progress-bar" style="background-color:'+setColor(((nvstat.size - nvstat.free) / nvstat.size * 100.0).toFixed(2))+';width:'+((nvstat.size - nvstat.free) / nvstat.size * 100.0).toFixed(2)+'%"><\/div><\/div><\/div>');
|
|
|
|
|
/* IPV6-BEGIN */
|
|
|
|
|
c('ip6_duid', stats.ip6_duid);
|
|
|
|
|
elem.display('ip6_duid', stats.ip6_duid != '');
|
|
|
|
|
c('ip6_wan', stats.ip6_wan);
|
|
|
|
|
elem.display('ip6_wan', stats.ip6_wan != '');
|
|
|
|
|
c('ip6_wan_dns1', stats.ip6_wan_dns1);
|
|
|
|
@ -532,6 +534,7 @@ function init() {
|
|
|
|
|
{ title: 'Subnet Mask', rid: 'wan'+u+'netmask', text: stats.wannetmask[uidx - 1] },
|
|
|
|
|
{ title: 'Gateway', rid: 'wan'+u+'gateway', text: stats.wangateway[uidx - 1] },
|
|
|
|
|
/* IPV6-BEGIN */
|
|
|
|
|
{ title: 'IPv6 DUID', rid: 'ip6_duid', text: stats.ip6_duid, hidden: (stats.ip6_duid == '') },
|
|
|
|
|
{ title: 'IPv6 Address', rid: 'ip6_wan', text: stats.ip6_wan, hidden: (stats.ip6_wan == '') },
|
|
|
|
|
{ title: 'IPv6 DNS1', rid: 'ip6_wan_dns1', text: stats.ip6_wan_dns1, hidden: (stats.ip6_wan_dns1 == '') },
|
|
|
|
|
{ title: 'IPv6 DNS2', rid: 'ip6_wan_dns2', text: stats.ip6_wan_dns2, hidden: (stats.ip6_wan_dns2 == '') },
|
|
|
|
|