OSDN Git Service

rm vem
[vem/vem.git] / test / view / mock / img.js
index d9c2a4e..80a02d8 100644 (file)
@@ -3,7 +3,7 @@ var i = 0;
 
 
 function startAcq(){
 $("button").text("stop");
+ $("button").text("stop");
   ws = new WebSocket("ws://localhost:3000");
 
   // メッセージ受信時の処理
@@ -13,7 +13,7 @@ function startAcq(){
     }else{
       ws.send("acq");
       draw(JSON.parse(event.data));
-      console.log(i);
+     console.log(i);
       i = i + 1;
     }
   };
@@ -21,7 +21,7 @@ function startAcq(){
 }
 
 function stopAcq(){
 $("button").text("start");
+ $("button").text("start");
   console.log("stop");
   ws.close(1000, "close");
 }
@@ -59,4 +59,3 @@ function draw(data){
   ctx.putImageData(imgData, 0, 0);
 }
 
-