forked from hummypkg/webif
e6366df3c8
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1692 2a923420-c742-0410-a762-8d5b09965624
24 lines
443 B
JavaScript
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);
|
|
});
|
|
|
|
});
|
|
|