From 87867dfe3f2cf8d2d211823bd569339a4dae5bea Mon Sep 17 00:00:00 2001 From: com02 Date: Thu, 2 Dec 2021 14:56:02 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A0=91=EA=B7=BC=EC=84=B1=20=EC=88=98?= =?UTF-8?q?=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 | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 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 e77dfeee..7a318cc3 100644 --- a/src/main/webapp/WEB-INF/jsp/nlib/cmm/home.jsp +++ b/src/main/webapp/WEB-INF/jsp/nlib/cmm/home.jsp @@ -18,6 +18,19 @@ $(document).ready(function() { var unreadNotiCnt = $(".noti-btn span.count").text(); gfn_myAlert(unreadNotiCnt); + // 접근성 + $("#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(); + } + }); }); @@ -87,20 +100,6 @@ 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(); - } -});