aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/ping.js
diff options
context:
space:
mode:
authorroot <root@frank.tg14.gathering.org>2014-04-15 03:21:37 +0200
committerroot <root@frank.tg14.gathering.org>2014-04-15 03:21:37 +0200
commit05d680f49ab2aa64fd309855fdb4316e8a34f5c4 (patch)
tree7832ca6c11791f79d43dadec81040bd3e78b4821 /web/nms.gathering.org/ping.js
parent571101aadda3ff60506d30410632749a340e9068 (diff)
Better rotation on the HTML5 ping graph.
Diffstat (limited to 'web/nms.gathering.org/ping.js')
-rw-r--r--web/nms.gathering.org/ping.js3
1 files changed, 3 insertions, 0 deletions
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);