/***************************************************************** * * SGRSOFT Developer : now17 * Date : 2021/08/28 * Description : LS-23 라이브24 설치형 자바스트립트 * *****************************************************************/ var l24; var l24InstallTimer; var l24LoginTimer; var l24LoginPageUrl; var l24IsMainPage; var l24SelfLogin; //실행 핸들러 sessionStorage.removeItem('isFullscreen'); l24 = { init_start:false, start(options){ //메인페이지인지 여부 확인 if(location.pathname.indexOf('index.php') > -1 || location.pathname.indexOf('index.html') > -1 || location.pathname.indexOf('/w/app/demo') > -1 || location.pathname == '/' ){ l24IsMainPage = true; }else{ l24IsMainPage = false; } try{ l24Cloud.start(options); this.init_start = true; //공유하기시 자동으로 마이크로 화면 띄우기 if(location.hash.substring(1,4) == 'sgr'){ var hash_url = location.hash.replace('#sgr',''); var hash_split = location.hash.split("/"); if(hash_split[1] == 'main'){ if(!l24Cloud.v_frame){ l24Cloud.v_frame = true; } } if(hash_split[1] == 'live'){ if(!l24Cloud.v_frame){ l24Cloud.v_frame = true; l24Cloud.link_url = hash_url; } } } clearTimeout(l24InstallTimer); }catch(e){ l24InstallTimer = setTimeout(()=>{ this.start(options); },200); } }, login(user_data){ //로그인 페이지 l24SelfLogin = true; l24LoginPageUrl = user_data.loginPageUrl; try{ l24Cloud.login(user_data); clearTimeout(l24LoginTimer); }catch(e){ l24LoginTimer = setTimeout(()=>{ this.login(user_data); },200); } }, setLocalUserid(user_id){ if(user_id){ sessionStorage.setItem('L24_TMP_USERID', user_id); } }, /***************************************************************** * * SGRSOFT Developer : now17 * Date : 2021/09/29 * Description : 위젯 오픈 * *****************************************************************/ open(){ try{ l24Cloud.v_frame = true; }catch(e){ } }, fullscreen_open(){ try{ l24Cloud.is_go_live = true; l24Cloud.v_frame = true; l24Cloud.pop_action = true; l24Cloud.fullscreenToggle(); setTimeout(()=>{ document.getElementById('live24Ifr').contentWindow.postMessage({ 'action': 'emitCallback', 'fn': 'fullscreenToggle', 'value':true, }, "*"); },1500); }catch(e){ } }, }; //라이브러리 로드 (function() { var ul = 'https://finlandia.live24.app'; function l() { if (w.Live24Initialized) { return; } w.Live24Initialized = true; var d = document.createElement("div"); d.id = 'live24_app'; document.body.insertBefore(d, x); var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; /**/ s.src = ul+'/st/load/live24btn.js'; /**/ s.charset = 'UTF-8'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); var s = document.createElement('link'); s.rel = 'stylesheet'; s.href = ul+'/st/load/live24btn.css'; var x = document.getElementsByTagName('link')[0]; x.parentNode.insertBefore(s, x); } var w = window; if (w.Live24IO) { return (window.console.error || window.console.log || function(){})('Live24IO script included twice.'); } var l24 = function() { l24.c(arguments); }; l24.q = []; l24.c = function(args) { l24.q.push(args); }; l24.start = function(args) { console.log(args) }; w.Live24IO = l24; if (document.readyState === 'complete') { l(); } else if (window.attachEvent) { window.attachEvent('onload', l); } else { window.addEventListener('DOMContentLoaded', l, false); window.addEventListener('load', l, false); } })(); Live24IO('boot', { "site_key": "d68914f415af4f42671be785341a32ae", }); window.l24UserNo = '2213815';