Authored by skinny.wu

dns monitor 在页面中添加数据更新时间

... ... @@ -70,7 +70,7 @@
<div class="widget-box" style="background: white">
<div class="widget-title" style="background: white">
<h5>DNS Monitor状态 (最近5分钟)</h5>
<h5>DNS Monitor状态 (<span id="updateTime"></span> 前更新)</h5>
</div>
</div>
... ...
... ... @@ -10,6 +10,7 @@ function queryCurrentInfo() {
dataType: "json",
success : function(data) {
updateDNSView(eval(data));
updateTimePanel();
$(function () {
$("[data-toggle='popover']").popover();
});
... ... @@ -39,6 +40,7 @@ function buildIpsTablesHTML(ips) {
for(var uid in ips ) {
//uid为1的用户 解析到qcloud的域名, uid为1000的用户,解析到aws的域名
if(uid == 1) {
html += "<tr><td width='10%'><span style='color: darkgray'><strong>QCloud</strong></span></td>";
}else {
... ... @@ -65,6 +67,8 @@ function buildIpsTablesHTML(ips) {
html +="</div></td>";
}
//TODO 超链接到function
//html += "<td><a href='javasrcipt'><span style='font-size: large'>history</span></a></td></tr>";
html += "</tr>";
}
... ... @@ -101,4 +105,12 @@ function getClass(tagName,className)
}
return tagArr;
}
}
function updateTimePanel() {
var date = new Date();
var min = date.getMinutes();
var hour = date.getHours();
document.getElementById("updateTime").innerHTML = hour + ":" + min;
}
\ No newline at end of file
... ...