issue #10 #11 instand power mode scheme modified and add some time delay for fading out busy window on play welcome movie.
This commit is contained in:
@@ -364,7 +364,7 @@ HotelTV.ui_welcome = (function() {
|
||||
"video/mp4",
|
||||
1,
|
||||
() => {
|
||||
HotelTV.ui_utils.SetBusy(false);
|
||||
setTimeout(HotelTV.ui_utils.SetBusy, 2000, false);
|
||||
console.log("STARTUP Done CB.");
|
||||
//Shows up skip button
|
||||
let _elmnt_btn_skip = $(".control .skip_video");
|
||||
@@ -484,7 +484,28 @@ HotelTV.ui_welcome = (function() {
|
||||
}
|
||||
});
|
||||
} else if (_evt == "COMMAND-GUEST-CHECKIN") {
|
||||
let _tmval = 10;
|
||||
let _state = HotelTV.state;
|
||||
let _trTbl = HotelTV.translation;
|
||||
|
||||
HotelTV.ui_utils.ShowSysNoticeMsg(true,
|
||||
"notice",
|
||||
"SYSTEM NOTICE",
|
||||
_trTbl.system.notice.event.mqtt.system_reboot[_state.lang], {
|
||||
"timeout": _tmval,
|
||||
"cb_disp": function() {
|
||||
_tmval -= 1;
|
||||
console.log("time..." + _tmval);
|
||||
if ($('.error #countdown').css("display") == "none") {
|
||||
$('.error #countdown').fadeIn(1000);
|
||||
}
|
||||
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||
}
|
||||
});
|
||||
} else if (_evt == "COMMAND-GUEST-CHECKOUT" || _evt == "COMMAND-SYSTEM-STOP") {
|
||||
let _tmval = 30;
|
||||
let _state = HotelTV.state;
|
||||
@@ -526,10 +547,10 @@ HotelTV.ui_welcome = (function() {
|
||||
if ($('.error #countdown').css("display") == "none") {
|
||||
$('.error #countdown').fadeIn(1000);
|
||||
}
|
||||
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
|
||||
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
|
||||
},
|
||||
"cb_eoe": function() {
|
||||
setTimeout(HotelTV.hcap.PwrOff, 500);
|
||||
setTimeout(HotelTV.hcap.Reboot, 500);
|
||||
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user