fix error

This commit is contained in:
rulingcom 2022-01-21 05:25:52 +00:00
parent 0d1d705e9f
commit fff061f708
2 changed files with 20 additions and 5 deletions

View File

@ -528,6 +528,7 @@
if($('*[data-list] tr td a').eq(i).html().trim()=="") if($('*[data-list] tr td a').eq(i).html().trim()=="")
$('*[data-list] tr td a').eq(i).parent('td').parent('tr').remove(); $('*[data-list] tr td a').eq(i).parent('td').parent('tr').remove();
// tab按鍵選到menu,會顯示下層的menu(為了符合無障礙) // tab按鍵選到menu,會顯示下層的menu(為了符合無障礙)
/*
$('.nav-level-0>li>a').focus(function(e) { $('.nav-level-0>li>a').focus(function(e) {
e.stopPropagation(); e.stopPropagation();
$(this).parent().focus(); $(this).parent().focus();
@ -546,6 +547,7 @@
} }
}); });
$('show').parent('li').focus(); $('show').parent('li').focus();
*/
} }
forFreeGo(); forFreeGo();
$(document).on('touchstart','a',function(e){ $(document).on('touchstart','a',function(e){
@ -864,15 +866,15 @@ function transdate(){
function calc_menu_pos(){ function calc_menu_pos(){
if ($(window).outerWidth() < 769){ if ($(window).outerWidth() < 769){
calc_menu_flag = false; calc_menu_flag = false;
$('.modules-menu-level-1').css('right','') $('.outdropdowns .modules-menu-level-1').css('right','')
$('.modules-menu-level-1').css('width','') $('.outdropdowns .modules-menu-level-1').css('width','')
}else{ }else{
var width = $('#main-nav').outerWidth(); var width = $('#main-nav').outerWidth();
var right = $(window).width() - $('#main-nav').offset().left - width; var right = $(window).width() - $('#main-nav').offset().left - width;
if (width>50){ if (width>50){
calc_menu_flag = true; calc_menu_flag = true;
$('.modules-menu-level-1').css('right',right); $('.outdropdowns .modules-menu-level-1').css('right',right);
$('.modules-menu-level-1').css('width',width); $('.outdropdowns .modules-menu-level-1').css('width',width);
} }
} }
} }

View File

@ -33,6 +33,19 @@ div.weather_widget1{
padding: 1em 5% 3em; padding: 1em 5% 3em;
} }
.kenmenu{
.modules-menu-level-0{
padding-right: 2em;
li{
position: relative;
&>ul{
left: 0;
white-space: nowrap;
padding-right: 2em;
}
}
}
}
div.extra-box:empty { div.extra-box:empty {
display: none; display: none;
} }