
        function updateBanner(src) {
          document.getElementById('mainBanner').src = src;
        }

        document.addEventListener("DOMContentLoaded", function() {
          if (typeof Swiper !== "undefined") {
            const swiper = new Swiper('.mySwiper', {
              slidesPerView: 4,
              spaceBetween: 10,
              loop: true,
              autoplay: {
                delay: 2000,
                disableOnInteraction: false,
              },
            });
          } else {
            console.warn("Swiper belum dimuat. Pastikan CDN sudah di-load.");
          }
        });

        console.log("Banner script loaded");
      