modifié: video.html

This commit is contained in:
sidya82 2014-03-01 18:15:41 +01:00
parent 1ee6729884
commit 590eab3ca6

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(){ window.onbeforeunload=function(){
ws.close(); ws.close();
}; };
var time = new Date().getTime();
$(document.body).bind("mousemove keypress"), function(e){
time = new Date().getTime();
}
function refresh() { function refresh() {
console.log("Data send);
if(new Date().getTime() - time >= 60000){ ws.send("lol");
console.log("data");
ws.send("lol");
}
else
setTimeout('refresh()', 5000);
} }
</script> </script>
</head> </head>
<body onload="javascript:setTimeout('refresh();',5000)"> <body onload="javascript:setIntercal('refresh();',3000)">
<h2>Vue camera</h2> <h2>Vue camera</h2>
<div class="image"></div> <div class="image"></div>
<form action="/disconnection" method="post"> <form action="/disconnection" method="post">