From a47f1ab0619b0b72ba9995d7c66ee72d8495209d Mon Sep 17 00:00:00 2001 From: com02 Date: Thu, 2 Dec 2021 14:54:06 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A0=91=EA=B7=BC=EC=84=B1=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/jsp/nlib/cmm/home.jsp | 14 ++++++++++++++ src/main/webapp/js/default.js | 15 --------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/nlib/cmm/home.jsp b/src/main/webapp/WEB-INF/jsp/nlib/cmm/home.jsp index 0d026391..e77dfeee 100644 --- a/src/main/webapp/WEB-INF/jsp/nlib/cmm/home.jsp +++ b/src/main/webapp/WEB-INF/jsp/nlib/cmm/home.jsp @@ -87,6 +87,20 @@ function fn_listPops(typeDivCd) { $("#listPops_" + typeDivCd).show(); } + +// 접근성 +$("#searchHeaderButton").focus(function(){ + $('.skip-nav').show(); + $('.skip-nav a:nth-of-type(1)').focus(); +}); +$('.skip-nav a:nth-of-type(4)').focusout(function(){ + $('.skip-nav').hide(); +}); +$(".skip-nav a").keydown(function (e) { + if (e.keyCode == 13) { + $('.skip-nav').hide(); + } +}); diff --git a/src/main/webapp/js/default.js b/src/main/webapp/js/default.js index 4bcc717e..f497532a 100644 --- a/src/main/webapp/js/default.js +++ b/src/main/webapp/js/default.js @@ -24,21 +24,6 @@ $(document).ready(function(){ $('.location .inner .row-top .arr img').attr('alt',''); $('.map .inner .info-box .info-sec .text-box > div span:nth-of-type(1) em.next').append('다음'); - $("#searchHeaderButton").focus(function(){ - $('.skip-nav').show(); - $('.skip-nav a:nth-of-type(1)').focus(); - }); - - $('.skip-nav a:nth-of-type(4)').focusout(function(){ - $('.skip-nav').hide(); - }); - $(".skip-nav a").keydown(function (e) { - if (e.keyCode == 13) { - $('.skip-nav').hide(); - } - }); - - /* 인기자료 탭메뉴 */ (function ($) { $(".tab ul.tabs").addClass("active").find("> li:eq(0)").addClass("current");