forked from hummypkg/webif
0e2bc599a5
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1665 2a923420-c742-0410-a762-8d5b09965624
39 lines
989 B
JavaScript
39 lines
989 B
JavaScript
$(function() {
|
|
|
|
$('#epgswitch').button().click(function() {
|
|
window.location = '/epg.shtml';
|
|
});
|
|
|
|
$('button.nav').click(function() {
|
|
window.location = '/cgi-bin/xepg.jim?stt=' + $(this).attr('tt') +
|
|
'&pos=' + $('#xegrid').scrollTop();
|
|
});
|
|
|
|
$('#xepg_dp').datepicker({
|
|
buttonImage: '/img/cal.gif',
|
|
buttonImageOnly: true,
|
|
showOn: 'button',
|
|
dateFormat: '@',
|
|
minDate: 0,
|
|
maxDate: 8,
|
|
onSelect: function(val, sel) {
|
|
var stt = $(this).attr('stt');
|
|
// Extract date part
|
|
dval = Math.round(val / 86400000.0);
|
|
// Extract current time part
|
|
var tm = ~~(stt % 86400);
|
|
|
|
var ret = dval * 86400 + tm;
|
|
|
|
window.location = '/cgi-bin/xepg.jim?stt=' + ret;
|
|
}
|
|
});
|
|
|
|
$('img.ui-datepicker-trigger').hover(
|
|
function() { $(this).css('cursor', 'pointer'); },
|
|
function() { $(this).css('cursor', 'auto'); }
|
|
);
|
|
|
|
});
|
|
|