From 82ccb8995c0e424bfa41acd8cf1549c5395bc3ad Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Fri, 1 Jul 2016 19:14:54 +0200 Subject: =?UTF-8?q?Tooltips=20p=C3=A5=20oplog=20og=20flere=20tweaks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tooltips vil være litt browseravhengig. Fikser også noen nightmode issues her og der. --- web/css/nms.css | 1 + web/index.html | 2 +- web/js/nms-oplog.js | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web/css/nms.css b/web/css/nms.css index 50ec36b..4a84f54 100644 --- a/web/css/nms.css +++ b/web/css/nms.css @@ -52,6 +52,7 @@ h1.map-mode-title { transform: rotate(-90deg); } .nightmode { color: #ddd; } +.score { color: black; } .nightmode h1.map-mode-title { text-shadow: -4px -4px 5px black,-4px 0px 5px black,0px -4px 5px black,0px 0px 5px black,4px 4px 5px black,4px 0px 5px black,0px 4px 5px black; } diff --git a/web/index.html b/web/index.html index bcc1d76..ee9d8f6 100644 --- a/web/index.html +++ b/web/index.html @@ -133,7 +133,7 @@
-
+
diff --git a/web/js/nms-oplog.js b/web/js/nms-oplog.js index b1f979f..c418e33 100644 --- a/web/js/nms-oplog.js +++ b/web/js/nms-oplog.js @@ -104,10 +104,11 @@ nmsOplog._updateComments = function(limit,prefix,timefield,cutoff) { td1.classList.add("left"); var data = nmsData['oplog']['oplog'][v]['log']; if (cutoff && data.length > cutoff) { + td2.title = data; data = data.slice(0,cutoff); data = data + "(...)"; } - td2.textContent = "[" + nmsData['oplog']['oplog'][v]['username'] + "] " + data; + td2.textContent = nmsData['oplog']['oplog'][v]['systems'] + " [" + nmsData['oplog']['oplog'][v]['username'] + "] " + data; td2.hiddenthing = v; td2.onclick = function(e){ var x = document.getElementById("searchbox"); var v = e.path[0].hiddenthing; x.value = nmsData['oplog']['oplog'][v]['systems']; x.oninput(); } if (++i == limit) -- cgit v1.2.3