This commit is contained in:
Anna Sudnitsina 2018-03-26 22:52:10 +03:00
parent 9e3d178e28
commit 76e2365013
2 changed files with 5 additions and 3 deletions

View File

@ -17,7 +17,7 @@ $(function() {
})
*/
})
// var ws = new WebSocket('{{escape(ws)}}');
// var cluster, selected_node, deadNode, node2;
@ -208,6 +208,7 @@ function openNode(evt, nodeName) {
// // displayData(a);
// } else {
$('#showDeadlyDetails').text('Show details');
$('#details').css("border", "").css("display", "block"); displayData(a);
$('#details').css("border", "").css("display", "block");
displayData(a);
// }
}

View File

@ -85,13 +85,14 @@
</body>
<script>
var ws = new WebSocket('{{escape(ws)}}');
console.log(ws);
var a, selected_node, deadNode, node2;
ws.onopen = function() {ws.send(""); };
ws.onmessage = function (evt) {
a = JSON.parse(evt.data);
displayData(a);
};
$('.tablink').css('display', 'block')
$('.tablink').css('display', 'block');
//
// $('#mountForm').submit(function(event){
// event.preventDefault();