modifié: video.html

This commit is contained in:
sidya82 2014-03-01 18:15:41 +01:00
parent 1ee6729884
commit 590eab3ca6
1 changed files with 3 additions and 14 deletions

View File

@ -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");
}
</script>
</head>
<body onload="javascript:setTimeout('refresh();',5000)">
<body onload="javascript:setIntercal('refresh();',3000)">
<h2>Vue camera</h2>
<div class="image"></div>
<form action="/disconnection" method="post">