yWeb: add CEC option to standby switches

Origin commit data
------------------
Commit: 19593d5c6a
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-02-10 (Mon, 10 Feb 2014)

Origin message was:
------------------
- yWeb: add CEC option to standby switches
This commit is contained in:
vanhofen
2014-02-10 21:02:10 +01:00
parent b166b760f0
commit 281a9fc779

View File

@@ -15,6 +15,10 @@ function goUrl(_url){
} }
$("out").update(res); $("out").update(res);
} }
function standby(_standby){
var _cec = (document.getElementById('checkCEC').checked == true) ? "on" : "off";
goUrl("/control/standby?"+_standby+"&cec="+_cec);
}
//]]> //]]>
</script> </script>
</head> </head>
@@ -32,9 +36,10 @@ function goUrl(_url){
<input type="button" value="{=L:bc.control.shutdown=}" onclick='goConfirmUrl("{=L:bc.control.shutdown.ask=}","/control/shutdown");'/> <input type="button" value="{=L:bc.control.shutdown=}" onclick='goConfirmUrl("{=L:bc.control.shutdown.ask=}","/control/shutdown");'/>
</td> </td>
<td> <td>
<input type="button" value="{=L:on=}" onclick='goUrl("/control/standby?on");'/> <input type="button" value="{=L:on=}" onclick='standby("on");'/>
<input type="button" value="{=L:off=}" onclick='goUrl("/control/standby?off");'/> <input type="button" value="{=L:off=}" onclick='standby("off");'/>
<input type="button" value="{=L:bc.control.status=}" onclick='goUrl("/control/standby");'/> <input type="button" value="{=L:bc.control.status=}" onclick='goUrl("/control/standby");'/>
CEC: <input id="checkCEC" name="checkCEC" type="checkbox" checked="checked"/>
</td> </td>
</tr> </tr>
<tr><td class="y_form_header">{=L:bc.control.playback=}</td><td class="y_form_header">{=L:bc.control.recording_mode=}</td></tr> <tr><td class="y_form_header">{=L:bc.control.playback=}</td><td class="y_form_header">{=L:bc.control.recording_mode=}</td></tr>