This commit is contained in:
Sagi Frimer
2019-03-06 22:23:02 +02:00
parent 34a8def31f
commit 7edcbc3e01
1594 changed files with 120739 additions and 9 deletions

View File

@@ -1,7 +1,17 @@
let ws = new WebSocket("ws://localhost:8888/websocket");
ws.onopen = function () {
ws.send("hello");
}
ws.onmessage = function (ev) {
alert(ev.data);
}
// 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";
// }