let lang = 'ko'; const onClickNoSupportIE = function checkInternetExplorer(url) { if (!url) { alert('리포트 서비스 준비중입니다.'); return; } const agent = navigator.userAgent.toLowerCase(); if (agent.indexOf('trident') > -1) { alert('선택하신 리포트는 Internet Explorer를 지원하지 않습니다. Chrome 혹은 Edge 브라우저를 사용해주세요.'); } else { window.open(url); } } const onClickOpenPinogioStudioPage = function openPinogioStudioPage() { window.open(PINOGIO_STUDIO_URL); } const onClickOpenBoardPage = function openAnonymousBoardPage() { window.open('/interactive/board/list'); } const onClickOpenOSSPage = function openOpenSourceSoftwarePage() { window.open('/interactive/oss/notice'); } const onClickOpenEmailPage = function onClickOpenEmailPage() { window.open('https://www.krihs.re.kr/menu.es?mid=a11602000000'); } const onClickOpenCopyrightPage = function onClickOpenCopyrightPage() { window.open('https://www.krihs.re.kr/menu.es?mid=a11603000000'); } function getCookie (name) { const matches = document.cookie.match(new RegExp( '(?:^|; )' + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\$1') + '=([^;]*)' )); return matches ? decodeURIComponent(matches[1]) : undefined; }; function setCookie (name, value, option) { const options = { path: '/', ...option }; if (options.expires instanceof Date) { options.expires = options.expires.toUTCString(); } let updatedCookie = `${encodeURIComponent(name)}=${encodeURIComponent(value)}`; for (const optionKey in options) { updatedCookie += `;${optionKey}`; const optionValue = options[optionKey]; if (optionValue !== true) { updatedCookie += `=${optionValue}`; } } document.cookie = updatedCookie; }; const onClickChangeI18n = () => { const targetLang = lang === 'ko' ? 'en' : 'ko'; setCookie('_store_locale', targetLang); location.href = location.origin + '/interactive/?lang=' + targetLang; }; if (matchMedia("screen and (min-width: 1601px)").matches) { $(document).ready(function () { //각각의 section에서 마우스를 움직이면 //function안의 (event)매개변수불러옴 $(".ContentWrap").on("mousemove", function (e) { //변수 posX에 마우스 커서의 X축 위치 저장 var posX = e.pageX; //변수 posY에 마우스 커서의 Y축 위치 저장 var posY = e.pageY; //첫번째 박스의 이미지 위치값을 마우스 커서의 위치값과 연동 $(".GisBg").css({ "left": 40 - (posX / 30), "top": 20 - (posY / 30) }); $(".GisBgS").css({ "right": 40 - (posX / 30), "bottom": 20 - (posY / 30) }); }); }); } $(document).ready(function () { //새로고침 상단으로 이동 $("html, body").animate({ scrollTop: 0 }, "slow"); });