fix error

This commit is contained in:
rulingcom 2022-01-24 01:35:52 +00:00
parent 2f4658852d
commit cc2b73014c
1 changed files with 11 additions and 10 deletions

View File

@ -894,16 +894,17 @@ function transdate(){
window.has_hover = true; window.has_hover = true;
} }
}); });
$(document).ready(function(){
$('header #main-nav>li').hover(function(){ $('header #main-nav>li').hover(function(){
if (!calc_menu_flag){ if (!calc_menu_flag){
calc_menu_pos(); calc_menu_pos();
} }
}); });
$('header #main-nav>li>a').on('focus',function(){ $('header #main-nav>li>a').on('focus',function(){
if (!calc_menu_flag){ if (!calc_menu_flag){
calc_menu_pos(); calc_menu_pos();
} }
});
}); });
$(window).load(function(){ $(window).load(function(){
//calc_menu_pos(); //calc_menu_pos();