fix error

This commit is contained in:
rulingcom 2021-12-08 02:31:39 +00:00
parent 2230710658
commit 380f8916d0
1 changed files with 6 additions and 6 deletions

View File

@ -864,11 +864,13 @@ function transdate(){
$('.modules-menu-level-1').css('right','')
$('.modules-menu-level-1').css('width','')
}else{
calc_menu_flag = true;
var width = $('#main-nav').outerWidth();
var right = $(window).width() - $('#main-nav').offset().left - width;
$('.modules-menu-level-1').css('right',right)
$('.modules-menu-level-1').css('width',width)
if (width>50){
calc_menu_flag = true;
$('.modules-menu-level-1').css('right',right);
$('.modules-menu-level-1').css('width',width);
}
}
}
$(window).resize(function() {
@ -888,9 +890,7 @@ function transdate(){
}
});
$(window).load(function(){
if($('#main-nav').outerWidth()>50){
calc_menu_pos();
}
$("iframe[src*='google']").attr('title','googleOauth');
});