1
var cameraState = {
"bean1": "0", "bean2": "0"
, "scraper": "0", "man": "0", "hat": "0"
, "belt": "0", "transfer": "0", "iron": "0"
};
function checkCameraState() {
if (cameraState.bean1 == "0" && cameraState.bean2 == "0"
&& cameraState.scraper == "0" && cameraState.man == "0" && cameraState.hat == "0"
&& cameraState.belt == "0" && cameraState.transfer == "0" && cameraState.iron == "0") {
$("#cameraState").html("摄像头连接状态:断开").fadeIn();
} else {
$("#cameraState").html("摄像头连接状态:正常").fadeIn();
}
}