diff --git a/web/css/dark.css b/web/css/dark.css index ca4b0a0..2211a84 100644 --- a/web/css/dark.css +++ b/web/css/dark.css @@ -26,7 +26,7 @@ tr.odd.expandRow > :hover { background: #212e36 !important; } #type, tr td:nth-child(4) { display:none; visibility:hidden; } #location, tr td:nth-child(5) { display:none; visibility:hidden; } #uptime, tr td:nth-child(6) { display:none; visibility:hidden; } - #ping, tr td:nth-child(13) { display:none; visibility:hidden; } + #ping, tr td:nth-child(14) { display:none; visibility:hidden; } } @media only screen and (max-width: 720px) { body { font-size: 10px; } @@ -34,7 +34,7 @@ tr.odd.expandRow > :hover { background: #212e36 !important; } #type, tr td:nth-child(4) { display:none; visibility:hidden; } #location, tr td:nth-child(5) { display:none; visibility:hidden; } #uptime, tr td:nth-child(6) { display:none; visibility:hidden; } - #ping, tr td:nth-child(13) { display:none; visibility:hidden; } + #ping, tr td:nth-child(14) { display:none; visibility:hidden; } } @media only screen and (max-width: 620px) { body { font-size: 10px; } @@ -44,7 +44,7 @@ tr.odd.expandRow > :hover { background: #212e36 !important; } #location, tr td:nth-child(5) { display:none; visibility:hidden; } #uptime, tr td:nth-child(6) { display:none; visibility:hidden; } #traffic, tr td:nth-child(9) { display:none; visibility:hidden; } - #ping, tr td:nth-child(13) { display:none; visibility:hidden; } + #ping, tr td:nth-child(14) { display:none; visibility:hidden; } } @media only screen and (max-width: 533px) { body { font-size: 10px; } @@ -54,7 +54,7 @@ tr.odd.expandRow > :hover { background: #212e36 !important; } #location, tr td:nth-child(5) { display:none; visibility:hidden; } #uptime, tr td:nth-child(6) { display:none; visibility:hidden; } #traffic, tr td:nth-child(9) { display:none; visibility:hidden; } - #ping, tr td:nth-child(13) { display:none; visibility:hidden; } + #ping, tr td:nth-child(14) { display:none; visibility:hidden; } } @media only screen and (max-width: 450px) { body { font-size: 10px; } @@ -66,5 +66,5 @@ tr.odd.expandRow > :hover { background: #212e36 !important; } #uptime, tr td:nth-child(6) { display:none; visibility:hidden; } #traffic, tr td:nth-child(9) { display:none; visibility:hidden; } #cpu, #ram, #hdd { min-width: 25px; max-width: 50px; } - #ping, tr td:nth-child(13) { display:none; visibility:hidden; } + #ping, tr td:nth-child(14) { display:none; visibility:hidden; } } diff --git a/web/css/light.css b/web/css/light.css index cde5cb6..3d6e11d 100644 --- a/web/css/light.css +++ b/web/css/light.css @@ -23,7 +23,7 @@ tr.odd.expandRow > :hover { background: #FFF !important; } #type, tr td:nth-child(4) { display:none; visibility:hidden; } #location, tr td:nth-child(5) { display:none; visibility:hidden; } #uptime, tr td:nth-child(6) { display:none; visibility:hidden; } - #ping, tr td:nth-child(13) { display:none; visibility:hidden; } + #ping, tr td:nth-child(14) { display:none; visibility:hidden; } } @media only screen and (max-width: 720px) { body { font-size: 10px; } @@ -31,7 +31,7 @@ tr.odd.expandRow > :hover { background: #FFF !important; } #type, tr td:nth-child(4) { display:none; visibility:hidden; } #location, tr td:nth-child(5) { display:none; visibility:hidden; } #uptime, tr td:nth-child(6) { display:none; visibility:hidden; } - #ping, tr td:nth-child(13) { display:none; visibility:hidden; } + #ping, tr td:nth-child(14) { display:none; visibility:hidden; } } @media only screen and (max-width: 620px) { body { font-size: 10px; } @@ -41,7 +41,7 @@ tr.odd.expandRow > :hover { background: #FFF !important; } #location, tr td:nth-child(5) { display:none; visibility:hidden; } #uptime, tr td:nth-child(6) { display:none; visibility:hidden; } #traffic, tr td:nth-child(9) { display:none; visibility:hidden; } - #ping, tr td:nth-child(13) { display:none; visibility:hidden; } + #ping, tr td:nth-child(14) { display:none; visibility:hidden; } } @media only screen and (max-width: 533px) { body { font-size: 10px; } @@ -51,7 +51,7 @@ tr.odd.expandRow > :hover { background: #FFF !important; } #location, tr td:nth-child(5) { display:none; visibility:hidden; } #uptime, tr td:nth-child(6) { display:none; visibility:hidden; } #traffic, tr td:nth-child(9) { display:none; visibility:hidden; } - #ping, tr td:nth-child(13) { display:none; visibility:hidden; } + #ping, tr td:nth-child(14) { display:none; visibility:hidden; } } @media only screen and (max-width: 450px) { body { font-size: 10px; } @@ -63,5 +63,5 @@ tr.odd.expandRow > :hover { background: #FFF !important; } #uptime, tr td:nth-child(6) { display:none; visibility:hidden; } #traffic, tr td:nth-child(9) { display:none; visibility:hidden; } #cpu, #ram, #hdd { min-width: 25px; max-width: 50px; } - #ping, tr td:nth-child(13) { display:none; visibility:hidden; } + #ping, tr td:nth-child(14) { display:none; visibility:hidden; } } diff --git a/web/js/serverstatus.js b/web/js/serverstatus.js index c5a4782..21b1734 100644 --- a/web/js/serverstatus.js +++ b/web/js/serverstatus.js @@ -74,6 +74,7 @@ function uptime() { "<td id=\"cpu\"><div class=\"progress\"><div style=\"width: 100%;\" class=\"progress-bar progress-bar-warning\"><small>加载中</small></div></div></td>" + "<td id=\"memory\"><div class=\"progress\"><div style=\"width: 100%;\" class=\"progress-bar progress-bar-warning\"><small>加载中</small></div></div></td>" + "<td id=\"hdd\"><div class=\"progress\"><div style=\"width: 100%;\" class=\"progress-bar progress-bar-warning\"><small>加载中</small></div></div></td>" + + "<td id=\"io\">加载中</td>" + "<td id=\"ping\"><div class=\"progress\"><div style=\"width: 100%;\" class=\"progress-bar progress-bar-warning\"><small>加载中</small></div></div></td>" + "</tr>" + "<tr class=\"expandRow " + hack + "\"><td colspan=\"16\"><div class=\"accordian-body collapse\" id=\"rt" + i + "\">" + @@ -135,6 +136,7 @@ function uptime() { TableRow.children["hdd"].children[0].children[0].className = "progress-bar progress-bar-danger"; TableRow.children["hdd"].children[0].children[0].style.width = "100%"; TableRow.children["hdd"].children[0].children[0].innerHTML = "<small>关闭</small>"; + TableRow.children["io"].innerHTML = "–"; TableRow.children["ping"].children[0].children[0].className = "progress-bar progress-bar-danger"; TableRow.children["ping"].children[0].children[0].style.width = "100%"; TableRow.children["ping"].children[0].children[0].innerHTML = "<small>关闭</small>"; @@ -294,6 +296,8 @@ function uptime() { TableRow.children["hdd"].children[0].children[0].className = "progress-bar progress-bar-error"; TableRow.children["hdd"].children[0].children[0].style.width = "100%"; TableRow.children["hdd"].children[0].children[0].innerHTML = "<small>错误</small>"; + TableRow.children["io"].children[0].children[0].className = "progress-bar progress-bar-error"; + TableRow.children["io"].children[0].children[0].innerHTML = "<small>错误</small>"; TableRow.children["ping"].children[0].children[0].className = "progress-bar progress-bar-error"; TableRow.children["ping"].children[0].children[0].style.width = "100%"; TableRow.children["ping"].children[0].children[0].innerHTML = "<small>错误</small>";