diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index f2ac827..9d7d629 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -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(); } diff --git a/assets/stylesheets/template/modules/ad_banner.scss b/assets/stylesheets/template/modules/ad_banner.scss index 325aab9..52bb3d8 100644 --- a/assets/stylesheets/template/modules/ad_banner.scss +++ b/assets/stylesheets/template/modules/ad_banner.scss @@ -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%; diff --git a/modules/ad_banner/_ad_banner_widget6.html.erb b/modules/ad_banner/_ad_banner_widget6.html.erb index c0f5866..c1e0a31 100644 --- a/modules/ad_banner/_ad_banner_widget6.html.erb +++ b/modules/ad_banner/_ad_banner_widget6.html.erb @@ -19,13 +19,10 @@ data-link="{{link}}" data-cycle-title="{{title}}" data-cycle-desc="{{context}}" - data-overlay-template="

{{title}}

{{desc}}

" + data-overlay-template="

{{title}}

{{desc}}

" data-target="{{target}}" > - - - - +