function goSite(obj, frm) { frm.action = obj.value; frm.submit(); } // layout 팝업 컨트롤 function LayoutShow(showpop) { var objDiv = document.getElementById(showpop); if (objDiv.style.display == "block") { objDiv.style.display = "none"; } else { objDiv.style.display = "block"; } } function footerShow(showpop) { jQuery("#footer_link_box").children().each(function() { if (jQuery(this).children().filter("div").first().attr("id") == showpop) { if (jQuery(this).children().filter("div").first().css("display") == "none") { jQuery(this).children().filter("div").first().show(); } else { jQuery(this).children().filter("div").first().hide(); } } else { jQuery(this).children().filter("div").first().hide(); } }); } function goPopup(url, w, h, l, t, ScrollbarsYn, name) { if (ScrollbarsYn == 'Y') { ScrollbarsYn = "yes"; } else { ScrollbarsYn = "no"; } var x = (screen.availWidth - w) / 2; var y = (screen.availHeight - h) / 2; window.open(url, name, 'width=' + w + ', height=' + h + ', left=' + x + ', top=' + y + ', location=no ,scrollbars=' + ScrollbarsYn); } function goPopup2(url, w, h, l, t, ScrollbarsYn, resizable, name) { if (ScrollbarsYn == 'Y') { ScrollbarsYn = "yes"; } else { ScrollbarsYn = "no"; } var x = (screen.availWidth - w) / 2; var y = (screen.availHeight - h) / 2; window.open(url, name, 'width=' + w + ', height=' + h + ', left=' + x + ', top=' + y + ', resizable=' + resizable + ', location=no ,scrollbars=' + ScrollbarsYn); } function goFileOld(file, path) { window.open(yh.contextPath + '/download' + path + "/" + encodeURIComponent(file)); } function goFile(filename, path) { // window.open('/file/direct/download.do?path=' + path + "&filename=" + encodeURIComponent(file)); var $form = $('#fileDirectDownloadForm'); $form.find('[name=filename]').val(filename); $form.find('[name=path]').val(path); document.fileDirectDownloadForm.submit(); } function goViewer(filename, path) { var $form = $('#fileDirectViewerForm'); $form.find('[name=filename]').val(filename); $form.find('[name=path]').val(path); document.fileDirectViewerForm.submit(); } // 사이트별팝업창 쿠키값 get 스크립트 function getCookie(name) { var nameOfCookie = name + "="; var x = 0; while (x <= document.cookie.length) { var y = (x + nameOfCookie.length); if (document.cookie.substring(x, y) == nameOfCookie) { if ((endOfCookie = document.cookie.indexOf(";", y)) == -1) endOfCookie = document.cookie.length; return unescape(document.cookie.substring(y, endOfCookie)); } x = document.cookie.indexOf(" ", x) + 1; if (x == 0) break; } return ""; } function openWindow(url, lecName) { window.open(url, lecName, "width=800,height=600,resizable=yes,menubar=no,scrollbars=yes"); } function openWindow2(url, lecName) { window.open(url, lecName, "width=1014,height=650,resizable=yes,menubar=no,scrollbars=yes"); } /** * 오직 숫자만 입력이 가능함. * @param loc * @return */ function onlyNumber2(loc) { if (/[^0123456789]/g.test(loc.value)) { alert("숫자 이외의 문자는 입력할 수 없습니다."); loc.value = ""; loc.focus(); } } // scrollTop 버튼 $(window).scroll(function() { if ($(this).scrollTop() > 200) { $('.btn_scroll_top').fadeIn(); } else { $('.btn_scroll_top').fadeOut(); } }); $('.btn_scroll_top').click(function() { $('html, body').animate({ scrollTop: 0 }, 400); return false; }); $(document).ready(function () { $('[data-logout-btn]').click(function () { $.ajax({ url: yh.contextPath + '/logout' }); location.reload(true); return false; }); /* news box */ /*KMH 20250730 브라우저에러로 계속 나와 주석 var $fbanner = $('.banner_list'); var slideCount = null; $fbanner.slick({ slidesToShow:7, slidesToScroll: 1, speed: 800, arrows: false, autoplaySpeed: 1000, autoplay:true, dots: false, centerMode: false, focusOnSelect: true, variableWidth: true // responsive: [ // {breakpoint: 1400, settings: {slidesToShow:5}}, // {breakpoint: 740, settings: {slidesToShow:3}} // ] }); $('.fbanner .controll > .start-slide').hide(); $('.fbanner .controll > .stop-slide').on('click', function() { $('.fbanner .controll > .start-slide').show(); $(this).hide(); $('.fbanner .controll').find('.start-slide').focus(); $fbanner.slick('slickPause'); }); $('.fbanner .controll > .start-slide').on('click', function() { $('.fbanner .controll > .stop-slide').show(); $(this).hide(); $('.fbanner .controll').find('.stop-slide').focus(); $fbanner.slick('slickPlay'); }); $('.fbanner .controll > .prev-slide').on('click', function() { $fbanner.slick('slickPrev'); }); $('.fbanner .controll > .next-slide').on('click', function() { $fbanner.slick('slickNext'); }); */ /* news box */ var familySite = false; $('#f-family').find('ul.list').each(function(){ $(this).find('.mn_f1').click(function () { if(familySite = true && $(this).parent('li').hasClass('over')){ $(this).parent('li').removeClass('over'); $(this).parent('li').find('.list-wrap').slideUp(); familySite = false; }else{ $(this).parent('li').addClass('over'); $(this).parent('li').find('.list-wrap').slideDown(); $(this).parent('li').siblings('li').removeClass('over'); $(this).parent('li').siblings('li').find('.list-wrap').slideUp(); familySite = true; } }); $(this).find('.close').click(function () { $(this).parent('div').slideUp(); $(this).parent('div').parent('li').removeClass('over'); $(this).parent('div').parent('li').find('.mn_f1').focus(); familySite = false; }); }); $('.tab_depth04 .depth2_button').click(function(){ $(".tab_depth04 > ul").toggleClass('on'); }); });