diff options
author | root <root@frank.tg14.gathering.org> | 2014-04-18 00:43:15 +0200 |
---|---|---|
committer | root <root@frank.tg14.gathering.org> | 2014-04-18 00:43:15 +0200 |
commit | 54bd5cf16524fca37556a99a63ff6128e6583e26 (patch) | |
tree | a300585ec7458cf30ba42cceb259389b26251e4e | |
parent | d8d6bc3429eef98d8921948bdeaf1a8088dc44b0 (diff) |
Use CSS3 linear gradients.
-rw-r--r-- | web/nms.gathering.org/ping.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/nms.gathering.org/ping.js b/web/nms.gathering.org/ping.js index c3d2c63..3b99257 100644 --- a/web/nms.gathering.org/ping.js +++ b/web/nms.gathering.org/ping.js @@ -116,9 +116,9 @@ function gradient_from_latency(latency_ms, latency_secondary_ms) { if (latency_secondary_ms === undefined) { return rgb_from_latency(latency_ms); } - return '-webkit-gradient(linear, left top, left bottom, ' + - 'from(' + rgb_from_latency(latency_ms) + '), ' + - 'to(' + rgb_from_latency(latency_secondary_ms) + '))'; + return 'linear-gradient(to bottom right, ' + + rgb_from_latency(latency_ms) + ', ' + + rgb_from_latency(latency_secondary_ms) + ')'; } function rgb_from_latency(latency_ms) { |