43 lines
1.1 KiB
HTML
43 lines
1.1 KiB
HTML
<%frame "frame.html"%>
|
|
|
|
<h1>Check Stati</h1>
|
|
<br/>
|
|
|
|
<div class="flex column">
|
|
<div>
|
|
<div style="width: 100%;">
|
|
<table id="CheckStates"></table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var pbar = $().dataTable.render.percentBar('round','#fff', '#FF9CAB', '#FF0033', '#FF9CAB', 0, 'solid');
|
|
var dtDef = {
|
|
columns: [
|
|
{ title: "CheckName", data: "CheckName" },
|
|
{ title: "UniqueNodeIdentifier", data: "UniqueNodeIdentifier" },
|
|
{ title: "LastCheckTime", data: "LastCheckTime" },
|
|
{ title: "CheckState", data: "CheckState" },
|
|
],
|
|
};
|
|
|
|
$("#CheckStates").DataTable( dtDef );
|
|
|
|
function refresh()
|
|
{
|
|
skyapi().getJson("checker/CheckStates", function(data){
|
|
if (!data)
|
|
data = []
|
|
|
|
$("#CheckStates").DataTable().clear();
|
|
$("#CheckStates").DataTable().rows.add( data ).draw();
|
|
});
|
|
}
|
|
|
|
refresh();
|
|
skyapi().addRefresh( refresh, 15 );
|
|
|
|
</script>
|