Files
PhotonVision/Site/JS/main.js
ori agranat f6dc1e8094 fixed an error in websockets and uploded vue
fixed an error in websockets and uploded vue
2019-03-08 15:55:53 +02:00

17 lines
418 B
JavaScript

var ws = new WebSocket("ws://localhost:8888/websocket");
// ws.onopen = function () {
// ws.send("hello");
// }
// ws.onmessage = function (ev) {
// alert(ev.data);
// }
// function changeTab(index) {
// arr = document.getElementsByClassName("tab");
// for (let element of arr) {
// element.style.display = "none";
// }
// document.getElementById(index).style.display = "block";
// }