From 281a9fc779cb1b2fa9bdeb83fc7da8669f2d6baf Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 10 Feb 2014 21:02:10 +0100 Subject: [PATCH] yWeb: add CEC option to standby switches Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/19593d5c6a96b66fefb4c2b01d97538acdfdf8d7 Author: vanhofen Date: 2014-02-10 (Mon, 10 Feb 2014) Origin message was: ------------------ - yWeb: add CEC option to standby switches --- src/nhttpd/web/Y_Tools_Boxcontrol.yhtm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/nhttpd/web/Y_Tools_Boxcontrol.yhtm b/src/nhttpd/web/Y_Tools_Boxcontrol.yhtm index 1e98c9d64..ade978061 100644 --- a/src/nhttpd/web/Y_Tools_Boxcontrol.yhtm +++ b/src/nhttpd/web/Y_Tools_Boxcontrol.yhtm @@ -15,6 +15,10 @@ function goUrl(_url){ } $("out").update(res); } +function standby(_standby){ + var _cec = (document.getElementById('checkCEC').checked == true) ? "on" : "off"; + goUrl("/control/standby?"+_standby+"&cec="+_cec); +} //]]> @@ -32,9 +36,10 @@ function goUrl(_url){ - - + + + CEC: {=L:bc.control.playback=}{=L:bc.control.recording_mode=}