diff options
author | root <root@frank.tg14.gathering.org> | 2014-04-15 03:21:37 +0200 |
---|---|---|
committer | root <root@frank.tg14.gathering.org> | 2014-04-15 03:21:37 +0200 |
commit | 05d680f49ab2aa64fd309855fdb4316e8a34f5c4 (patch) | |
tree | 7832ca6c11791f79d43dadec81040bd3e78b4821 /web/nms.gathering.org/ping.js | |
parent | 571101aadda3ff60506d30410632749a340e9068 (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.js | 3 |
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); |