From 05d680f49ab2aa64fd309855fdb4316e8a34f5c4 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 15 Apr 2014 03:21:37 +0200 Subject: Better rotation on the HTML5 ping graph. --- web/nms.gathering.org/ping.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web/nms.gathering.org/ping.js') diff --git a/web/nms.gathering.org/ping.js b/web/nms.gathering.org/ping.js index d19671e..4189573 100644 --- a/web/nms.gathering.org/ping.js +++ b/web/nms.gathering.org/ping.js @@ -89,6 +89,9 @@ function create_switch(switchnum, sysname, x, y, zorder, width, height) { var span = document.createElement("div"); span.className = "switchname"; + if (width < 1.5 * height) { + span.className = "switchname rot"; + } span.style.border = "0"; span.style.padding = "0"; s.appendChild(span); -- cgit v1.2.3