From 08838020a18cc5ef4e6d7b1d3241fe6afd0dafc8 Mon Sep 17 00:00:00 2001 From: fkloft Date: Fri, 12 Jul 2013 17:13:34 +0200 Subject: [PATCH] show portal load level by color --- code/request_handling.js | 4 ++-- style.css | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/code/request_handling.js b/code/request_handling.js index 3919bcdb..16ec02e2 100644 --- a/code/request_handling.js +++ b/code/request_handling.js @@ -48,9 +48,9 @@ window.renderUpdateStatus = function() { var t = 'portals: '; var minlvl = getMinPortalLevel(); if(minlvl === 0) - t += 'all'; + t+= 'all'; else - t+= 'L'+minlvl+(minlvl<8?'+':''); + t+= 'L'+minlvl+(minlvl<8?'+':'') + ''; t +=''; t += ' map: '; diff --git a/style.css b/style.css index 43a4d398..1d48f101 100644 --- a/style.css +++ b/style.css @@ -717,6 +717,17 @@ h3 { box-sizing: border-box; } +#updatestatus .loadlevel { + background: #FFF; + color: #000000; + display: inline-block; + min-width: 1.5em; + border: 1px solid #20A8B1; + border-width: 0 1px; + margin: -4px 0; + padding: 4px 0.2em; +} + #updatestatus .map { margin-left: 8px; }