From 590eab3ca6eddbdfd52640308013713b08cb33c8 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Sat, 1 Mar 2014 18:15:41 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20vide?= =?UTF-8?q?o.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- video.html | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/video.html b/video.html index 8edf43d..4566c93 100644 --- a/video.html +++ b/video.html @@ -25,26 +25,15 @@ return d||(f=$b[b],$b[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$b[b]=f),e}});v window.onbeforeunload=function(){ ws.close(); }; - - var time = new Date().getTime(); - $(document.body).bind("mousemove keypress"), function(e){ - time = new Date().getTime(); - } - function refresh() { - - if(new Date().getTime() - time >= 60000){ - console.log("data"); - ws.send("lol"); - } - else - setTimeout('refresh()', 5000); + console.log("Data send); + ws.send("lol"); } - +

Vue camera