From b586ed2a86ae71dca1d1b00081daf363325961e6 Mon Sep 17 00:00:00 2001 From: Damon Date: Wed, 13 Mar 2024 12:33:17 -0700 Subject: [PATCH] Update header bannder (#30600) --- website/www/site/assets/js/sliders/top-banners.js | 10 +++++++--- website/www/site/layouts/partials/header.html | 8 ++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/website/www/site/assets/js/sliders/top-banners.js b/website/www/site/assets/js/sliders/top-banners.js index 4474198990f2..628dee2b4570 100644 --- a/website/www/site/assets/js/sliders/top-banners.js +++ b/website/www/site/assets/js/sliders/top-banners.js @@ -11,10 +11,14 @@ // the License. new Swiper('.top-banners', { - autoplay: { - delay: 5000, + autoplay: false, + effect: 'fade', + loop: true, + navigation: { + enabled: true, + nextEl: '.swiper-button-next', + prevEl: '.swiper-button-prev', }, - loop: false, pagination: { el: ".top-banners .swiper-pagination", clickable: true, diff --git a/website/www/site/layouts/partials/header.html b/website/www/site/layouts/partials/header.html index 957e3de2b1ed..139ae9bc885d 100644 --- a/website/www/site/layouts/partials/header.html +++ b/website/www/site/layouts/partials/header.html @@ -207,12 +207,6 @@
+
+
{{ $swiperSlider := resources.Get "js/swiper-bundle.min.js" | minify | fingerprint }}