app/template/default/Block/lm_title_sashikomi.twig line 1

Open in your IDE?
  1. {% if upperColumnData is defined %}
  2.     {% if upperColumnData is not empty %}
  3.         <link rel="stylesheet" rel="dns-prefetch" type="text/css" href="https://unpkg.com/swiper@7.0.7/swiper-bundle.min.css" />
  4.         <script src="https://unpkg.com/swiper@7.0.7/swiper-bundle.min.js"></script>
  5.         <script>
  6.             window.addEventListener('load', function () {
  7.                 //
  8.                 setTimeout(function () {
  9.                     //
  10.                     for (let e of document.getElementsByClassName('swiper-slide')) {
  11.                         e.style.display = "list-item";
  12.                     }
  13.                     //
  14.                     new Swiper( '.swiper-container', {
  15.                         loop: true,
  16.                         autoplay: {
  17.                             delay: 4000,
  18.                             disableOnInteraction: false,
  19.                         },
  20.                         speed: 400,
  21.                         navigation: {
  22.                             nextEl: '.swiper-button-next',
  23.                             prevEl: '.swiper-button-prev',
  24.                         },
  25.                         pagination: {
  26.                             el: '.swiper-pagination', clickable: true
  27.                         },
  28.                         scrollbar: {
  29.                             el: '.swiper-scrollbar',
  30.                         },
  31.                         slidesPerView: 1
  32.                     } );
  33.                 }, 250);
  34.             });
  35.         </script>
  36.     {% endif %}
  37.     <div id="topImage" style="margin-top: 10px;">
  38.         {{ upperColumnData | raw }}
  39.     </div>
  40. {% endif %}