접근성 수정

This commit is contained in:
com02 2021-12-02 14:56:02 +09:00
parent a47f1ab061
commit 87867dfe3f

View File

@ -18,6 +18,19 @@ $(document).ready(function() {
var unreadNotiCnt = $(".noti-btn span.count").text(); var unreadNotiCnt = $(".noti-btn span.count").text();
gfn_myAlert(unreadNotiCnt); 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(); $("#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> </script>
<!-- 섹션1 --> <!-- 섹션1 -->