fix error

This commit is contained in:
rulingcom 2022-01-24 01:24:02 +00:00
parent bcf57cd459
commit 5898cb413d
3 changed files with 13 additions and 10 deletions

View File

@ -875,8 +875,8 @@ function transdate(){
$('.outdropdowns .modules-menu-level-1').css('right','')
$('.outdropdowns .modules-menu-level-1').css('width','')
}else{
var width = $('#main-nav').outerWidth();
var right = $(window).width() - $('#main-nav').offset().left - width;
var width = $('header #main-nav').outerWidth();
var right = $(window).width() - $('header #main-nav').offset().left - width;
if (width>50){
calc_menu_flag = true;
$('.outdropdowns .modules-menu-level-1').css('right',right);
@ -895,12 +895,12 @@ function transdate(){
}
});
$('#main-nav>li').on('mouseover',function(){
$('header #main-nav>li').on('mouseover',function(){
if (!calc_menu_flag){
calc_menu_pos();
}
});
$('#main-nav>li>a').on('focus',function(){
$('header #main-nav>li>a').on('focus',function(){
if (!calc_menu_flag){
calc_menu_pos();
}

View File

@ -17,7 +17,13 @@
cursor: pointer;
}
}
.ad-banner-widget-6{
.w-ad-banner__caption a{
display: block;
width: 100%;
height: 100%;
}
}
.w-ba-banner__wrap {
width: 100%;
max-width: 100%;

View File

@ -19,13 +19,10 @@
data-link="{{link}}"
data-cycle-title="{{title}}"
data-cycle-desc="{{context}}"
data-overlay-template="<div><h3>{{title}}</h3><p>{{desc}}</p></div>"
data-overlay-template="<a href='{{link}}' target='{{target}}' title='{{alt_title}}'><h3>{{title}}</h3><p>{{desc}}</p></a>"
data-target="{{target}}"
>
<a href="{{link}}" target="{{target}}" title="{{alt_title}}">
<img class="w-ba-banner__image banner-responsive" src="{{image_link}}" alt="{{alt_title}}">
</a>
</div>
</div>
<div class="ad-overlay w-ba-banner__caption w-ad-banner__caption w-ad-banner__overlay_{{subpart-id}}"></div>