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() { "
加载中
" + "
加载中
" + "
加载中
" + + "加载中" + "
加载中
" + "" + "
" + @@ -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 = "关闭"; + 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 = "关闭"; @@ -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 = "错误"; + TableRow.children["io"].children[0].children[0].className = "progress-bar progress-bar-error"; + TableRow.children["io"].children[0].children[0].innerHTML = "错误"; 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 = "错误";