webif/var/mongoose/html/js/chanchangenc.js
hummypkg e6366df3c8 update
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1692 2a923420-c742-0410-a762-8d5b09965624
2013-09-18 17:54:33 +00:00

24 lines
443 B
JavaScript

$(function() {
var signalarray = ['ZERO', 'ONE', 'TWO', 'THREE', 'FOUR',
'FIVE', 'SIX', 'SEVEN', 'EIGHT', 'NINE'];
$('a.chanchange').on('click', function(el) {
el.preventDefault();
var lcn = $(this).attr('chan');
var cmd = '';
for (i = 0; i < lcn.length; i++)
{
if (i > 0)
cmd += '+';
cmd += signalarray[lcn.charAt(i)];
}
if (lcn < 1000)
cmd += '+OK';
$.get('/plugin/ir/send.jim?code=' + cmd);
});
});