From 3c30280597642ede32f794e3ca779af2b9ae42cc Mon Sep 17 00:00:00 2001 From: ken Date: Tue, 22 Sep 2026 11:44:52 +0800 Subject: [PATCH] up --- assets/stylesheets/template/modules/ad_banner.scss | 3 +++ modules/ad_banner/_ad_banner_widget8_video.html.erb | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/assets/stylesheets/template/modules/ad_banner.scss b/assets/stylesheets/template/modules/ad_banner.scss index 3b36d30..f73c472 100644 --- a/assets/stylesheets/template/modules/ad_banner.scss +++ b/assets/stylesheets/template/modules/ad_banner.scss @@ -634,6 +634,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) {