From 9d38d76f5292c075e597574d87e0016a1ca8363c Mon Sep 17 00:00:00 2001 From: ken Date: Tue, 22 Sep 2026 14:52:23 +0800 Subject: [PATCH] up --- assets/stylesheets/template/layout/header.scss | 2 +- assets/stylesheets/template/modules/ad_banner.scss | 3 +++ modules/ad_banner/_ad_banner_widget8_video.html.erb | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/assets/stylesheets/template/layout/header.scss b/assets/stylesheets/template/layout/header.scss index 21e177b..9352620 100644 --- a/assets/stylesheets/template/layout/header.scss +++ b/assets/stylesheets/template/layout/header.scss @@ -139,7 +139,7 @@ sup { margin: 0; display: flex; justify-content: space-between; - align-items: anchor-center; + // @media (max-width: $screen-sm) { // width: 100%; // display: flex; diff --git a/assets/stylesheets/template/modules/ad_banner.scss b/assets/stylesheets/template/modules/ad_banner.scss index 2d70333..59394d7 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) {