접근성수정

This commit is contained in:
com02 2021-12-02 14:54:06 +09:00
parent b4594c991d
commit a47f1ab061
2 changed files with 14 additions and 15 deletions

View File

@ -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();
}
});
</script>
<!-- 섹션1 -->

View File

@ -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('<span class="ir">다음</span>');
$("#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");