upd
This commit is contained in:
parent
c685cd72fc
commit
1ebbf30f8e
@ -16,6 +16,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');
|
||||
})
|
||||
|
||||
|
||||
|
@ -84,16 +84,16 @@
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
var url = "ws://" + location.host + "/socket";
|
||||
var ws = new WebSocket(url);
|
||||
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');
|
||||
// var url = "ws://" + location.host + "/socket";
|
||||
// var ws = new WebSocket(url);
|
||||
// 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');
|
||||
//
|
||||
// $('#mountForm').submit(function(event){
|
||||
// event.preventDefault();
|
||||
|
Loading…
Reference in New Issue
Block a user