From ea5fa03d375111332e5a8a67b8836ef4c57c560f Mon Sep 17 00:00:00 2001 From: Cryptkeeper Date: Sun, 6 Mar 2016 01:27:47 -0600 Subject: [PATCH] A few quick frontend tweaks --- assets/css/main.css | 12 ++++++++---- assets/js/site.js | 7 +++++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index cad11a5..b736019 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -146,7 +146,11 @@ a { .server > .column > .rank { width: 64px; - padding-top: 3px; + padding-top: 4px; +} + +.server > .column > .url { + font-size: 16px; } .server > .column > h3 > .type { @@ -158,14 +162,14 @@ a { } .server > .column > .versions { - min-height: 22px; - padding-bottom: 3px; + min-height: 23px; + padding-bottom: 1px; } .server > .column > .versions > .version { padding: 1px 5px; border-radius: 2px; - border: 1px solid #A09E9E; + border: 1px solid #636363; font-size: 12px; } diff --git a/assets/js/site.js b/assets/js/site.js index 64e41d5..8378178 100644 --- a/assets/js/site.js +++ b/assets/js/site.js @@ -21,14 +21,17 @@ var sortServersTask; function updateServerStatus(lastEntry) { var info = lastEntry.info; + var div = $('#status_' + safeName(info.name)); var versionDiv = $('#version_' + safeName(info.name)); if (lastEntry.versions) { var versions = ''; + for (var i = 0; i < lastEntry.versions.length; i++) { versions += '' + mcVersions[lastEntry.info.type][lastEntry.versions[i]] + ' '; } + versionDiv.html(versions); } else { versionDiv.html(''); @@ -347,8 +350,8 @@ $(document).ready(function() { \
\

' + info.name + ' ' + info.type + '

\ - ' + info.ip + '\ -
\ + ' + info.ip + '\ +
\ Waiting\
\
\