window.addEventListener('load', function(){ // setMobileVh(); // Main Swiper let mainSlide = new Swiper('.sec .swiper-container', { effect: 'fade', fadeEffect: { crossFade: true }, autoplay: { delay: 6500, disableOnInteraction: false, }, speed: 1000, loop: true, loopAdditionalSlides :1, }); // 메인비주얼영상 jQuery(function () { jQuery('#background').YTPlayer(); }); },false); function setCookie(key, value, expiredays) { var todayDate = new Date(); todayDate.setDate(todayDate.getDate() + expiredays); document.cookie = key + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";" } function getCookie(key) { var result = null; var cookie = document.cookie.split(';'); cookie.some(function (item) { // 공백을 제거 item = item.replace(' ', ''); var dic = item.split('='); if (key === dic[0]) { result = dic[1]; return true; // break; } }); return result; } /* Popup Event */ function popupClose(seq){ // var popupLayer = document.querySelector('.popup-layer'); // console.log(popupLayer); var value = $('#popup-close_'+seq).val(); setCookie(seq,value,1); $("#popup_"+seq).hide(); } /* Popup Event */ function popupClose2(seq){ // var popupLayer = document.querySelector('.popup-layer'); // console.log(popupLayer); $("#popup_"+seq).hide(); }