Кнопка
(custom)
<style>
.reating-arkows {
position: relative;
}
.reating-arkows *, .reating-arkows *:before, .reating-arkows *:after {
-moz-box-sizing: border-box;
box-sizing: border-box;
cursor:pointer;
}
.reating-arkows input[type="checkbox"] {
opacity: 0;
position: absolute;
top: 0;
left: 0;
}
.reating-arkows input[type="checkbox"][disabled] ~ label {
pointer-events: none;
}
.reating-arkows input[type="checkbox"][disabled] ~ label .trianglesusing {
opacity: 0.4;
}
.reating-arkows input[type="checkbox"]:checked ~ label .trianglesusing:before {
content: attr(data-unchecked);
left: 0;
}
.reating-arkows input[type="checkbox"]:checked ~ label .trianglesusing:after {
content: attr(data-checked);
}
.reating-arkows label {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
position: relative;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.reating-arkows label .moresharpened {
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
padding-left: 32px;
}
.reating-arkows label .trianglesusing {
position: relative;
}
.reating-arkows label .trianglesusing:before {
content: attr(data-checked);
position: absolute;
top: 0;
text-transform: uppercase;
text-align: center;
}
.reating-arkows label .trianglesusing:after {
content: attr(data-unchecked);
position: absolute;
z-index: 5;
text-transform: uppercase;
text-align: center;
background: white;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.reating-arkows input[type="checkbox"][disabled] ~ label {
color: rgba(119, 119, 119, 0.5);
}
.reating-arkows input[type="checkbox"]:focus ~ label .trianglesusing, .reating-arkows input[type="checkbox"]:hover ~ label .trianglesusing {
background-color: #696464;
}
.reating-arkows input[type="checkbox"]:focus ~ label .trianglesusing:after, .reating-arkows input[type="checkbox"]:hover ~ label .trianglesusing:after {
color: #484242;
}
.reating-arkows input[type="checkbox"]:hover ~ label {
color: #615b5b;
}
.reating-arkows input[type="checkbox"]:checked ~ label:hover {
color: #38962d;
}
.reating-arkows input[type="checkbox"]:checked ~ label .trianglesusing {
background-color: #46963e;
}
.reating-arkows input[type="checkbox"]:checked ~ label .trianglesusing:after {
color: #388e2e;
}
.reating-arkows input[type="checkbox"]:checked:focus ~ label .trianglesusing, .reating-arkows input[type="checkbox"]:checked:hover ~ label .trianglesusing {
background-color: #45a53a;
}
.reating-arkows input[type="checkbox"]:checked:focus ~ label .trianglesusing:after, .reating-arkows input[type="checkbox"]:checked:hover ~ label .trianglesusing:after {
color: #39942f;
}
.reating-arkows label .moresharpened {
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.reating-arkows label .trianglesusing {
-webkit-transition: background-color 0.3s cubic-bezier(0, 1, 0.5, 1);
transition: background-color 0.3s cubic-bezier(0, 1, 0.5, 1);
background: #736d6d;
}
.reating-arkows label .trianglesusing:before {
color: rgba(255, 255, 255, 0.5);
}
.reating-arkows label .trianglesusing:after {
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 1, 0.5, 1);
transition: transform 0.3s cubic-bezier(0, 1, 0.5, 1);
color: #6b6565;
}
.reating-arkows input[type="checkbox"]:focus ~ label .trianglesusing:after, .reating-arkows input[type="checkbox"]:hover ~ label .trianglesusing:after {
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4);
}
.reating-arkows input[type="checkbox"]:checked ~ label .trianglesusing:after {
-webkit-transform: translate3d(65px, 0, 0);
transform: translate3d(65px, 0, 0);
}
.reating-arkows input[type="checkbox"]:checked:focus ~ label .trianglesusing:after, .reating-arkows input[type="checkbox"]:checked:hover ~ label .trianglesusing:after {
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4);
}
.reating-arkows label {
font-size: 14px;
}
.reating-arkows label .trianglesusing {
height: 36px;
-webkit-flex: 0 0 134px;
-ms-flex: 0 0 134px;
flex: 0 0 134px;
border-radius: 4px;
}
.reating-arkows label .trianglesusing:before {
left: 67px;
font-size: 12px;
line-height: 36px;
width: 67px;
padding: 0 12px;
}
.reating-arkows label .trianglesusing:after {
top: 2px;
left: 2px;
border-radius: 2px;
width: 65px;
line-height: 32px;
font-size: 12px;
}
.reating-arkows label .trianglesusing:hover:after {
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4);
}
.reating-arkows.twokadjacent input[type="checkbox"]:focus ~ label .trianglesusing:after, .reating-arkows.twokadjacent input[type="checkbox"]:hover ~ label .trianglesusing:after {
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}
.reating-arkows.twokadjacent input[type="checkbox"]:checked ~ label .trianglesusing:after {
-webkit-transform: translate3d(44px, 0, 0);
transform: translate3d(44px, 0, 0);
}
.reating-arkows.twokadjacent input[type="checkbox"]:checked:focus ~ label .trianglesusing:after, .reating-arkows.twokadjacent input[type="checkbox"]:checked:hover ~ label .trianglesusing:after {
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}
.reating-arkows.twokadjacent label {
font-size: 13px;
}
.reating-arkows.twokadjacent label .trianglesusing {
height: 28px;
-webkit-flex: 0 0 90px;
-ms-flex: 0 0 90px;
flex: 0 0 90px;
border-radius: 2px;
}
.reating-arkows.twokadjacent label .trianglesusing:before {
left: 45px;
font-size: 10px;
line-height: 28px;
width: 45px;
padding: 0 12px;
}
.reating-arkows.twokadjacent label .trianglesusing:after {
top: 1px;
left: 1px;
border-radius: 1px;
width: 44px;
line-height: 26px;
font-size: 10px;
}
.reating-arkows.twokadjacent label .trianglesusing:hover:after {
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}
.reating-arkows.transparentin input[type="checkbox"]:focus ~ label .trianglesusing:after, .reating-arkows.transparentin input[type="checkbox"]:hover ~ label .trianglesusing:after {
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
}
.reating-arkows.transparentin input[type="checkbox"]:checked ~ label .trianglesusing:after {
-webkit-transform: translate3d(78px, 0, 0);
transform: translate3d(78px, 0, 0);
}
.reating-arkows.transparentin input[type="checkbox"]:checked:focus ~ label .trianglesusing:after, .reating-arkows.transparentin input[type="checkbox"]:checked:hover ~ label .trianglesusing:after {
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
}
.reating-arkows.transparentin label {
font-size: 14px;
}
.reating-arkows.transparentin label .trianglesusing {
height: 50px;
-webkit-flex: 0 0 160px;
-ms-flex: 0 0 160px;
flex: 0 0 160px;
border-radius: 4px;
}
.reating-arkows.transparentin label .trianglesusing:before {
left: 80px;
font-size: 14px;
line-height: 50px;
width: 80px;
padding: 0 12px;
}
.reating-arkows.transparentin label .trianglesusing:after {
top: 2px;
left: 2px;
border-radius: 2px;
width: 78px;
line-height: 46px;
font-size: 14px;
}
.reating-arkows.transparentin label .trianglesusing:hover:after {
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
}
.reating-arkows.imagexplains input[type="checkbox"][disabled] ~ label {
color: rgba(181, 62, 116, 0.5);
}
.reating-arkows.imagexplains input[type="checkbox"]:focus ~ label .trianglesusing, .reating-arkows.imagexplains input[type="checkbox"]:hover ~ label .trianglesusing {
background-color: #b53e74;
}
.reating-arkows.imagexplains input[type="checkbox"]:focus ~ label .trianglesusing:after, .reating-arkows.imagexplains input[type="checkbox"]:hover ~ label .trianglesusing:after {
color: #82224d;
}
.reating-arkows.imagexplains input[type="checkbox"]:hover ~ label {
color: #8e2a58;
}
.reating-arkows.imagexplains input[type="checkbox"]:checked ~ label:hover {
color: #2d825c;
}
.reating-arkows.imagexplains input[type="checkbox"]:checked ~ label .trianglesusing {
background-color: #379a6e;
}
.reating-arkows.imagexplains input[type="checkbox"]:checked ~ label .trianglesusing:after {
color: #368a65;
}
.reating-arkows.imagexplains input[type="checkbox"]:checked:focus ~ label .trianglesusing, .reating-arkows.imagexplains input[type="checkbox"]:checked:hover ~ label .trianglesusing {
background-color: #3d9c72;
}
.reating-arkows.imagexplains input[type="checkbox"]:checked:focus ~ label .trianglesusing:after, .reating-arkows.imagexplains input[type="checkbox"]:checked:hover ~ label .trianglesusing:after {
color: #2f7757;
}
.reating-arkows.imagexplains label .moresharpened {
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.reating-arkows.imagexplains label .trianglesusing {
-webkit-transition: background-color 0.3s ease-in-out;
transition: background-color 0.3s ease-in-out;
background: #c14b81;
}
.reating-arkows.imagexplains label .trianglesusing:before {
color: rgba(255, 255, 255, 0.6);
}
.reating-arkows.imagexplains label .trianglesusing:after {
-webkit-transition: -webkit-transform 0.3s ease-in-out;
transition: transform 0.3s ease-in-out;
color: #b53e74;
}
.reating-arkows.zatujgdsanuk input[type="checkbox"][disabled] ~ label {
color: rgba(68, 68, 68, 0.5);
}
.reating-arkows.zatujgdsanuk input[type="checkbox"]:focus ~ label .trianglesusing, .reating-arkows.zatujgdsanuk input[type="checkbox"]:hover ~ label .trianglesusing {
background-color: #444;
}
.reating-arkows.zatujgdsanuk input[type="checkbox"]:focus ~ label .trianglesusing:after, .reating-arkows.zatujgdsanuk input[type="checkbox"]:hover ~ label .trianglesusing:after {
color: #2b2b2b;
}
.reating-arkows.zatujgdsanuk input[type="checkbox"]:hover ~ label {
color: #373737;
}
.reating-arkows.zatujgdsanuk input[type="checkbox"]:checked ~ label:hover {
color: #62b125;
}
.reating-arkows.zatujgdsanuk input[type="checkbox"]:checked ~ label .trianglesusing {
background-color: #75d32d;
}
.reating-arkows.zatujgdsanuk input[type="checkbox"]:checked ~ label .trianglesusing:after {
color: #5da924;
}
.reating-arkows.zatujgdsanuk input[type="checkbox"]:checked:focus ~ label .trianglesusing, .reating-arkows.zatujgdsanuk input[type="checkbox"]:checked:hover ~ label .trianglesusing {
background-color: #69be28;
}
.reating-arkows.zatujgdsanuk input[type="checkbox"]:checked:focus ~ label .trianglesusing:after, .reating-arkows.zatujgdsanuk input[type="checkbox"]:checked:hover ~ label .trianglesusing:after {
color: #52941f;
}
.reating-arkows.zatujgdsanuk label .moresharpened {
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.reating-arkows.zatujgdsanuk label .trianglesusing {
-webkit-transition: background-color 0.3s cubic-bezier(0.86, 0, 0.07, 1);
transition: background-color 0.3s cubic-bezier(0.86, 0, 0.07, 1);
background: #515151;
}
.reating-arkows.zatujgdsanuk label .trianglesusing:before {
color: rgba(255, 255, 255, 0.7);
}
.reating-arkows.zatujgdsanuk label .trianglesusing:after {
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
color: #444;
}
.reating-arkows.zatujgdsanuk input[type="checkbox"]:focus ~ label .trianglesusing:after, .reating-arkows.zatujgdsanuk input[type="checkbox"]:hover ~ label .trianglesusing:after {
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
}
.reating-arkows.zatujgdsanuk input[type="checkbox"]:checked ~ label .trianglesusing:after {
-webkit-transform: translate3d(58px, 0, 0);
transform: translate3d(58px, 0, 0);
}
.reating-arkows.zatujgdsanuk input[type="checkbox"]:checked:focus ~ label .trianglesusing:after, .reating-arkows.zatujgdsanuk input[type="checkbox"]:checked:hover ~ label .trianglesusing:after {
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
}
.reating-arkows.zatujgdsanuk label {
font-size: 13px;
}
.reating-arkows.zatujgdsanuk label .trianglesusing {
height: 60px;
-webkit-flex: 0 0 120px;
-ms-flex: 0 0 120px;
flex: 0 0 120px;
border-radius: 60px;
}
.reating-arkows.zatujgdsanuk label .trianglesusing:before {
left: 60px;
font-size: 13px;
line-height: 60px;
width: 60px;
padding: 0 12px;
}
.reating-arkows.zatujgdsanuk label .trianglesusing:after {
top: 2px;
left: 2px;
border-radius: 30px;
width: 58px;
line-height: 56px;
font-size: 13px;
}
.reating-arkows.zatujgdsanuk label .trianglesusing:hover:after {
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
}
</style>
<div class="reating-arkows transparentin">
<input id="c" type="checkbox">
<label for="c">
<div class="trianglesusing" data-checked="On" data-unchecked="Off"></div>
<div class="moresharpened">Кнопка</div>
</label>
</div>
пульт
(custom)
<link type="text/css" rel="stylesheet" href="../templates/app_lgtvrs232/css/style.css" />
<script language="javascript">
function setChannel(channel) {
var url = '/objects/?object=LG32LW575S&op=m&m=selectTVchannels&channel=';
url += channel;
//alert(url);
AJAXRequest(url, 'updateTVinfo();', '');
};
function setCommand(cmd) {
var url = '/objects/?object=LG32LW575S&op=m&m=controlTV&cmd=';
url += cmd;
//alert(url);
AJAXRequest(url, 'updateTVinfo();', '');
};
function setVolume(vol) {
var url = '/objects/?object=LG32LW575S&op=m&m=controlTV&cmd=setVOL&vol=';
url += vol;
//alert(url);
AJAXRequest(url, '', '');
};
function ajaxGetTVvolume(varname, id, timeout) {
var url="/";
url+='?md=application&action=ajaxgetglobal&var='+encodeURIComponent(varname);
$.ajax({
url: url
}).done(function(data) {
var obj=jQuery.parseJSON(data);
if (obj.DATA) {
$('#'+id).val(obj.DATA);
$('#'+id).slider("refresh");
}
});
if (timeout>0) {
window.setTimeout('ajaxGetTVvolume("'+varname+'", "'+id+'", '+timeout+');', timeout);
}
return false;
}
function updateTVinfo() {
ajaxGetTVvolume('LG32LW575S.volumeLevel', 'tvVOL', 0);
ajaxGetGlobal('LG32LW575S.statusText', 'tvInfo', 0);
//alert('Update OK!');
};
$(document).ready(function() {
// Будем обновлять значения громкости и информации о ТВ каждые 30 сек.
ajaxGetTVvolume('LG32LW575S.volumeLevel', 'tvVOL', 30000);
ajaxGetGlobal('LG32LW575S.statusText', 'tvInfo', 30000);
$(".tvimg").click(function(){
var channel = $(this).attr("channel");
setChannel(channel);
ajaxGetGlobal('LG32LW575S.statusText', 'tvInfo', 0);
});
$(".rcBtn").click(function(){
var cmd = $(this).attr("cmd");
setCommand(cmd);
ajaxGetGlobal('LG32LW575S.statusText', 'tvInfo', 0);
});
$( "#tvVOL" ).slider({
stop: function( event, ui ) {
setVolume($("#tvVOL").val());
}
});
});
</script>
<div style="width: 305px; border-style:solid; border-width:0px; margin: 0 auto;">
<table border="0" aligne="center" style="width: 100%; margin: 0 auto;">
<tr>
<td width="25%" align="center"><span id="vol-result"></span></td>
<td width="25%" align="center"><span id="pwr-result"></span></td>
<td width="25%" align="center"><span id="debugTV"></span></td>
<td width="25%">
<a href="#" cmd="btn_OFF" class="rcBtn ui-btn ui-icon-power ui-btn-icon-notext ui-shadow" style="margin: 0 auto; height: 40px; width: 70px; border-radius: .3125em;"></a>
</td>
</tr>
</table>
<table border="0" aligne="center" style="width: 100%; margin: 0 auto;">
<tr>
<td width="33%" align="center"></td>
<td></td>
<td width="33%">
</td>
</tr>
<tr>
<td colspan="3">
<div style="border-style:solid; border-width:0px; text-align:center; margin: 0 auto;">
<form style="margin-left: 11px;">
<label for="tv_volume" class="ui-hidden-accessible">volume:</label>
<input type="range" name="tv_volume" id="tvVOL" data-highlight="true" min="0" max="50" value="12" />
</form>
</div>
</td>
</tr>
<tr>
<td colspan="3">
<div data-role="controlgroup" data-type="horizontal" data-mini="true" class="ui-nodisc-icon" style="border-style:solid; border-width:0px; text-align:center; margin: 0 auto;">
<a href="#" cmd="btn_chDOWN" class="rcBtn ui-btn ui-icon-carat-d ui-btn-icon-notext ui-shadow"> </a>
<span id="tvInfo" class="ui-btn" style="text-align: center; width:175px"></span>
<a href="#" cmd="btn_chUP" class="rcBtn ui-btn ui-icon-carat-u ui-btn-icon-notext ui-shadow"> </a>
</div>
</td>
</tr>
<tr>
<td width="33%" align="center"> </td>
<td align="center" > </td>
<td width="33%" align="center"> </td>
</tr>
<tr>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Первый HD.png" class="tvimg" channel="Первый HD"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Россия HD.png" class="tvimg" channel="Россия HD"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Первый городской HD.png" class="tvimg" channel="Первый городской HD"></td>
</tr>
<tr>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/СТС.png" class="tvimg" channel="СТС"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/СТС Love.png" class="tvimg" channel="СТС Love"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/ТНТ.png" class="tvimg" channel="ТНТ"></td>
</tr>
<tr>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Disney.png" class="tvimg" channel="Disney"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Перец.png" class="tvimg" channel="Перец"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/ТВ-3.png" class="tvimg" channel="ТВ-3"></td>
</tr>
<tr>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Пятница.png" class="tvimg" channel="Пятница"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Домашний.png" class="tvimg" channel="Домашний"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Discovery Channel.png" class="tvimg" channel="Discovery Channel"></td>
</tr>
<tr>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Animal Planet.png" class="tvimg" channel="Animal Planet"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/TLC.png" class="tvimg" channel="TLC"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/National Geographic.png" class="tvimg" channel="National Geographic"></td>
</tr>
<tr>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/National Geographic HD.png" class="tvimg" channel="National Geographic HD"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Nat Geo Wild HD.png" class="tvimg" channel="Nat Geo Wild HD"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Viasat Explorer.png" class="tvimg" channel="Viasat Explorer"></td>
</tr>
<tr>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Viasat History.png" class="tvimg" channel="Viasat History"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Дом кино.png" class="tvimg" channel="Дом кино"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Viasat TV1000.png" class="tvimg" channel="Viasat TV1000"></td>
</tr>
<tr>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Viasat TV1000 Rus.png" class="tvimg" channel="Viasat TV1000 Rus"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Sony SciFi.png" class="tvimg" channel="Sony SciFi"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Sony Set.png" class="tvimg" channel="Sony Set"></td>
</tr>
<tr>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Fox.png" class="tvimg" channel="Fox"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Fox HD.png" class="tvimg" channel="Fox HD"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Fox Life.png" class="tvimg" channel="Fox Life"></td>
</tr>
<tr>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Fox Life HD.png" class="tvimg" channel="Fox Life HD"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/Paramount Comedy.png" class="tvimg" channel="Paramount Comedy"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/МУЗ ТВ.png" class="tvimg" channel="МУЗ ТВ"></td>
</tr>
<tr>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/MTV.png" class="tvimg" channel="MTV"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/RU TV.png" class="tvimg" channel="RU TV"></td>
<td align="center">
<img src="../templates/app_lgtvrs232/images/tvlogo/A-One.png" class="tvimg" channel="A-One"></td>
</tr>
</table>
</div>