mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-21 01:01:41 +00:00
17 lines
418 B
JavaScript
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";
|
|
// }
|