From 0c4ed66c3a4ba4bdddb152b0459616029b824e63 Mon Sep 17 00:00:00 2001 From: ken Date: Wed, 23 Sep 2026 15:53:42 +0800 Subject: [PATCH] up --- assets/stylesheets/template/layout/header.scss | 1 - assets/stylesheets/template/modules/ad_banner.scss | 3 +++ modules/ad_banner/_ad_banner_widget8_video.html.erb | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/stylesheets/template/layout/header.scss b/assets/stylesheets/template/layout/header.scss index 8d83d00..8af3a9a 100644 --- a/assets/stylesheets/template/layout/header.scss +++ b/assets/stylesheets/template/layout/header.scss @@ -168,7 +168,6 @@ sup { .site-logo { margin-right:0; - float: left; height: auto; padding-right: 1em; width: 100%!important; diff --git a/assets/stylesheets/template/modules/ad_banner.scss b/assets/stylesheets/template/modules/ad_banner.scss index e609f6b..bf0fb48 100644 --- a/assets/stylesheets/template/modules/ad_banner.scss +++ b/assets/stylesheets/template/modules/ad_banner.scss @@ -628,6 +628,9 @@ ul.button-mid{ // widget8 .ba-banner-widget-8 { position: relative; + .banner-overlay{ + background:$theme-color-second; + } // ✅ mp4 jPlayer 修正:讓 jplayer_slide 有固定高度,不繼承 wrap 的 padding-bottom 0 .jplayer_slide { diff --git a/modules/ad_banner/_ad_banner_widget8_video.html.erb b/modules/ad_banner/_ad_banner_widget8_video.html.erb index 6303059..3403ddb 100644 --- a/modules/ad_banner/_ad_banner_widget8_video.html.erb +++ b/modules/ad_banner/_ad_banner_widget8_video.html.erb @@ -398,6 +398,12 @@ $(this).addClass('active'); $(this).parents('.controlplay').eq(0).find('.pause-slide').removeClass('active'); }); + $('[data-subpart-id="{{subpart-id}}"] .next-button').click(function(){ + $(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("next"); + }) + $('[data-subpart-id="{{subpart-id}}"] .prev-button').click(function(){ + $(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("prev"); + }) }); /* 修正點:處理 Pager 無障礙朗讀文字 */ $('.cycle-slideshow').on('cycle-post-initialize', function(event, optionHash) {