fix error

This commit is contained in:
rulingcom 2022-01-22 10:47:06 +00:00
parent 5d02b6abc0
commit ea4e198d2e
1 changed files with 10 additions and 7 deletions

View File

@ -718,12 +718,10 @@ function transdate(){
// 當文件物件模型(DOM)載入後執行init函數
$(document).ready(function() {
$(document).on('keydown',function(event){
var keyCode = event.which ? event.which : event.keyCode;
if($(document.activeElement==document.body) && keyCode==9){
if (!$('header>.kenjohn').hasClass('navFixed')){
$('header>.kenjohn').addClass('navRel');
}
$(document).on('focus','*',function(){
if ($('header>.kenjohn').attr('class') == "kenjohn"){
$('header>.kenjohn').addClass('navRel');
$('#gotocenter').focus();
}
});
$('.group').each(function(){
@ -897,7 +895,12 @@ function transdate(){
}
});
$('#main-nav>li').mouseover(function(){
$('#main-nav>li').on('mouseover',function(){
if (!calc_menu_flag){
calc_menu_pos();
}
});
$('#main-nav>li>a').on('focus',function(){
if (!calc_menu_flag){
calc_menu_pos();
}