This commit is contained in:
Anna Sudnitsina 2018-03-26 23:06:08 +03:00
parent 79f0671e1d
commit 2e1d5835cc

View File

@ -1,4 +1,15 @@
$(function() {
var url = "ws://" + location.host + "/socket";
var ws = new WebSocket(url);
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');
$('#mountFormTrigger').click(function(event){
var htmlSelect = '';
a.quorum.forEach(function(item) {
@ -16,15 +27,7 @@ $(function() {
}
})
*/
var url = "ws://" + location.host + "/socket";
var ws = new WebSocket(url);
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');
})