/***************************************************************** * * SGRSOFT Developer : now17 * Date : 2021/10/21 * Description : 인앱 실행 * *****************************************************************/ var ifheightdks = 0; var c24_host = "gf0414gf"; window.addEventListener("message", function (e) { var liveframe = document.getElementById("livepage_ifr"); if (!liveframe) return; if (e.data.scrollHeight > liveframe.height) { liveframe.height = e.data.scrollHeight + 30; } if (e.data.action === "go_c24_href_top") { top.location.href = e.data.go_url; } }); function resizeLive24Page() { var iframe = document.getElementById("livepage_ifr").contentWindow; iframe.postMessage({ action: "resize_height" }, "*"); } var is_mobile = ""; setTimeout(() => { $("#header").css("margin-bottom", "0px"); if ($("#live24_page")[0]) { if (location.host.substring(0, 2) == "m.") { //뷰포트 고정 var $viewport = $('head meta[name="viewport"]'); $viewport.attr( "content", "width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=yes" ); is_mobile = "Y"; } var mwidth = $("#contents").width(); //var live_ifr_tag = ''; var live_ifr_tag = ''; try { if (fullsizepage) { $("#live24_page").html(live_ifr_tag).css("max-width", "100%").width("100%").css("float", "none"); $("#live24_page").parent().css("max-width", "100%").width("100%").css("float", "none"); } else { $("#live24_page").html(live_ifr_tag).css("max-width", "100%").width("100%"); } } catch (e) { $("#live24_page").html(live_ifr_tag).css("max-width", "100%").width("100%").css("float", "none"); $("#live24_page").parent().css("max-width", "100%").width("100%").css("float", "none"); } try { if (fullsizepage) { $("#wrap").css("max-width", "100%").width("100%"); $("#container").css("max-width", "100%").width("100%").css("float", "none"); $("#contents").css("max-width", "100%").width("100%").css("float", "none"); } } catch (e) {} } else { if ($("#contents").html() || $("#wrap").html()) { if (location.host.substring(0, 2) == "m.") { is_mobile = "Y"; //뷰포트 고정 var $viewport = $('head meta[name="viewport"]'); $viewport.attr( "content", "width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=yes" ); //var live_ifr_tag = '
'; var live_ifr_tag = '
'; $("#contents").html(live_ifr_tag); } else { var mwidth = $("#contents").width(); //var live_ifr_tag = '
'; var live_ifr_tag = '
'; try { if (fullsizepage) { $("#wrap").html(live_ifr_tag).css("max-width", "100%").width("100%"); $("#contents").css("max-width", "100%").width("100%").css("float", "none"); } else { $("#wrap").html(live_ifr_tag); } } catch (e) { $("#wrap").html(live_ifr_tag).css("max-width", "100%").width("100%"); $("#contents").css("max-width", "100%").width("100%").css("float", "none"); } } } } setTimeout(() => { resizeLive24Page(); }, 1000); setTimeout(() => { resizeLive24Page(); }, 3000); setTimeout(() => { resizeLive24Page(); }, 5000); window.addEventListener("scroll", () => { resizeLive24Page(); }); }, 1000); console.log( "%c SGRSOFT %c LIVE24 %c In Page App !! ", "background-color:red; color:#ffffff; font-size:13px;", "background-color:#000000; color:#ffffff; font-size:13px;", "background-color:#ea0064; color:#ffffff; font-size:13px;" );