summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-07-07 14:59:58 +0200
committerJo-Philipp Wich <jo@mein.io>2018-07-09 11:51:43 +0200
commitecedfe5dcc32c73a4e55337162e3e2fbba46fe98 (patch)
tree32a798f652ad7eccaec2efb6454f9dc2b621be73 /modules
parentbce7543d8fcab16636e761049775d43b6676e92c (diff)
luci-mod-admin-full: style and script fixes for realtime bandwidth graph
- add Math.log2() polyfill for IE 11 - use sans-serif font for time axis Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-mod-admin-full/luasrc/view/admin_status/bandwidth.htm4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_status/bandwidth.htm b/modules/luci-mod-admin-full/luasrc/view/admin_status/bandwidth.htm
index ba0ab0f680..50e51bad00 100644
--- a/modules/luci-mod-admin-full/luasrc/view/admin_status/bandwidth.htm
+++ b/modules/luci-mod-admin-full/luasrc/view/admin_status/bandwidth.htm
@@ -59,6 +59,8 @@
var label_scale;
+ Math.log2 = Math.log2 || function(x) { return Math.log(x) * Math.LOG2E; };
+
function bandwidth_label(bytes, br)
{
var uby = '<%:kB/s%>';
@@ -149,7 +151,7 @@
var text = G.createElementNS('http://www.w3.org/2000/svg', 'text');
text.setAttribute('x', i + 5);
text.setAttribute('y', 15);
- text.setAttribute('style', 'fill:#999999; font-size:9pt');
+ text.setAttribute('style', 'fill:#999999; font-size:9pt; font-family:sans-serif');
text.appendChild(G.createTextNode(Math.round((width - i) / step / 60) + 'm'));
label_25.parentNode.appendChild(line);