PageSourceSearch

https://www.lge.co.kr/lg5-common/js/app.common.min.js

js lge.co.kr collected 2026-09-24 08:35:25 UTC 11,919 bytes, 2 lines download raw bytes

1if(null==appInit||null==appInit){var LGEcomfirmAPPInstall,LGEquickMenuPosCover,LGEquickMenuPosPush,LGEAPPcomfirmAPPOpen,LGEAPPalarmCount,receiptCodeDirectReturn,receiptCodeDirectInput,LGEAPPHostName=window.location.hostname,LGEAPPclickCNT=0,isMyPage=!1,appInit=function(){var e=navigator.userAgent;if("cmsdev50.lge.co.kr"!=LGEAPPHostName&&"cms50.lge.co.kr"!=LGEAPPHostName){if(isApp()&&window.innerWidth<768){if($(".mapExclusive").addClass("active"),$(".mapExclusiveDss").hide(),$(".mypage-main-new .app-only").css("display","inline-block"),$(".app-settings-button").off("click").on("click",(function(e){openAppSet()})),$(".my-dep2.app-only").length>0&&$(".my-dep2.app-only").attr("href","#").off("click").on("click",(function(e){e.preventDefault(),openAppSet_direct()})),$(".subRenewMainWrap .KRP0032,.subRenewMainWrap .quick-menu-list,.subRenewMainWrap .easy-path").remove(),$(".mod-link").each((function(){this.href=this.href.replace("changeInfo.do","changeInfo_app.do")})),$(".subRenewMainWrap .btn-app-ar").length>0)return;if(($(".subRenewMainWrap").length>0||$(".signature-main").length>0||$(".thinq-main").length>0)&&(-1!=e.indexOf("LGEAPP-in")?$(".subRenewMainWrap .floating-wrap").addClass("app-LGEAPP-in"):-1!=e.indexOf("LGEAPP-io")?$(".subRenewMainWrap .floating-wrap").addClass("app-LGEAPP-io"):-1!=e.indexOf("LGEAPP")&&$(".subRenewMainWrap .floating-wrap").addClass("app-LGEAPP"),LGEquickMenuPosCover=function(e){"Y"==e?$(".subRenewMainWrap .floating-wrap").removeClass("app-chng-push-pos").addClass("app-chng-pos"):$(".subRenewMainWrap .floating-wrap").removeClass("app-chng-push-pos").removeClass("app-chng-pos")},LGEquickMenuPosPush=function(e){$(".subRenewMainWrap .floating-wrap").removeClass("app-chng-pos").addClass("app-chng-push-pos")}),/iPhone|iPad|iPod/i.test(e)){var t=new Object;t.command="getUncheckedPushCount",t.callback="LGEAPPalarmCount";var o=JSON.stringify(t);webkit.messageHandlers.callbackHandler.postMessage(o)}else/Android/i.test(e)&&android.hasOwnProperty("getUncheckedPushCount")&&android.getUncheckedPushCount("LGEAPPalarmCount");$(".app-alarm-button").on({click:function(){if(/iPhone|iPad|iPod/i.test(e)){var t=new Object;t.command="openPushBox";var o=JSON.stringify(t);webkit.messageHandlers.callbackHandler.postMessage(o)}else/Android/i.test(e)&&android.openPushBox()}}),$(".section--ar").find("a").on("click",(function(e){if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){var t=new Object;t.command="showAR";var o=JSON.stringify(t);webkit.messageHandlers.callbackHandler.postMessage(o)}else android.openAR(null)}))}receiptCodeDirectReturn=function(e){if(null!=e&&""!=e&&null!=e){var t=e.split("/").join("");if(function(e){var t=e.length>=10,o=[],n=[],i=[/^[0-9]+$/,/^[a-zA-Z0-9]+$/,/^[0-9]+$/];return o[0]=e.slice(0,3),o[1]=e.slice(3,14),o[2]=e.slice(14,18),o.forEach((function(e,t){""!=e&&n.push(i[t].test(e))})),!(!t||-1!=n.indexOf(!1))}(t)){var o="EMRT"==$("#categorySelect").val()?t.slice(0,16):t.slice(0,22);$("#receiptCodeInputWrap").find(".err-block").hide().find(".err-msg").text(""),$("#inputReceipt").val(o
1),$("#receiptCodeInputWrap").show(),$("#inquiryButton").focus()}else $("#receiptCodeInputWrap").find(".err-block").show().find(".err-msg").text("바코드 형식이 잘못되었습니다."),$("#receiptCodeInputWrap").show()}},receiptCodeDirectInput=function(){$("#receiptCodeInputWrap").show(),$("#inputReceipt").val("").focus()},LGEcomfirmAPPInstall=function(){goAppUrl()},LGEAPPalarmCount=function(e){var t=e||0;"number"!=typeof e&&(t=/^\d+$/.test(e)?Number(e):0);var o=$(".app-alarm-button .app-alarm-count");o.length>0&&(o.removeClass("active"),t>0&&o.addClass("active"),o.html(t>99?"99+":t))}}};function ChatbotAppClose(e){if(isApp())if(vcui.detect.isIOS){var t=JSON.stringify({command:"closeInAppBrowser"});webkit.messageHandlers.callbackHandler.postMessage(t)}else android.closeNewWebview();else"native"==e?history.back():historyBack()}function getAppOption(){callNativeIos("getDevicePushState","ACTIVITY",null,"setItemIosPushAlarm"),callNativeIos("getSettingOptions","ACTIVITY",null,"setItemIosValue"),callNativeIos("isUseSettingGps","ACTIVITY",null,"setIsUseSettingGps")}function callNativeIos(e,t,o,n){var i=new Object;i.command=e,null!=t&&(i.key=t),null!=n&&(i.callback=n),null!=o&&(i.value=o);var a=JSON.stringify(i);webkit.messageHandlers.callbackHandler.postMessage(a)}function setItemIosPushAlarm(e){localStorage.setItem("setIosPushAlarm",e)}function setItemIosValue(e){localStorage.setItem("setIosValue",e)}function setIsUseSettingGps(e){localStorage.setItem("isUseSettingGps",e)}function phoneSettingReturn(){$("#viewDotJspCall")[0].contentWindow.phoneSettingReturnChild()}function callBackLoginCheck(){isApp()&&(null!=window.location.search&&null!=window.location.search&&""!=window.location.search&&window.location.href.indexOf("cbf=appset")>-1&&(historyBackTotalMenuOpen(),$(".subRenewWrap").addClass("isHide"),openAppSet(),history.replaceState(null,"LG 전자",appSettingLoginReturnUrlCheck())))}function appSettingLoginReturnUrlCheck(){var e=window.location.href,t="";return e.indexOf("&cbf=appset")>-1?t=e.replace("&cbf=appset",""):e.indexOf("?cbf=appset")>-1&&(t=e.replace("?cbf=appset","")),t}function appSettingLoginCall(e){null!=window.location.search&&null!=window.location.search&&""!=window.location.search?location.href=e+"?state="+encodeURIComponent(window.location.pathname+window.location.search+"&cbf=appset"):location.href=e+"?state="+encodeURIComponent(window.location.pathname+"?cbf=appset")}$(document).ready((function(){!!$("#sw_con").length&&isApp()?$(document).one("appInit",appInit):appInit(),initAppSet(),callBackLoginCheck(),setIOSToTalMenuBottomBar()}));var isB2B=window.isB2B;function initAppSet(){isApp(),vcui.detect.isAndroid;var e=$(".mobile-nav-button");e.on("click",(function(t){setTimeout((function(){e.hasClass("active")?($(window).trigger("mo_total_menu_acc"),openB2BAppBar()):$(window).trigger("mo_total_menu_acc")}))}))}function focusAppSet(){"Y"==(digitalData.hasOwnProperty("userInfo")&&digitalData.userInfo.unifyId?"Y":"N")?$("#viewDotJspCall").contents().find(".btn-opt-login").focus():$("#viewDotJspCall").contents().find(".btn-link.btn-ctrl-panel").focus()}function appSetIframeload(e){"loaded"==e?setTimeout((function(){focusAppSet()}),400):focusAppSet(),setTimeout((function(){lgkorUI.hideLoading(),vcui.detect.isAndroid?(historyBackTotalMenuClose(),lgkorUI.addHistoryBack("openTotalmenu",(function(){closeAppSet()}))):vcui.detect.isIOS&&history.pushState({data:"openMeun"},null,null),$(window).trigger("open_app_set")}),300)}function logoutAppSet(){location.href="/mobile-app/option/Logout"}function closeAppSet(){$(".subRenewWrap").attr("aria-hidden",!1),isMyPage?closeAppSet_direct():($("#appSettings").hide(),lgkorUI.setEnableAppScrollBottomMenu(!0),lgkorUI.showAppBottomMenu(!0),vcui.detect.isAndroid?(lgkorUI.removeHistoryBack("openTotalmenu"),setTimeout((function(){historyBackTotalMenuOpen()}),100)):vcui.detect.isIOS&&history.back())}function openAppSet(){if($(".subRenewWrap").attr("aria-hidden",!0),lgkorUI.setEnableAppScrollBottomMenu(!1),lgkorUI.showAppBottomMenu(!1),0==$("#appSettings").length){lgkorUI.showLoading();'<iframe id="viewDotJspCall" onload="appSetIframeload(\'loaded\')" src="/mobile-app/option" frameborder="0" width="100%" height="100%" marginwidth="0" marginheight="0"></iframe>',"</div>
1",$("body").append('<div id="appSettings" style="z-index:99998;position:fixed;top:0;left:0;width:100%;height:100%;"><iframe id="viewDotJspCall" onload="appSetIframeload(\'loaded\')" src="/mobile-app/option" frameborder="0" width="100%" height="100%" marginwidth="0" marginheight="0"></iframe></div>')}else setTimeout((function(){appSetIframeload()}),300);$("#appSettings").show()}function historyBackTotalMenuClose(){$("html").removeClass("scroll-fixed"),$("body").removeClass("scroll-lock"),$(".mobile-nav-button").removeClass("active").removeClass("done"),$(".header-wrap .dimmed").hide(),$(".list-item.nav-anchor").removeClass("on"),$(".list-item.home").addClass("on")}function historyBackTotalMenuOpen(){$("html").addClass("scroll-fixed"),$("body").addClass("scroll-lock"),$(".mobile-nav-button").addClass("active").addClass("done"),$(".header-wrap .dimmed").show(),$(".list-item.nav-anchor").addClass("on"),$(".list-item.home").removeClass("on")}function openAppSet_direct(){if(isMyPage=!0,0==$("#appSettings").length){lgkorUI.showLoading();'<iframe onload="appSetIframeload_direct()" src="/mobile-app/option" frameborder="0" width="100%" height="100%" marginwidth="0" marginheight="0"></iframe>',"</div>",$("body").append('<div id="appSettings" style="z-index:99998;position:fixed;top:0;left:0;width:100%;height:100%;"><iframe onload="appSetIframeload_direct()" src="/mobile-app/option" frameborder="0" width="100%" height="100%" marginwidth="0" marginheight="0"></iframe></div>')}else setTimeout((function(){appSetIframeload_direct()}),300);$("#appSettings").show()}function appSetIframeload_direct(){lgkorUI.setEnableAppScrollBottomMenu(!1),lgkorUI.showAppBottomMenu(!1),setTimeout((function(){lgkorUI.hideLoading(),vcui.detect.isAndroid?($("html").addClass("scroll-fixed"),$("body").addClass("scroll-lock"),lgkorUI.addHistoryBack("openTotalmenu",(function(){closeAppSet_direct()}))):vcui.detect.isIOS&&(history.pushState({data:"myPage"}
1,null,null),history.pushState({data:"openMeun"},null,null))}),300)}function closeAppSet_direct(){$("#appSettings").hide(),lgkorUI.setEnableAppScrollBottomMenu(!0),lgkorUI.showAppBottomMenu(!0),vcui.detect.isAndroid?(lgkorUI.removeHistoryBack("openTotalmenu"),setTimeout((function(){$("html").removeClass("scroll-fixed"),$("body").removeClass("scroll-lock")}),100)):vcui.detect.isIOS&&history.back(),isMyPage=!1}function openB2BAppBar(){isB2B&&isApp()&&(vcui.detect.isIOS?(lgkorUI.showAppBottomMenuOver(!1),lgkorUI.showAppBottomMenu(!1),setTimeout((function(){lgkorUI.showAppBottomMenuOver(!1),lgkorUI.showAppBottomMenu(!1)}),20)):vcui.detect.isAndroid&&(lgkorUI.showAppBottomMenu(!1),lgkorUI.setEnableAppScrollBottomMenu(!1)))}function closeB2BAppBar(){isB2B&&isApp()&&(vcui.detect.isIOS||vcui.detect.isAndroid&&lgkorUI.setEnableAppScrollBottomMenu(!0))}function setIOSToTalMenuBottomBar(){if(isApp()){var e=$(".mobile-nav-button");if(vcui.detect.isIOS){if(isB2B)return;if(1==$(".KRP0008").length||1==$(".officehome").length)return;var t=0,o="null",n=!1,i=null,a=null;$(".header-bottom.header-new").off("scroll").on("scroll",(function(){if(1!=n){if($(this)[0].scrollTop<0&&(n=!0,clearTimeout(i),i=setTimeout((function(){t=$(this).scrollTop(),n=!1}),800)),$(this)[0].scrollTop>$(this)[0].scrollHeight-$(this)[0].clientHeight&&(n=!0,clearTimeout(a),a=setTimeout((function(){t=$(this).scrollTop(),n=!1}),800)),e.hasClass("active"))t-$(this).scrollTop()<0?(!1!==o&&lgkorUI.showAppBottomMenuOver(!1),o=!1):(!0!==o&&lgkorUI.showAppBottomMenuOver(!0),o=!0);t=$(this).scrollTop()}}))}}}window.addEventListener("pageshow",(function(e){(e.persisted||window.performance&&2==window.performance.navigation.type)&&($(".mobile-nav-button").hasClass("active")?openB2BAppBar():$(window).trigger("DOMContentLoaded_setAppBottomBar"))})),window.addEventListener("popstate",(function(e){if(isApp()&&e.state){var t=e.state.data;".history-back-header_1"==t||".history-back-header_2"==t||".history-back-header_3"==t||".history-back-header_4"==t?setTimeout((function(){if(vcui.detect.isAndroid&&0==$("body").hasClass("scroll-lock")&&(android.closeMenu(),closeB2BAppBar()),vcui.detect.isIOS&&0==$("body").hasClass("scroll-lock")){var e=JSON.stringify({command:"closeMenu"});webkit.messageHandlers.callbackHandler.postMessage(e)}}),1e3):".history-back-header_1-open"!=t&&".history-back-header_2-open"!=t&&".history-back-header_3-open"!=t&&".history-back-header_4-open"!=t||($("#appSettings").hide(),lgkorUI.setEnableAppScrollBottomMenu(!0),lgkorUI.showAppBottomMenu(!0)),"myPage"==t&&closeAppSet_direct()}}))}
2//# sourceMappingURL=maps/app.common.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.