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"); } -
+