1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="description" content="Presta is a Free Bootstrap Bike Repair Template.">
- <!-- Favicon and Touch Icons -->
- <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/swiper-bundle.min.css">
- <style>
- @media (min-width:768px) {
- .swiper {
- --swiper-navigation-size: 50px;
- --swiper-navigation-sides-offset: 20px;
- }
- }
- @media (max-width:769px) {
- .swiper {
- --swiper-navigation-size: 25px;
- --swiper-navigation-sides-offset: 20px;
- }
- }
- </style>
- </head>
- <body>
- <section class="pt-1 pt-md-3 pt-xl-1">
- <div class="" style="overflow: hidden;">
- <div class="row gx-0">
- <div class="swiper bsb-hero-pro-5-swiper" style=" --swiper-theme-color: #a9afb487;padding: 0;">
- <div class="swiper-wrapper">
- <!-- Slides -->
- {dreamer-cms:list typeid="9jdjs0s8" pagenum="0" flag="p" sortBy="weight" sortWay="desc" formkey="h4j2gb6u" addfields="href,imgs"}
- <div class="swiper-slide">
- <!-- {dreamer-cms:global name='website' /}article/[field:href /] {dreamer-cms:template /}assets/img/none.png-->
- <a href="[field:arcurl /]">
- <img data-src="[field:litpic /]" alt="[field:title /]" style="width: 100%;height: auto;" src="/resources/uploads/[field:imgs /]">
- </a>
- </div>
- {/dreamer-cms:list}
- </div>
- <div class="swiper-pagination"></div>
- <!-- <div>
- <div class="swiper-button-prev"></div>
- <div class="swiper-button-next"></div>
- </div> -->
- </div>
- </div>
- </div>
- </section>
- <script src="{dreamer-cms:template /}assets/js/swiper-bundle.min.js"></script>
- <script>
- var mySwiper = new Swiper('.swiper', {
- // direction: 'vertical', // 垂直切换选项
- autoplay: {
- delay: 3500
- },
- loop: true, // 循环模式选项
- // 如果需要分页器
- pagination: {
- el: '.swiper-pagination',
- clickable: true
- },
- // 如果需要前进后退按钮
- //navigation: {
- //nextEl: '.swiper-button-next',
- //prevEl: '.swiper-button-prev',
- //},
- // 如果需要滚动条
- scrollbar: {
- el: '.swiper-scrollbar',
- },
- })
- </script>
- </body>
- </html>
|