5 Commits

6 changed files with 105 additions and 121 deletions

View File

@@ -13,19 +13,6 @@ body {
z-index: 1; z-index: 1;
} }
.startup {
top: 0px;
left: 0px;
position: absolute;
width: 100%;
height: 100%;
padding: 0px;
/* background-image: url(./images/hoteltv_service_preparing.png); */
background-image: url(./images/hoteltv_service_preparing_joson.jpg);
background-size: cover;
background-repeat: no-repeat;
}
.welcome .frame { .welcome .frame {
position: absolute; position: absolute;
top: 0px; top: 0px;

View File

@@ -493,7 +493,6 @@ HotelTV.LoadWelCome = async function() {
HotelTV.dbginfo = await JSON.parse(sessionStorage.getItem("dbginfo")); HotelTV.dbginfo = await JSON.parse(sessionStorage.getItem("dbginfo"));
HotelTV.devinfo = await JSON.parse(sessionStorage.getItem("devinfo")); HotelTV.devinfo = await JSON.parse(sessionStorage.getItem("devinfo"));
HotelTV.svrinfo = await JSON.parse(sessionStorage.getItem("svrinfo")); HotelTV.svrinfo = await JSON.parse(sessionStorage.getItem("svrinfo"));
//HotelTV.state = await JSON.parse(sessionStorage.getItem("state"));
//STEP#03:API Module INIT //STEP#03:API Module INIT
await HotelTV.api.Init(HotelTV.svrinfo.ipaddr, HotelTV.svrinfo.port, HotelTV.devinfo.model_name.substring(2, HotelTV.devinfo.model_name.length - 1), HotelTV.devinfo.serial_number); await HotelTV.api.Init(HotelTV.svrinfo.ipaddr, HotelTV.svrinfo.port, HotelTV.devinfo.model_name.substring(2, HotelTV.devinfo.model_name.length - 1), HotelTV.devinfo.serial_number);
HotelTV.settings = await JSON.parse(sessionStorage.getItem("settings")); HotelTV.settings = await JSON.parse(sessionStorage.getItem("settings"));
@@ -628,7 +627,6 @@ HotelTV.LoadAppFull = async function() {
HotelTV.devinfo = await JSON.parse(sessionStorage.getItem("devinfo")); HotelTV.devinfo = await JSON.parse(sessionStorage.getItem("devinfo"));
HotelTV.svrinfo = await JSON.parse(sessionStorage.getItem("svrinfo")); HotelTV.svrinfo = await JSON.parse(sessionStorage.getItem("svrinfo"));
HotelTV.services = await JSON.parse(sessionStorage.getItem("services")); HotelTV.services = await JSON.parse(sessionStorage.getItem("services"));
//HotelTV.state = await JSON.parse(sessionStorage.getItem("state"));
//STEP#02: Init HotelTV API //STEP#02: Init HotelTV API
await HotelTV.api.Init(HotelTV.svrinfo.ipaddr, HotelTV.svrinfo.port, HotelTV.devinfo.model_name.substring(2, HotelTV.devinfo.model_name.length - 1), HotelTV.devinfo.serial_number); await HotelTV.api.Init(HotelTV.svrinfo.ipaddr, HotelTV.svrinfo.port, HotelTV.devinfo.model_name.substring(2, HotelTV.devinfo.model_name.length - 1), HotelTV.devinfo.serial_number);

View File

@@ -607,12 +607,21 @@ HotelTV.ui_appfull = (function() {
let _amenity = null; let _amenity = null;
let _roomservice = null; let _roomservice = null;
let _elAmPupOoderRoot = $('.popup .amenity').children('.order');
if ( _elAmPupOoderRoot.css('display')!="none" ){
_elAmPupOoderRoot.hide();
}
let _elRsPupOoderRoot = $('.popup .roomservice').children('.order');
if ( _elRsPupOoderRoot.css('display')!="none" ){
_elRsPupOoderRoot.hide();
}
if (!_opening.amenity) { if (!_opening.amenity) {
return; return;
} }
_amenity = _opening.amenity; _amenity = _opening.amenity;
// HOTKEY정보를 state에 기록 // HOTKEY정보를 state에 기록
if (!(_amenity.button in _state.hotkey.mm)) { if (!(_amenity.button in _state.hotkey.mm)) {
_state.hotkey.mm[_amenity.button] = { _state.hotkey.mm[_amenity.button] = {
@@ -631,10 +640,7 @@ HotelTV.ui_appfull = (function() {
}; };
} }
let _elAmPupOoderRoot = $('.popup .amenity').children('.order');
if ( _elAmPupOoderRoot.css('display')!="none" ){
_elAmPupOoderRoot.hide();
}
@@ -642,7 +648,6 @@ HotelTV.ui_appfull = (function() {
return; return;
} }
_roomservice = _opening.roomService; _roomservice = _opening.roomService;
// HOTKEY정보를 state에 기록 // HOTKEY정보를 state에 기록
if (!(_roomservice.button in _state.hotkey.mm)) { if (!(_roomservice.button in _state.hotkey.mm)) {
_state.hotkey.mm[_roomservice.button] = { _state.hotkey.mm[_roomservice.button] = {
@@ -661,10 +666,6 @@ HotelTV.ui_appfull = (function() {
}; };
} }
let _elRsPupOoderRoot = $('.popup .roomservice').children('.order');
if ( _elRsPupOoderRoot.css('display')!="none" ){
_elRsPupOoderRoot.hide();
}
return; return;
} }
@@ -1484,7 +1485,6 @@ HotelTV.ui_appfull = (function() {
case "enter": { case "enter": {
if ( _str_curBtnID=='btn_ordernow' ){ if ( _str_curBtnID=='btn_ordernow' ){
console.log("TODO::>> ORDERING NOW...");
__ifxn_processAmCartOrder( __ifxn_processAmCartOrder(
function() { function() {
//Return to menu //Return to menu
@@ -1629,6 +1629,9 @@ HotelTV.ui_appfull = (function() {
{ {
case "enter": { case "enter": {
_elAmCtgyBgMenuItemWin.find('.amctgyItem').first().addClass("focus"); _elAmCtgyBgMenuItemWin.find('.amctgyItem').first().addClass("focus");
__amctgyItemStatus.idx = 0;
__amctgyItemStatus.scroll_TOfset = 0;
_elAmCtgyBgMenuItemWin.find('.tbl_record').children('#record').animate({ scrollTop: 0 }, 200);
__ifxn_updateAmItemDesc(__amctgyItemStatus.idx); __ifxn_updateAmItemDesc(__amctgyItemStatus.idx);
} break; } break;
@@ -1652,10 +1655,12 @@ HotelTV.ui_appfull = (function() {
// 테이블 ROW인덱스와 스크롤 OFFSET계산 // 테이블 ROW인덱스와 스크롤 OFFSET계산
__amctgyItemStatus.idx = _elTblTr_AmItemNext.prop('rowIndex'); __amctgyItemStatus.idx = _elTblTr_AmItemNext.prop('rowIndex');
__amctgyItemStatus.scroll_TOfset += _elTblTr_AmItemNext.prop('scrollHeight');
//스크롤 에니메이션 수행 if ( _elTbl_AmItem.children('#record').find('tr').first().position().top<0 ){
_elTbl_AmItem.children('#record').animate({ scrollTop: __amctgyItemStatus.scroll_TOfset }, 200); __amctgyItemStatus.scroll_TOfset -= _elTblTr_AmItemNext.prop('scrollHeight');
//스크롤 에니메이션 수행
_elTbl_AmItem.children('#record').animate({ scrollTop: __amctgyItemStatus.scroll_TOfset }, 200);
}
__ifxn_updateAmItemDesc(__amctgyItemStatus.idx, function() { __ifxn_updateAmItemDesc(__amctgyItemStatus.idx, function() {
if ( _isNeedSoldOutMask==true ){ if ( _isNeedSoldOutMask==true ){
@@ -1682,10 +1687,11 @@ HotelTV.ui_appfull = (function() {
// 테이블 ROW인덱스와 스크롤 OFFSET계산 // 테이블 ROW인덱스와 스크롤 OFFSET계산
__amctgyItemStatus.idx = _elTblTr_AmItemNext.prop('rowIndex'); __amctgyItemStatus.idx = _elTblTr_AmItemNext.prop('rowIndex');
__amctgyItemStatus.scroll_TOfset += _elTblTr_AmItemNext.prop('scrollHeight'); if ( __amctgyItemStatus.idx>=12 ){
__amctgyItemStatus.scroll_TOfset += _elTblTr_AmItemNext.prop('scrollHeight');
//스크롤 에니메이션 수행 //스크롤 에니메이션 수행
_elTbl_AmItem.children('#record').animate({ scrollTop: __amctgyItemStatus.scroll_TOfset }, 200); _elTbl_AmItem.children('#record').animate({ scrollTop: __amctgyItemStatus.scroll_TOfset }, 200);
}
__ifxn_updateAmItemDesc(__amctgyItemStatus.idx, function() { __ifxn_updateAmItemDesc(__amctgyItemStatus.idx, function() {
if ( _isNeedSoldOutMask==true ){ if ( _isNeedSoldOutMask==true ){
@@ -2017,7 +2023,6 @@ HotelTV.ui_appfull = (function() {
if ( _aminfo_ctgy[__status_am_specific.category_sel.cur].name == "CARTS" ){ if ( _aminfo_ctgy[__status_am_specific.category_sel.cur].name == "CARTS" ){
console.log("TODO::> NOTIFY cannot enter item sel on CARTS"); console.log("TODO::> NOTIFY cannot enter item sel on CARTS");
}else if ( _aminfo_ctgy[__status_am_specific.category_sel.cur].name == "ORDER" ){ }else if ( _aminfo_ctgy[__status_am_specific.category_sel.cur].name == "ORDER" ){
console.log("TODO::> NOTIFY cannot enter item sel on ORDER");
let __str_notify_msg = _trTbl.ui.amenity.message.invalidCategory[_state.lang].replace('__MENU__', __uifxn_AppFull_getOrderMenuName(_aminfo_ctgy)); let __str_notify_msg = _trTbl.ui.amenity.message.invalidCategory[_state.lang].replace('__MENU__', __uifxn_AppFull_getOrderMenuName(_aminfo_ctgy));
HotelTV.ui_utils.ShowNotificationMsgBalloon(__str_notify_msg, 5); HotelTV.ui_utils.ShowNotificationMsgBalloon(__str_notify_msg, 5);
}else{ }else{
@@ -2064,6 +2069,7 @@ HotelTV.ui_appfull = (function() {
$('.main').addClass("depth_mm"); $('.main').addClass("depth_mm");
__uifxn_AppFull_HotKey_ShowBtnOnMM(true); __uifxn_AppFull_HotKey_ShowBtnOnMM(true);
__uifxn_AppFull_TopWidjetShow(true); __uifxn_AppFull_TopWidjetShow(true);
_state.menu.stage.prev = null;
}); });
}, 500); }, 500);
} }
@@ -2114,6 +2120,7 @@ HotelTV.ui_appfull = (function() {
$('.main').addClass("depth_mm"); $('.main').addClass("depth_mm");
__uifxn_AppFull_HotKey_ShowBtnOnMM(true); __uifxn_AppFull_HotKey_ShowBtnOnMM(true);
__uifxn_AppFull_TopWidjetShow(true); __uifxn_AppFull_TopWidjetShow(true);
_state.menu.stage.prev = null;
}); });
}, 500); }, 500);
} }
@@ -2136,7 +2143,7 @@ HotelTV.ui_appfull = (function() {
_state.menu.stage.cur = "amenity_ctgy_item_cart"; _state.menu.stage.cur = "amenity_ctgy_item_cart";
__uifxn_AppFull_DrawAmUserGuide("amenity_ctgy_item_cart"); __uifxn_AppFull_DrawAmUserGuide("amenity_ctgy_item_cart");
} else { } else {
HotelTV.ui_utils.ShowNotificationMsgBalloon(_trTbl.system.ott_service_not_ready[_state.lang], 5); HotelTV.ui_utils.ShowNotificationMsgBalloon(_trTbl.ui.amenity.message.notinservice[_state.lang], 5);
} }
} }
} else if (_state.menu.stage.cur == "amenity_ctgy_item_cart") { } else if (_state.menu.stage.cur == "amenity_ctgy_item_cart") {
@@ -2211,7 +2218,6 @@ HotelTV.ui_appfull = (function() {
if ( _aminfo_ctgy[__status_am_specific.category_sel.cur].name == "CARTS" ){ if ( _aminfo_ctgy[__status_am_specific.category_sel.cur].name == "CARTS" ){
console.log("TODO::> Draw Carts"); console.log("TODO::> Draw Carts");
}else if ( _aminfo_ctgy[__status_am_specific.category_sel.cur].name == "ORDER" ){ }else if ( _aminfo_ctgy[__status_am_specific.category_sel.cur].name == "ORDER" ){
console.log("TODO::> Draw Order");
__uifxn_AppFull_DrawAmOrderList('build'); __uifxn_AppFull_DrawAmOrderList('build');
_state.menu.stage.prev = _state.menu.stage.cur; _state.menu.stage.prev = _state.menu.stage.cur;
_state.menu.stage.cur = "amenity_ctgy_orderlists"; _state.menu.stage.cur = "amenity_ctgy_orderlists";
@@ -3016,7 +3022,6 @@ HotelTV.ui_appfull = (function() {
case "enter": { case "enter": {
if ( _str_curBtnID=='btn_ordernow' ){ if ( _str_curBtnID=='btn_ordernow' ){
console.log("TODO::>> ORDERING NOW...");
__ifxn_processRsCartOrder( __ifxn_processRsCartOrder(
function() { function() {
//Return to menu //Return to menu
@@ -3161,6 +3166,10 @@ HotelTV.ui_appfull = (function() {
{ {
case "enter": { case "enter": {
_elRsCtgyBgMenuItemWin.find('.rsctgyItem').first().addClass("focus"); _elRsCtgyBgMenuItemWin.find('.rsctgyItem').first().addClass("focus");
//인덱스 및 스크롤 초기화
__rsctgyItemStatus.idx = 0;
__rsctgyItemStatus.scroll_TOfset = 0;
_elRsCtgyBgMenuItemWin.find('.tbl_record').children('#record').animate({ scrollTop: 0 }, 200);
__ifxn_updateRsItemDesc(__rsctgyItemStatus.idx); __ifxn_updateRsItemDesc(__rsctgyItemStatus.idx);
} break; } break;
@@ -3184,10 +3193,12 @@ HotelTV.ui_appfull = (function() {
// 테이블 ROW인덱스와 스크롤 OFFSET계산 // 테이블 ROW인덱스와 스크롤 OFFSET계산
__rsctgyItemStatus.idx = _elTblTr_RsItemNext.prop('rowIndex'); __rsctgyItemStatus.idx = _elTblTr_RsItemNext.prop('rowIndex');
__rsctgyItemStatus.scroll_TOfset += _elTblTr_RsItemNext.prop('scrollHeight');
//스크롤 에니메이션 수행 if ( _elTbl_RsItem.children('#record').find('tr').first().position().top<0 ){
_elTbl_RsItem.children('#record').animate({ scrollTop: __rsctgyItemStatus.scroll_TOfset }, 200); __rsctgyItemStatus.scroll_TOfset -= _elTblTr_RsItemNext.prop('scrollHeight');
//스크롤 에니메이션 수행
_elTbl_RsItem.children('#record').animate({ scrollTop: __rsctgyItemStatus.scroll_TOfset }, 200);
}
__ifxn_updateRsItemDesc(__rsctgyItemStatus.idx, function() { __ifxn_updateRsItemDesc(__rsctgyItemStatus.idx, function() {
if ( _isNeedSoldOutMask==true ){ if ( _isNeedSoldOutMask==true ){
@@ -3214,10 +3225,11 @@ HotelTV.ui_appfull = (function() {
// 테이블 ROW인덱스와 스크롤 OFFSET계산 // 테이블 ROW인덱스와 스크롤 OFFSET계산
__rsctgyItemStatus.idx = _elTblTr_RsItemNext.prop('rowIndex'); __rsctgyItemStatus.idx = _elTblTr_RsItemNext.prop('rowIndex');
__rsctgyItemStatus.scroll_TOfset += _elTblTr_RsItemNext.prop('scrollHeight'); if ( __rsctgyItemStatus.idx>=12 ){
__rsctgyItemStatus.scroll_TOfset += _elTblTr_RsItemNext.prop('scrollHeight');
//스크롤 에니메이션 수행 //스크롤 에니메이션 수행
_elTbl_RsItem.children('#record').animate({ scrollTop: __rsctgyItemStatus.scroll_TOfset }, 200); _elTbl_RsItem.children('#record').animate({ scrollTop: __rsctgyItemStatus.scroll_TOfset }, 200);
}
__ifxn_updateRsItemDesc(__rsctgyItemStatus.idx, function() { __ifxn_updateRsItemDesc(__rsctgyItemStatus.idx, function() {
if ( _isNeedSoldOutMask==true ){ if ( _isNeedSoldOutMask==true ){
@@ -3550,7 +3562,6 @@ HotelTV.ui_appfull = (function() {
if ( _rsinfo_ctgy[__status_rs_specific.category_sel.cur].name == "CARTS" ){ if ( _rsinfo_ctgy[__status_rs_specific.category_sel.cur].name == "CARTS" ){
console.log("TODO::> NOTIFY cannot enter item sel on CARTS"); console.log("TODO::> NOTIFY cannot enter item sel on CARTS");
}else if ( _rsinfo_ctgy[__status_rs_specific.category_sel.cur].name == "ORDER" ){ }else if ( _rsinfo_ctgy[__status_rs_specific.category_sel.cur].name == "ORDER" ){
console.log("TODO::> NOTIFY cannot enter item sel on ORDER");
let __str_notify_msg = _trTbl.ui.roomservice.message.invalidCategory[_state.lang].replace('__MENU__', __uifxn_AppFull_getOrderMenuName(_rsinfo_ctgy)); let __str_notify_msg = _trTbl.ui.roomservice.message.invalidCategory[_state.lang].replace('__MENU__', __uifxn_AppFull_getOrderMenuName(_rsinfo_ctgy));
HotelTV.ui_utils.ShowNotificationMsgBalloon(__str_notify_msg, 5); HotelTV.ui_utils.ShowNotificationMsgBalloon(__str_notify_msg, 5);
}else{ }else{
@@ -3597,6 +3608,7 @@ HotelTV.ui_appfull = (function() {
$('.main').addClass("depth_mm"); $('.main').addClass("depth_mm");
__uifxn_AppFull_HotKey_ShowBtnOnMM(true); __uifxn_AppFull_HotKey_ShowBtnOnMM(true);
__uifxn_AppFull_TopWidjetShow(true); __uifxn_AppFull_TopWidjetShow(true);
_state.menu.stage.prev = null;
}); });
}, 500); }, 500);
} }
@@ -3646,6 +3658,7 @@ HotelTV.ui_appfull = (function() {
$('.main').addClass("depth_mm"); $('.main').addClass("depth_mm");
__uifxn_AppFull_HotKey_ShowBtnOnMM(true); __uifxn_AppFull_HotKey_ShowBtnOnMM(true);
__uifxn_AppFull_TopWidjetShow(true); __uifxn_AppFull_TopWidjetShow(true);
_state.menu.stage.prev = null;
}); });
}, 500); }, 500);
} }
@@ -3668,7 +3681,7 @@ HotelTV.ui_appfull = (function() {
_state.menu.stage.cur = "roomservice_ctgy_item_cart"; _state.menu.stage.cur = "roomservice_ctgy_item_cart";
__uifxn_AppFull_DrawRsUserGuide("roomservice_ctgy_item_cart"); __uifxn_AppFull_DrawRsUserGuide("roomservice_ctgy_item_cart");
} else { } else {
HotelTV.ui_utils.ShowNotificationMsgBalloon(_trTbl.system.ott_service_not_ready[_state.lang], 5); HotelTV.ui_utils.ShowNotificationMsgBalloon(_trTbl.ui.roomservice.message.notinservice[_state.lang], 5);
} }
} }
} else if (_state.menu.stage.cur == "roomservice_ctgy_item_cart") { } else if (_state.menu.stage.cur == "roomservice_ctgy_item_cart") {
@@ -3743,7 +3756,6 @@ HotelTV.ui_appfull = (function() {
if ( _rsinfo_ctgy[__status_rs_specific.category_sel.cur].name == "CARTS" ){ if ( _rsinfo_ctgy[__status_rs_specific.category_sel.cur].name == "CARTS" ){
console.log("TODO::> Draw Carts"); console.log("TODO::> Draw Carts");
}else if ( _rsinfo_ctgy[__status_rs_specific.category_sel.cur].name == "ORDER" ){ }else if ( _rsinfo_ctgy[__status_rs_specific.category_sel.cur].name == "ORDER" ){
console.log("TODO::> Draw Order");
__uifxn_AppFull_DrawRsOrderList('build'); __uifxn_AppFull_DrawRsOrderList('build');
_state.menu.stage.prev = _state.menu.stage.cur; _state.menu.stage.prev = _state.menu.stage.cur;
_state.menu.stage.cur = "roomservice_ctgy_orderlists"; _state.menu.stage.cur = "roomservice_ctgy_orderlists";
@@ -4410,7 +4422,7 @@ HotelTV.ui_appfull = (function() {
let uri_video = $($('.main .mypage .bg .owl-carousel .owl-item.active .ctz_mv_ctrl')[0]).attr('video_url'); let uri_video = $($('.main .mypage .bg .owl-carousel .owl-item.active .ctz_mv_ctrl')[0]).attr('video_url');
if (uri_video != null) { if (uri_video != null) {
_state.menu.stage.prev = _state.menu.stage.cur; _state.menu.stage.prev = _state.menu.stage.cur;
_state.menu.stage.cur = "mypage_replay_welcome_vod" _state.menu.stage.cur = "mypage_replay_welcome_vod";
HotelTV.hcap.MediaPlay( HotelTV.hcap.MediaPlay(
uri_video, uri_video,
"", "",
@@ -5864,58 +5876,38 @@ HotelTV.ui_appfull = (function() {
//KEY이벤트 발생이 8초 이내인경우 //KEY이벤트 발생이 8초 이내인경우
//SHOW USER GUIDE TIPS //SHOW USER GUIDE TIPS
let show_stages = ["hotkey_mm_red", "hotkey_mm_green", "hotkey_mm_yellow", "hotkey_mm_blue", "main", "sub", "ctzgen", "tvCtgShow", "tvCtgHide", "mypage_select_menu"]; let show_stages = ["hotkey_mm_red", "hotkey_mm_green", "hotkey_mm_yellow", "hotkey_mm_blue", "main", "sub", "ctzgen", "tvCtgShow", "tvCtgHide", "mypage_select_menu"];
let sz_msg = null;
if (show_stages.includes(_state.menu.stage.cur) == true) { if (show_stages.includes(_state.menu.stage.cur) == true) {
const ___ifxn_updateGuideMsg = function(_szMsg) {
if ($('.guide>.tips').attr("value") != _szMsg) {
$('.guide>.tips').attr("value", _szMsg);
$('.guide>.tips').html(_szMsg);
}
}
switch (_state.menu.stage.cur) { switch (_state.menu.stage.cur) {
case "hotkey_mm_red": case "hotkey_mm_red":
sz_msg = _trTbl.ui.guide.navi_brochure[_state.lang]; ___ifxn_updateGuideMsg(_trTbl.ui.guide.navi_brochure[_state.lang]);
if ($('.guide>.tips').text() != sz_msg) {
$('.guide>.tips').text(sz_msg);
}
break; break;
case "hotkey_mm_green": case "hotkey_mm_green":
sz_msg = _trTbl.ui.guide.navi_brochure[_state.lang]; ___ifxn_updateGuideMsg(_trTbl.ui.guide.navi_brochure[_state.lang]);
if ($('.guide>.tips').text() != sz_msg) {
$('.guide>.tips').text(sz_msg);
}
break; break;
case "hotkey_mm_yellow": case "hotkey_mm_yellow":
sz_msg = _trTbl.ui.guide.navi_brochure[_state.lang]; ___ifxn_updateGuideMsg(_trTbl.ui.guide.navi_brochure[_state.lang]);
if ($('.guide>.tips').text() != sz_msg) {
$('.guide>.tips').text(sz_msg);
}
break; break;
case "hotkey_mm_blue": case "hotkey_mm_blue":
sz_msg = _trTbl.ui.guide.navi_brochure[_state.lang]; ___ifxn_updateGuideMsg(_trTbl.ui.guide.navi_brochure[_state.lang]);
if ($('.guide>.tips').text() != sz_msg) {
$('.guide>.tips').text(sz_msg);
}
break; break;
case "main": case "main":
//sz_msg = _trTbl.ui.guide.navi_menu[_state.lang] || ""; ___ifxn_updateGuideMsg(_trTbl.ui.guide.navi_menu[_state.lang]);
sz_msg = _trTbl.ui.guide.navi_menu[_state.lang];
if ($('.guide>.tips').text() != sz_msg) {
$('.guide>.tips').text(sz_msg);
}
break; break;
case "sub": case "sub":
sz_msg = _trTbl.ui.guide.navi_menu[_state.lang]; ___ifxn_updateGuideMsg(_trTbl.ui.guide.navi_menu[_state.lang]);
if ($('.guide>.tips').text() != sz_msg) {
$('.guide>.tips').text(sz_msg);
}
break; break;
case "ctzgen": case "ctzgen":
sz_msg = _trTbl.ui.guide.navi_ctz[_state.lang]; ___ifxn_updateGuideMsg(_trTbl.ui.guide.navi_ctz[_state.lang]);
if ($('.guide>.tips').text() != sz_msg) {
$('.guide>.tips').text(sz_msg);
}
break; break;
case "tvCtgShow": case "tvCtgShow":
case "tvCtgHide": case "tvCtgHide":
sz_msg = _trTbl.ui.guide.navi_tvchannel[_state.lang]; ___ifxn_updateGuideMsg(_trTbl.ui.guide.navi_tvchannel[_state.lang]);
if ($('.guide>.tips').text() != sz_msg) {
$('.guide>.tips').text(sz_msg);
}
break; break;
} }
@@ -6723,6 +6715,7 @@ HotelTV.ui_appfull = (function() {
} }
} else if (_evt.keyCode == gRmtKey.yellow) { } else if (_evt.keyCode == gRmtKey.yellow) {
// YELLOW BUTTON // YELLOW BUTTON
console.log("YELLOW::>");
if ("yellow" in _state.hotkey.mm) { if ("yellow" in _state.hotkey.mm) {
$('.guide>.tips').stop().animate({ backgroundColor: "rgba(0,0,0,0.8)" }, 500, function() { $('.guide>.tips').stop().animate({ backgroundColor: "rgba(0,0,0,0.8)" }, 500, function() {
if (_state.hotkey.mm.yellow.type == "brochure") { if (_state.hotkey.mm.yellow.type == "brochure") {
@@ -6733,10 +6726,12 @@ HotelTV.ui_appfull = (function() {
}); });
} else if (_state.hotkey.mm.yellow.type == "amenity") { } else if (_state.hotkey.mm.yellow.type == "amenity") {
if (_opening.amenity) { if (_opening.amenity) {
console.log("YELLOW::>AMENITY");
__uifxn_AppFull_BuildAmenity(); __uifxn_AppFull_BuildAmenity();
} }
} else if (_state.hotkey.mm.yellow.type == "roomservice") { } else if (_state.hotkey.mm.yellow.type == "roomservice") {
if (_opening.roomService) { if (_opening.roomService) {
console.log("YELLOW::>ROOMSERVICEC");
__uifxn_AppFull_BuildRoomservice(); __uifxn_AppFull_BuildRoomservice();
} }
} }
@@ -6744,6 +6739,7 @@ HotelTV.ui_appfull = (function() {
HotelTV.api.ReportEvent([{'power': true, 'location':{'conId':_state.hotkey.mm['yellow'].id}}]) HotelTV.api.ReportEvent([{'power': true, 'location':{'conId':_state.hotkey.mm['yellow'].id}}])
} }
} else if (_evt.keyCode == gRmtKey.blue) { } else if (_evt.keyCode == gRmtKey.blue) {
console.log("BLUE::>");
// BLUE BUTTON // BLUE BUTTON
if ("blue" in _state.hotkey.mm) { if ("blue" in _state.hotkey.mm) {
$('.guide>.tips').stop().animate({ backgroundColor: "rgba(0,0,0,0.8)" }, 500, function() { $('.guide>.tips').stop().animate({ backgroundColor: "rgba(0,0,0,0.8)" }, 500, function() {
@@ -6755,10 +6751,12 @@ HotelTV.ui_appfull = (function() {
}); });
} else if (_state.hotkey.mm.blue.type == "amenity") { } else if (_state.hotkey.mm.blue.type == "amenity") {
if (_opening.amenity) { if (_opening.amenity) {
console.log("BLUE::>AMENITY");
__uifxn_AppFull_BuildAmenity(); __uifxn_AppFull_BuildAmenity();
} }
} else if (_state.hotkey.mm.blue.type == "roomservice") { } else if (_state.hotkey.mm.blue.type == "roomservice") {
if (_opening.roomService) { if (_opening.roomService) {
console.log("BLUE::>ROOMSERVICE");
__uifxn_AppFull_BuildRoomservice(); __uifxn_AppFull_BuildRoomservice();
} }
} }
@@ -7121,13 +7119,13 @@ HotelTV.ui_appfull = (function() {
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`); $('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": function() {
setTimeout(HotelTV.hcap.PwrOff(), 500); setTimeout(HotelTV.hcap.PwrOff, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}]) HotelTV.api.ReportEvent([{'power': false, 'location':null}])
} }
}); });
} else if (_evt == "GUEST-CHECKIN") { } else if (_evt == "COMMAND-GUEST-CHECKIN") {
} else if (_evt == "GUEST-CHECKOUT") { } else if (_evt == "COMMAND-GUEST-CHECKOUT") {
let _tmval = 30; let _tmval = 30;
let _state = HotelTV.state; let _state = HotelTV.state;
let _trTbl = HotelTV.translation; let _trTbl = HotelTV.translation;
@@ -7146,13 +7144,13 @@ HotelTV.ui_appfull = (function() {
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`); $('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": function() {
setTimeout(HotelTV.hcap.PwrOff(), 500); setTimeout(HotelTV.hcap.PwrOff, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}]) HotelTV.api.ReportEvent([{'power': false, 'location':null}])
} }
}); });
} else if (_evt == "GUEST-UPDATE") { } else if (_evt == "COMMAND-GUEST-UPDATE") {
} else if (_evt == "GUEST-ROOMCHANGE") { } else if (_evt == "COMMAND-GUEST-ROOMCHANGE") {
let _tmval = 30; let _tmval = 30;
let _state = HotelTV.state; let _state = HotelTV.state;
let _trTbl = HotelTV.translation; let _trTbl = HotelTV.translation;
@@ -7171,7 +7169,7 @@ HotelTV.ui_appfull = (function() {
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`); $('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": function() {
setTimeout(HotelTV.hcap.PwrOff(), 500); setTimeout(HotelTV.hcap.PwrOff, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}]) HotelTV.api.ReportEvent([{'power': false, 'location':null}])
} }
}); });

View File

@@ -147,8 +147,8 @@ HotelTV.ui_welcome = (function() {
*/ */
function __uifxn_WC_OnNetEvt(_evt) { function __uifxn_WC_OnNetEvt(_evt) {
let _state = HotelTV.state; let _state = HotelTV.state;
console.log("network_event_received = " + _evt.eventType); console.log("network_event_received = " + _evt['eventType']);
let _typeNetEvt = _evt.eventType; let _typeNetEvt = _evt['eventType'];
switch (_typeNetEvt) { switch (_typeNetEvt) {
case hcap.network.NetworkEventType.ABLE_REACH_DNS: case hcap.network.NetworkEventType.ABLE_REACH_DNS:
@@ -385,13 +385,13 @@ HotelTV.ui_welcome = (function() {
} }
} }
} else if (_state.menu.stage.cur == "playWelcomeMovie") { } else if (_state.menu.stage.cur == "playWelcomeMovie") {
if (_evt.keyCode == 413) { if (_evt.keyCode == gRmtKey.stop) {
// STOP KEY Event // STOP KEY Event
if (_media_status == 'playing') { if (_media_status == 'playing') {
_media_status = 'preparing_stop_playing'; _media_status = 'preparing_stop_playing';
var _evt = new Event('media_event_received'); var _evt = new Event('media_event_received');
_evt.eventType = "play_end_need_destory"; _evt['command_id'] = "media_ctrl_event";
_evt.command_id = "event"; _evt['eventType'] = "play_end_need_destory";
document.dispatchEvent(_evt); document.dispatchEvent(_evt);
} }
} else { } else {
@@ -404,7 +404,7 @@ HotelTV.ui_welcome = (function() {
}, 3000); }, 3000);
} else { } else {
const _evt = new Event('media_event_received'); const _evt = new Event('media_event_received');
_evt['command_id'] = "media_event_received"; _evt['command_id'] = "media_ctrl_event";
_evt['eventType'] = "play_stop_requtested"; _evt['eventType'] = "play_stop_requtested";
document.dispatchEvent(_evt); document.dispatchEvent(_evt);
} }
@@ -479,7 +479,7 @@ HotelTV.ui_welcome = (function() {
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`); $('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": function() {
setTimeout(HotelTV.hcap.PwrOff(), 500); setTimeout(HotelTV.hcap.PwrOff, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}]) HotelTV.api.ReportEvent([{'power': false, 'location':null}])
} }
}); });
@@ -504,7 +504,7 @@ HotelTV.ui_welcome = (function() {
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`); $('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": function() {
setTimeout(HotelTV.hcap.PwrOff(), 500); setTimeout(HotelTV.hcap.PwrOff, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}]) HotelTV.api.ReportEvent([{'power': false, 'location':null}])
} }
}); });
@@ -529,7 +529,7 @@ HotelTV.ui_welcome = (function() {
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`); $('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": function() {
setTimeout(HotelTV.hcap.PwrOff(), 500); setTimeout(HotelTV.hcap.PwrOff, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}]) HotelTV.api.ReportEvent([{'power': false, 'location':null}])
} }
}); });

View File

@@ -535,7 +535,7 @@
} }
.popup .amenity .bg .am_item_sel_win .winleft>.tbl_header tbody tr>#title { .popup .amenity .bg .am_item_sel_win .winleft>.tbl_header tbody tr>#title {
width: 45%; width: 42%;
float: left; float: left;
/* text-align: left; */ /* text-align: left; */
padding: 0 0px 0 20px; padding: 0 0px 0 20px;
@@ -547,7 +547,7 @@
} }
.popup .amenity .bg .am_item_sel_win .winleft>.tbl_header tbody tr>#status { .popup .amenity .bg .am_item_sel_win .winleft>.tbl_header tbody tr>#status {
width: 35%; width: 38%;
float: left; float: left;
padding: 0px 30px 0 0px; padding: 0px 30px 0 0px;
} }
@@ -564,7 +564,7 @@
} }
.popup .amenity .bg .am_item_sel_win .winleft>.tbl_record tbody { .popup .amenity .bg .am_item_sel_win .winleft>.tbl_record tbody {
/* height: 285px; */ height: 670px;
overflow-y: auto; overflow-y: auto;
display: block; display: block;
} }
@@ -610,7 +610,7 @@
} }
.popup .amenity .bg .am_item_sel_win .winleft>.tbl_record tbody tr>.amctgyItem>#title { .popup .amenity .bg .am_item_sel_win .winleft>.tbl_record tbody tr>.amctgyItem>#title {
width: 45%; width: 42%;
float: left; float: left;
padding: 0px 0px 0px 20px; padding: 0px 0px 0px 20px;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -624,7 +624,7 @@
} }
.popup .amenity .bg .am_item_sel_win .winleft>.tbl_record tbody tr>.amctgyItem>#status { .popup .amenity .bg .am_item_sel_win .winleft>.tbl_record tbody tr>.amctgyItem>#status {
width: 35%; width: 38%;
float: left; float: left;
/* text-align: right; */ /* text-align: right; */
padding: 0px 30px 0 0px; padding: 0px 30px 0 0px;
@@ -828,7 +828,7 @@
line-height: 137px; line-height: 137px;
width: 50%; width: 50%;
height: 60%; height: 60%;
font-size: 52px; font-size: 40px;
text-align: center; text-align: center;
color: rgba(218,165,32,1.0); color: rgba(218,165,32,1.0);
background-image: url(./images/quantity_edit_arrow.png); background-image: url(./images/quantity_edit_arrow.png);
@@ -849,7 +849,7 @@
line-height: 91px; line-height: 91px;
width: 50%; width: 50%;
height: 40%; height: 40%;
font-size: 52px; font-size: 40px;
text-align: center; text-align: center;
color: rgba(218,165,32,1.0); color: rgba(218,165,32,1.0);
} }
@@ -892,7 +892,7 @@
padding: 0px 30px 0px 30px; padding: 0px 30px 0px 30px;
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
font-size: 32px; font-size: 38px;
color: rgba(51,51,51,1.0); color: rgba(51,51,51,1.0);
} }
@@ -1109,7 +1109,7 @@
height: 65px; height: 65px;
width: 96%; width: 96%;
margin: 12px 2% 0px 2%; margin: 12px 2% 0px 2%;
padding: 4px 2% 0px 2%; padding: 18px 2% 0px 2%;
display: flex; display: flex;
float: left; float: left;
flex-direction: row; flex-direction: row;
@@ -1120,7 +1120,7 @@
.popup .amenity .bg .owl-carousel .owl-stage .am_item_sel_cart_win .winright>.summary>#label{ .popup .amenity .bg .owl-carousel .owl-stage .am_item_sel_cart_win .winright>.summary>#label{
line-height: 65px; line-height: 40px;
width: 50%; width: 50%;
height: 100px; height: 100px;
font-size: 48px; font-size: 48px;
@@ -1128,7 +1128,7 @@
} }
.popup .amenity .bg .owl-carousel .owl-stage .am_item_sel_cart_win .winright>.summary>#value{ .popup .amenity .bg .owl-carousel .owl-stage .am_item_sel_cart_win .winright>.summary>#value{
line-height: 65px; line-height: 40px;
width: 50%; width: 50%;
height: 100%; height: 100%;
font-size: 52px; font-size: 52px;
@@ -1290,8 +1290,9 @@
width: 100%; width: 100%;
height: 132px; height: 132px;
margin: 0; margin: 0;
padding: 0px 20px 0px 20px; padding: 0px 20px 0px 48px;
color: rgb(245,245,245); /* color: rgb(245,245,245); */
color: rgb(181, 218, 16);
line-height: 32px; line-height: 32px;
font-size: 32px; font-size: 32px;
z-index: 1; z-index: 1;
@@ -1539,7 +1540,7 @@
height: 65px; height: 65px;
width: 96%; width: 96%;
margin: 12px 2% 0px 2%; margin: 12px 2% 0px 2%;
padding: 4px 2% 0px 2%; padding: 18px 2% 0px 2%;
display: flex; display: flex;
float: left; float: left;
flex-direction: row; flex-direction: row;
@@ -1550,7 +1551,7 @@
.popup .amenity .order .winleft>.summary>#label{ .popup .amenity .order .winleft>.summary>#label{
line-height: 65px; line-height: 40px;
width: 50%; width: 50%;
height: 100px; height: 100px;
font-size: 48px; font-size: 48px;
@@ -1558,7 +1559,7 @@
} }
.popup .amenity .order .winleft>.summary>#value{ .popup .amenity .order .winleft>.summary>#value{
line-height: 65px; line-height: 40px;
width: 50%; width: 50%;
height: 100%; height: 100%;
font-size: 52px; font-size: 52px;
@@ -1714,7 +1715,7 @@
} }
.popup .roomservice .bg .rs_item_sel_win .winleft>.tbl_record tbody { .popup .roomservice .bg .rs_item_sel_win .winleft>.tbl_record tbody {
/* height: 285px; */ height: 670px;
overflow-y: auto; overflow-y: auto;
display: block; display: block;
} }
@@ -1978,7 +1979,7 @@
line-height: 137px; line-height: 137px;
width: 50%; width: 50%;
height: 60%; height: 60%;
font-size: 52px; font-size: 40px;
text-align: center; text-align: center;
color: rgba(218,165,32,1.0); color: rgba(218,165,32,1.0);
background-image: url(./images/quantity_edit_arrow.png); background-image: url(./images/quantity_edit_arrow.png);
@@ -1999,7 +2000,7 @@
line-height: 91px; line-height: 91px;
width: 50%; width: 50%;
height: 40%; height: 40%;
font-size: 52px; font-size: 40px;
text-align: center; text-align: center;
color: rgba(218,165,32,1.0); color: rgba(218,165,32,1.0);
} }
@@ -2042,7 +2043,7 @@
padding: 0px 30px 0px 30px; padding: 0px 30px 0px 30px;
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
font-size: 32px; font-size: 38px;
color: rgba(51,51,51,1.0); color: rgba(51,51,51,1.0);
} }
@@ -2440,8 +2441,9 @@
width: 100%; width: 100%;
height: 132px; height: 132px;
margin: 0; margin: 0;
padding: 0px 20px 0px 20px; padding: 0px 20px 0px 48px;
color: rgb(245,245,245); /* color: rgb(245,245,245); */
color: rgb(181, 218, 16);
line-height: 32px; line-height: 32px;
font-size: 32px; font-size: 32px;
z-index: 1; z-index: 1;

View File

@@ -7,7 +7,6 @@
<link rel="stylesheet" href="/procentric/application/css/owlcarousel/owl.theme.default.min.css"> <link rel="stylesheet" href="/procentric/application/css/owlcarousel/owl.theme.default.min.css">
<link rel="stylesheet" href="/procentric/application/theme/hoteltv.ui_utils.css"> <link rel="stylesheet" href="/procentric/application/theme/hoteltv.ui_utils.css">
<link rel="stylesheet" href="/procentric/application/theme/hoteltv.error.css"> <link rel="stylesheet" href="/procentric/application/theme/hoteltv.error.css">
<!-- <link rel="stylesheet" href="hoteltv.welcome.css"> -->
<title>CENTIRM LG-PROCENTRIC HOTEL SERVICE</title> <title>CENTIRM LG-PROCENTRIC HOTEL SERVICE</title>
</head> </head>